emacs gud 窗口使用

发布于 2024-12-07 16:03:59 字数 87 浏览 4 评论 0原文

当我发出“向上”、“向下”等命令时,如何自定义 GUD 将使用哪个窗口?它似乎使用任意窗口,有时甚至是带有 gdb 的窗口 - 我希望能够指定要使用的特定窗口。

How do I customize which window GUD will use when i issue commands - 'up', 'down', etc ? It seems to use an arbitrary window, sometimes even the window with gdb in it - I want to be able to specify a specific window to be used.

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

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

发布评论

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

评论(1

心房敞 2024-12-14 16:03:59

您是否考虑过借用以下问题中提到的键绑定?
Emacs,切换到上一个窗口

这个问题意味着GUD会继续执行如果不添加参数,有些事情。也许您的命令绑定也受到类似的影响。
在 Emacs 23 中使用 gdb

我向我的一个朋友询问了这个问题,以下是他说。

嗯,我们使用了 xemacs,所以这里的情况并不完全一样。我
cygwin 上确实安装了 gnu-emacs,但我无法复制他的
问题。我认为他肯定需要列出 emacs 的版本#
以及所有已安装软件包的版本号。

当您按向上/向下键时,它会调用“上一行”和“下一行”
分别在默认缓冲区中移动光标。这
我唯一能想到的是他正在运行一些可以切换的东西
buffers (lisp 'set-buffer') 暂时并且可能不会将其设置回来
或者恢复缓冲区时出现错误?更好用
'with-current-buffer'(或其他 with-* 形式之一)可以保存
ui 的当前状态运行你的 lisp 代码并恢复 ui
状态。

Have you considered borrowing the key bindings mentioned in the following question?
Emacs, switch to previous window

This question implies that GUD steps on some things if you don't add a parameter. Maybe your command bindings are being affected similiarly.
Using gdb in Emacs 23

I asked a buddy of mine about this issue and here is what he said.

Well, we used xemacs and so it's not exactly apples to apples here. I
do have gnu-emacs installed on cygwin and I can't replicate his
problem. I think he definitely needs to list a version # for emacs
and the version # for all his installed packages.

When you press up/down it calls 'previous-line' and 'next-line'
respectively which both move the cursor in the default buffer. The
only thing I can think is that he has something running that switches
buffers (lisp 'set-buffer') temporarily and maybe doesn't set it back
or errors b/f restoring the buffer? Better to use
'with-current-buffer' (or one of the other with-* forms) that saves
the current state of the ui runs your lisp code and restores the ui
state.

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