Emacs gud 引发前缀键错误

发布于 2024-08-29 10:32:49 字数 747 浏览 3 评论 0原文

我正在尝试在 Emacs 中调试代码,但是当我尝试 Mx gdbMx pdb 时,我收到此错误:

global-set-key: Key sequence C-x C-a C-l starts with non-prefix key C-x C-a

这很可能来自 gud 中的这一位。 el:

(defcustom gud-key-prefix "\C-x\C-a"
  "Prefix of all GUD commands valid in C buffers."
  :type 'string
  :group 'gud)

(global-set-key (concat gud-key-prefix "\C-l") 'gud-refresh)

我正在使用 GNU Emacs 23.1.95.1(x86_64-apple-darwin,NS apple-appkit-1038.29)(从 emacsformacosx.com。我没有修改构建中附带的任何库存内容。我的本地 elisp 目录没有对 gud 或 gdb 变量或挂钩进行

  1. 修改
  2. 如果没有,gud 如何在你的 emacs 上而不是我的 emacs 上定义适当的前缀键?

I'm trying to debug code in Emacs but when I try either M-x gdb or M-x pdb, I get this error:

global-set-key: Key sequence C-x C-a C-l starts with non-prefix key C-x C-a

This is most likely coming from this bit in gud.el:

(defcustom gud-key-prefix "\C-x\C-a"
  "Prefix of all GUD commands valid in C buffers."
  :type 'string
  :group 'gud)

(global-set-key (concat gud-key-prefix "\C-l") 'gud-refresh)

I'm using GNU Emacs 23.1.95.1 (x86_64-apple-darwin, NS apple-appkit-1038.29) (pretest built from emacsformacosx.com. I have not modified any of the stock stuff that came with the build. My local elisp directories have no modifications to gud or gdb variables or hooks.

Specific questions:

  1. Has anybody seen/fixed this before?
  2. If not, how is gud defining an appropriate prefix key on your emacs and not mine?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

情独悲 2024-09-05 10:32:49

发现问题了。我已将 Cx Ca 绑定到 .emacs 中的另一个函数。

Found the problem. I had bound C-x C-a to another function in my .emacs.

回忆那么伤 2024-09-05 10:32:49

我在 Emacs 23.1.1、Windows Vista 上使用 Mx matlab-mode 加载 matlab 模式 (matlab.el) 时看到了这一点。我已经尝试过使用 2003 年的 matlab.el 和 2010 年更新的 matlab.el。后者来自 http://matlab-emacs.cvs.sourceforge.net/viewvc/checkout/matlab-emacs/matlab-emacs/matlab.el?revision=1.24

我的解决方案可能是相同的。我将 Cx Ca 绑定到最近打开的文件。但我想保留这一点。

黑尔格

I have seen this on Emacs 23.1.1, Windows Vista, when loading matlab mode (matlab.el) using M-x matlab-mode. I've tried both with a matlab.el that I had from 2003, and an updated from 2010. The latter is from http://matlab-emacs.cvs.sourceforge.net/viewvc/checkout/matlab-emacs/matlab-emacs/matlab.el?revision=1.24

My solution might be the same. I have C-x C-a bound to recentf-open-files. But I want to keep that.

Helge

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文