aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2011-03-09 00:55:08 -0800
committerGlenn Morris2011-03-09 00:55:08 -0800
commit1289e5d3f56a5c5e2fe5500adf8671fd45b6a27f (patch)
treed686cd19a0ad7627192457396a9edb441f107343
parent13522cb4cd1e954ae1523c309c778137a2ce98bd (diff)
downloademacs-1289e5d3f56a5c5e2fe5500adf8671fd45b6a27f.tar.gz
emacs-1289e5d3f56a5c5e2fe5500adf8671fd45b6a27f.zip
Fix previous gdb-mi change.
-rw-r--r--lisp/progmodes/gdb-mi.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index ac76caf8d61..1a7f1841fb3 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -671,8 +671,10 @@ detailed description of this mode.
671 (file-name-directory file)))) 671 (file-name-directory file))))
672 ((string-equal (match-string 1) "size") 672 ((string-equal (match-string 1) "size")
673 (setq hsize (match-string 2)))))))) 673 (setq hsize (match-string 2))))))))
674 (if (integerp hsize) 674 (and (stringp hsize)
675 (set (make-local-variable 'comint-input-ring-size) hsize)) 675 (integerp (string-to-number hsize))
676 (> hsize 0)
677 (set (make-local-variable 'comint-input-ring-size) hsize))
676 (if (stringp hfile) 678 (if (stringp hfile)
677 (set (make-local-variable 'comint-input-ring-file-name) hfile)) 679 (set (make-local-variable 'comint-input-ring-file-name) hfile))
678 (comint-read-input-ring t))) 680 (comint-read-input-ring t)))