aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts <[email protected]>2005-08-16 09:32:11 +0000
committerNick Roberts <[email protected]>2005-08-16 09:32:11 +0000
commitf95e8d9759f32877a7011d089bd05766bf94ee90 (patch)
tree823ebecc811fe76b1cbf011f96b994386e7a913d
parent761b053bac87fc0247e64abfaee11f1aed99743f (diff)
(toggle-gdb-use-inferior-io-buffer):
Comment use of defadvice.
-rw-r--r--lisp/progmodes/gdb-ui.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el
index 2f350b2d3e..a1c6f0a80b 100644
--- a/lisp/progmodes/gdb-ui.el
+++ b/lisp/progmodes/gdb-ui.el
@@ -58,7 +58,7 @@
;; using a macro:
;;
;; #ifdef UNBUFFERED
-;; setvbuf(stdout,(char *)NULL, _IONBF,0);
+;; setvbuf (stdout, (char *) NULL, _IONBF, 0);
;; #endif
;;
;; and compiling with -DUNBUFFERED while debugging.
@@ -2190,6 +2190,7 @@ corresponding to the mode line clicked."
(define-key gud-menu-map [ui]
`(menu-item "GDB-UI" ,menu :visible (eq gud-minor-mode 'gdba)))
(define-key menu [gdb-use-inferior-io]
+ ;; See defadvice below.
(menu-bar-make-toggle toggle-gdb-use-inferior-io-buffer
gdb-use-inferior-io-buffer
"Separate inferior IO" "Use separate IO %s"
@@ -2202,6 +2203,7 @@ corresponding to the mode line clicked."
'(menu-item "Restore Window Layout" gdb-restore-windows
:help "Restore standard layout for debug session.")))
+;; This function is defined above through a macro.
(defadvice toggle-gdb-use-inferior-io-buffer (after gdb-kill-io-buffer activate)
(unless gdb-use-inferior-io-buffer
(kill-buffer (gdb-inferior-io-name))))