我已经开始在emacs 23.3中通过gud使用pdb,如何挂钩从缓冲区发送给调试器的命令消息?我为gdb编写了下面的建议,以保持comint的环,但找不到一个等效的函数来挂钩pdb。我正在使用python-mode.el作为我的major mode。
谢谢。
谢谢。
(defadvice gdb-send-item (before gdb-save-history first nil activate)
"write input ring on quit"
(if (equal (type-of item) 'string) ; avoid problems with 'unprintable' structures sent to this function..
(if (string-match "^q\\(u\\|ui\\|uit\\)?$" item)
(progn (comint-write-input-ring)
(message "history file '%s' written" comint-input-ring-file-name)))))