diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2009-04-28 10:35:41 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2009-04-28 10:35:41 +0000 |
commit | 4dc5a19d8b363379bf92a342023ed59877396cc5 (patch) | |
tree | dc6d1167a07559a4f9f2ff79204e257b88106694 /lisp/progmodes/gdb-ui.el | |
parent | a2ced5a9e5021b0339e926605752c0bd5d3ca070 (diff) | |
download | emacs-4dc5a19d8b363379bf92a342023ed59877396cc5.tar.gz |
(gdb-tooltip-print): Avoid "Non-X frame used"
error with gud-tooltip-mode in the Linux console.
Diffstat (limited to 'lisp/progmodes/gdb-ui.el')
-rw-r--r-- | lisp/progmodes/gdb-ui.el | 3 |
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." (buffer-string)))) ;; remove newline for gud-tooltip-echo-area (substring string 0 (- (length string) 1)))) - (or gud-tooltip-echo-area tooltip-use-echo-area))) + (or gud-tooltip-echo-area tooltip-use-echo-area + (not (display-graphic-p))))) ;; If expr is a macro for a function don't print because of possible dangerous ;; side-effects. Also printing a function within a tooltip generates an |