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

3
我想知道是否有一种功能可以禁用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

我在这里发现了同样的问题(Stackoverflow),但该解决方案会禁用滚动和选择。我想知道是否有解决方案。
谢谢, asp.

1
在进行让菜单弹出的任何操作之前,尝试按下C-h k。这样应该能让你知道Emacs认为你正在做什么。 - legoscia
1个回答

3

很难知道是哪个按键绑定使菜单出现,但你可以完全禁用它。使用以下命令:

(fset 'menu-bar-open nil)

看起来这似乎是一个“激进”的解决方案,所以如果你不喜欢它,可以在菜单出现后键入“C-h l”了解更多信息。你将会看到最后的按键/鼠标事件,然后你可以使用“C-h k”来了解这些事件调用的函数并重新绑定它们。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接