gpt4 book ai didi

emacs gud 窗口使用

转载 作者:行者123 更新时间:2023-12-04 21:49:31 25 4
gpt4 key购买 nike

如何自定义当我发出命令时 GUD 将使用哪个窗口 - 'up'、'down' 等?它似乎使用了任意窗口,有时甚至是其中包含 gdb 的窗口 - 我希望能够指定要使用的特定窗口。

最佳答案

您是否考虑过借用以下问题中提到的键绑定(bind)?
Emacs, switch to previous window

这个问题意味着如果你不添加参数,GUD 会踩一些东西。也许您的命令绑定(bind)也受到了类似的影响。
Using gdb in Emacs 23

我问了我的一个 friend 关于这个问题,这是他所说的。

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.

关于emacs gud 窗口使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7618933/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com