我有一个像这样接受输入的函数。
(interactive
(list (read-string "Key to use for encryption: ")
(region-beginning)(region-end)))
如何防止输入的字符串保存到 minibuffer-history 中,是否有另一种方法来读取输入以避免保存到 minibuffer-history 中?
最佳答案
您可以临时将 minibuffer-history
绑定(bind)到自身:
(let ((minibuffer-history minibuffer-history)) (read-string "Key to use: "))
read-string
返回后,minibuffer-history
恢复为原始值,其中不包括添加到的任何 read-string
它。
关于emacs - 如何防止或避免交互式功能输入被保存到迷你缓冲区历史记录中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36272814/