aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2009-04-28 10:35:41 +0000
committerNick Roberts2009-04-28 10:35:41 +0000
commit4dc5a19d8b363379bf92a342023ed59877396cc5 (patch)
treedc6d1167a07559a4f9f2ff79204e257b88106694
parenta2ced5a9e5021b0339e926605752c0bd5d3ca070 (diff)
downloademacs-4dc5a19d8b363379bf92a342023ed59877396cc5.tar.gz
emacs-4dc5a19d8b363379bf92a342023ed59877396cc5.zip
(gdb-tooltip-print): Avoid "Non-X frame used"
error with gud-tooltip-mode in the Linux console.
-rw-r--r--lisp/progmodes/gdb-ui.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el
index 34c13b6948f..5eb44caa7a6 100644
--- a/lisp/progmodes/gdb-ui.el
+++ b/lisp/progmodes/gdb-ui.el
@@ -504,7 +504,8 @@ otherwise do not."
504 (buffer-string)))) 504 (buffer-string))))
505 ;; remove newline for gud-tooltip-echo-area 505 ;; remove newline for gud-tooltip-echo-area
506 (substring string 0 (- (length string) 1)))) 506 (substring string 0 (- (length string) 1))))
507 (or gud-tooltip-echo-area tooltip-use-echo-area))) 507 (or gud-tooltip-echo-area tooltip-use-echo-area
508 (not (display-graphic-p)))))
508 509
509;; If expr is a macro for a function don't print because of possible dangerous 510;; If expr is a macro for a function don't print because of possible dangerous
510;; side-effects. Also printing a function within a tooltip generates an 511;; side-effects. Also printing a function within a tooltip generates an