Emacs:在鼠标点击时禁用弹出菜单

时间:2013-06-24 16:53:57

标签: emacs

我想知道是否有一个功能可以禁用Emacs中的弹出菜单。我在Putty(ssh会话)中使用Emacs时遇到问题...当我点击/滚动我的终端的右半部分时,出现了帮助弹出菜单...如何调试?当我打开多个缓冲区时,它真的很烦人。

当我点击右半边时,我看到以下内容:

Press PageUp key to reach this buffer from the minibuffer.
Alternatively, you can use Up/Down keys (or your History keys) to change
the item in the minibuffer, and press RET when you are done, or press the
marked letters to pick up your choice.  Type C-g or ESC ESC ESC to cancel.
Click <mouse-2> on a completion to select it.
In this buffer, type RET to select the completion near point.

Possible completions are:
e==>Emacs Tutorial                     E==>Emacs Tutorial (choose language)...
f==>Emacs FAQ                          n==>Emacs News
k==>Emacs Known Problems               s==>Send Bug Report...
p==>Emacs Psychotherapist              S==>Search Documentation
d==>Describe                           r==>Read the Emacs Manual
m==>More Manuals                       F==>Find Emacs Packages
P==>External Packages                  g==>Getting New Versions
c==>Copying Conditions                 0==>(Non)Warranty
a==>About Emacs                        A==>About GNU

Help (up/down to change, PgUp to menu): e==>Emacs Tutorial

我发现了同样的问题here (Stackoverflow),但是那里的解决方案禁用了滚动和选择。我想知道是否有解决方案。

谢谢, ASP。

1 个答案:

答案 0 :(得分:2)

很难知道菜单出现的键绑定是什么,但您可以完全禁用它。使用:

(fset 'menu-bar-open nil)

这看起来像是一种“激烈”的解决方案,所以如果你不喜欢它,你可以在看到菜单后输入“C-h l”来了解更多关于菜单显示的信息。您将看到最后的键/鼠标事件,您可以使用“C-h k”来了解这些事件正在调用和/或重新绑定它们的功能。