From: Nick Roberts Date: Tue, 28 Apr 2009 10:35:41 +0000 (+0000) Subject: (gdb-tooltip-print): Avoid "Non-X frame used" X-Git-Tag: emacs-pretest-23.0.93~36 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4dc5a19d8b363379bf92a342023ed59877396cc5;p=emacs.git (gdb-tooltip-print): Avoid "Non-X frame used" error with gud-tooltip-mode in the Linux console. --- 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