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 | bcf0d43c7346cd690251bd10b5944264a6358bad (patch) | |
tree | 88a98d0eaa47f35d8905f7f8395bf9f58b076f8f | |
parent | 9b0d738680291f4c48fd3808c0eff859269a2979 (diff) | |
download | emacs-bcf0d43c7346cd690251bd10b5944264a6358bad.tar.gz |
(gdb-tooltip-print): Avoid "Non-X frame used"
error with gud-tooltip-mode in the Linux console.
-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 |