Aquacacs中的ECB上下文菜单 [英] ECB context menu in Aquamacs

查看:219
本文介绍了Aquacacs中的ECB上下文菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ECB(Emacs代码浏览器)具有添加文件,删除文件等的上下文菜单。点击鼠标右键时会打开上下文菜单。

ECB (Emacs Code Browser) has context menu to add file, delete file etc. The context menu is opened when clicking right mouse button.

问题是Aquamacs拦截鼠标按钮事件。当我们在Aquamacs中点击鼠标右键时,它会打开自己的上下文菜单。 (在Emacsformacosx.com下载的Emacs中,正确打开上下文菜单。)

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.)

如何在Aquamacs中打开ECB上下文菜单?有没有办法禁用Aquamacs的默认上下文菜单?还是有办法告诉欧洲央行使用其他方式打开上下文菜单?

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?

推荐答案

答案 Aquamacs邮件列表

1。

几乎所有的键绑定在Aquamacs中绑定了osx-key-mode-map(参见Aquamacs FAQ)。鼠标按钮绑定没有任何不同。

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.

按C-h k,然后按鼠标右键(在Aquamacs窗口上)。这应该会出现一个帮助屏幕,解释说这个键叫做down-mouse-3,它被绑定到一个描述如下的功能:

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:


(osx-key-mode-down-mouse-3 EVENT&可选PREFIX)

(osx-key-mode-down-mouse-3 EVENT &optional PREFIX)

激活上下文菜单,当 osx-key-mode-mouse-3-behavior'是
设置为
aquamacs-popup-context-menu'或nil

Activate context menu, when osx-key-mode-mouse-3-behavior' is set toaquamacs-popup-context-menu' or nil

查找此自定义变量的文档不会带来任何有用的东西,但是我们可以使用define-key来撤消密钥绑定(请参阅Aquamacs常见问题解答):

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:


(定义键osx-key-mode-map [down-mouse-3] nil)

(define-key osx-key-mode-map [down-mouse-3] nil)

2。

有第二种方法将鼠标3返回到其香草Emacs行为:
在Aquamacs帮助/手册,第4.3节自定义Aquamacs行为,在想要一些GNU Emacs 23行为回来?有一个可定制的Aquamacs特定设置列表,包括OS X Key Mode Mouse-3 Behavior。尝试按照帮助中的描述自定义该设置 - 可能允许ECB在香草Emacs中的行为。

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.

这篇关于Aquacacs中的ECB上下文菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆