Emacs gud 引发前缀键错误
我正在尝试在 Emacs 中调试代码,但是当我尝试 Mx gdb
或 Mx 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 变量或挂钩进行
。
- 修改
- 如果没有,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:
- Has anybody seen/fixed this before?
- If not, how is gud defining an appropriate prefix key on your emacs and not mine?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
发现问题了。我已将
Cx Ca
绑定到.emacs
中的另一个函数。Found the problem. I had bound
C-x C-a
to another function in my.emacs
.我在 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