Emacs 使用“读取小缓冲区函数输入字符串”;标点符号

Emacs 使用“读取小缓冲区函数输入字符串”;标点符号,emacs,Emacs,我编写emacs lisp代码如下: #!/usr/bin/emacs --script (setq input (read-minibuffer "please input your name:") ) (message "%s" input) 然后我用这段代码测试标准输入: ./test.el please input your name:hello hello 这对于第一次测试来说是可以的。但当我将字符串hello,world放入标准输入时,会出现错误: please input yo

我编写emacs lisp代码如下:

#!/usr/bin/emacs --script
(setq input (read-minibuffer "please input your name:") )
(message "%s" input)
然后我用这段代码测试标准输入:

./test.el
please input your name:hello
hello
这对于第一次测试来说是可以的。但当我将字符串
hello,world
放入标准输入时,会出现错误:

please input your name:hello,world
Trailing garbage following expression
然后我将字符串
“hello,world”
放入标准输入,它传递:

please input your name:"hello,world"
hello,world
然后我想知道,如何才能在不使用
标点符号。我只想输入
hello,world
,而不是
“hello,world”

谢谢

函数
读取微缓冲区
要求用户输入一个Lisp对象。如果输入
你好
,它将返回一个符号,如果输入
“你好,世界”
,它将返回一个字符串

您可能希望函数
从minibuffer
读取。它以字符串形式返回用户输入的内容,而不尝试以任何方式对其进行解释