changeset 64999:e1cdc6178b3e

(toggle-gdb-use-inferior-io-buffer): Comment use of defadvice.
author Nick Roberts <nickrob@snap.net.nz>
date Tue, 16 Aug 2005 09:32:11 +0000
parents b2d245bb54da
children 3861ff8f4bf1
files lisp/progmodes/gdb-ui.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/gdb-ui.el	Tue Aug 16 09:31:31 2005 +0000
+++ b/lisp/progmodes/gdb-ui.el	Tue Aug 16 09:32:11 2005 +0000
@@ -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 @@
   (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 @@
   '(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))))