From 4dc5a19d8b363379bf92a342023ed59877396cc5 Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Tue, 28 Apr 2009 10:35:41 +0000 Subject: [PATCH] (gdb-tooltip-print): Avoid "Non-X frame used" error with gud-tooltip-mode in the Linux console. --- lisp/progmodes/gdb-ui.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5