【问题标题】:Emacs 24 shows drop-down menuEmacs 24 显示下拉菜单
【发布时间】:2014-04-21 22:34:19
【问题描述】:

我在终端模式下使用 emacs。我知道如何通过 F10 键获取菜单。 Emacs 过去在终端模式下将菜单显示为单独缓冲区中的文本。自从最近的更新,或者我安装了一些软件包,我注意到 emacs 开始为菜单项创建一个图形下拉列表(参见屏幕截图)。但是,我只在我的一台计算机(Mac OS)上看到它,我的其他计算机仍然以“文本模式”显示菜单。谁能告诉我如何启用图形下拉列表菜单功能?这是最新的 Emacs 24.3 的新功能还是可以通过某些包启用?

【问题讨论】:

  • 我认为它可能是 Emacs 24.4(目前处于预测试阶段)而不是 23.3 中的新功能,这可能是您在所有安装中都没有看到它的原因。
  • 是的,很奇怪。我在下面的回复后访问了 NEWS 页面。我发现这个特性确实被描述为 Emacs 24.4 的变化。但是,emacs --version 返回的版本字符串仍然显示 24.3.50。但是看起来当我所有的机器都更新到 24.4 时,我就会拥有这个功能。谢谢。
  • 对,我刚刚测试过了。我从 git 存储库中获取了 emacs 24.4.50.1,它有新的下拉式菜单。所以我想我只需要等到我的 linux 发行版的正式更新。
  • 24.4.50 是 24.4 之后的下一个版本的开发版本。 24.4预测是24.3.90,24.3.50是一周半前开始预测前的开发版本。

标签: emacs emacs24


【解决方案1】:

这在 Emacs 24.4 的 NEWS 文件中有所描述:

* Emacs now supports menus on text-mode terminals.
If the terminal supports a mouse, clicking on the menu bar, or on
sensitive portions of the mode line or header line, will drop down the
menu defined at that position.  Likewise, clicking C-mouse-2 or
C-mouse-2 or C-mouse-3 on the text area will pop up the menus defined
for those locations.

If the text terminal does not support a mouse, you can activate the
first menu-bar menu by typing F10, which invokes `menu-bar-open'.

If you want the previous behavior, whereby F10 invoked `tmm-menubar',
customize the option `tty-menu-open-use-tmm' to a non-nil value.
(Typing M-` always invokes `tmm-menubar', even if `tty-menu-open-use-tmm'
is nil.)

看起来是个不错的功能。

【讨论】:

  • 谢谢,我已经将 NEWS 文件链接加入书签。这非常有用。
  • @xing_yu 我也推荐this 注释版本的 NEWS 文件,以及一般的博客
猜你喜欢
  • 2012-05-27
  • 2013-08-12
  • 1970-01-01
  • 2022-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多