首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Emacs:禁用鼠标单击时的弹出菜单

Emacs:禁用鼠标单击时的弹出菜单
EN

Stack Overflow用户
提问于 2013-06-25 00:53:57
回答 1查看 1.5K关注 0票数 2

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

当我单击右半部分时,我会看到以下内容:

代码语言:javascript
复制
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。

EN

回答 1

Stack Overflow用户

发布于 2013-06-25 14:49:53

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

代码语言:javascript
复制
(fset 'menu-bar-open nil)

这看起来是一种“极端”的解决方案,所以如果你不喜欢它,你可以通过在你看到菜单后输入"C-h l“来了解更多关于菜单出现的原因。您将看到最近的按键/鼠标事件,您可以使用"C-h k“来了解这些事件正在调用的函数和/或重新绑定它们。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17280845

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档