Aquamacs 中的 ECB 上下文菜单
ECB(Emacs 代码浏览器)具有用于添加文件、删除文件等的上下文菜单。单击鼠标右键时会打开上下文菜单。
问题是 Aquamacs 拦截了鼠标按钮事件。当我们在 Aquamacs 中单击鼠标右键时,它会打开自己的上下文菜单。 (在从 emacsformacosx.com 下载的 Emacs 中,上下文菜单可以正确打开。)
如何在 Aquamacs 中打开 ECB 上下文菜单?有没有办法禁用 Aquamacs 默认上下文菜单?或者有没有办法告诉欧洲央行使用其他方式打开其上下文菜单?
ECB (Emacs Code Browser) has context menu to add file, delete file etc. The context menu is opened when clicking right mouse button.
The problem is Aquamacs intercepts that mouse button event. When we click right mouse button in Aquamacs, it opens its own context menu. (In the Emacs downloaded from emacsformacosx.com, the context menu is opened correctly.)
How to open ECB context menu in Aquamacs? Is there a way to disable Aquamacs default context menu? Or is there a way to tell ECB to use other way to open its context menu?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自 Aquamacs 邮件列表:
1.
Aquamacs 中的几乎所有按键绑定都绑定在 osx-key-mode-map 中(请参阅Aquamacs 常见问题解答)。鼠标按钮绑定没有任何不同。
按 Ch k,然后按鼠标右键(在 Aquamacs 窗口上)。这应该会弹出一个帮助屏幕,解释该键称为“down-mouse-3”,并且它绑定到如下描述的函数:
查找此自定义变量的文档不会带来任何有用的信息,但我们可以使用define-key撤消键绑定(可能请参阅Aquamacs常见问题解答) :
2.
还有第二种方法可以将 mouse-3 返回到其普通的 Emacs 行为:
在 Aquamacs 帮助/手册中,第 4.3 节“自定义 Aquamacs 行为”中,“想要恢复一些 GNU Emacs 23 行为吗?”有一个可以自定义的 Aquamacs 特定设置列表,包括“OS X 键模式鼠标 3 行为”。尝试按照帮助中的描述自定义该设置——这可能允许 ECB 的行为与普通 Emacs 中一样。
Answers from the mailing list of Aquamacs:
1.
Pretty much all key bindings in Aquamacs are bound in osx-key-mode-map (see Aquamacs FAQ). The mouse button bindings aren't any different.
Press C-h k, then the right mouse button (over an Aquamacs window). This should bring up a help screen that explains that this key is called `down-mouse-3', and that it is bound to a function described as this:
Looking up the documentation for this customization variable doesn't bring up anything useful, but we can undo the key binding (see Aquamacs FAQ, probably) using define-key:
2.
There is a second approach in place to return mouse-3 to its vanilla Emacs behavior:
In the Aquamacs help/manual, section 4.3 "Customizing Aquamacs behavior", under "Want some GNU Emacs 23 behavior back?" there is a list of Aquamacs-specific settings that can be customized, including "OS X Key Mode Mouse-3 Behavior". Try customizing that setting as described in the help -- that may allow ECB to behave as in vanilla Emacs.