1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-18 18:05:07 +00:00

(gdb-tooltip-print): Avoid "Non-X frame used"

error with gud-tooltip-mode in the Linux console.
This commit is contained in:
Nick Roberts 2009-04-28 10:35:41 +00:00
parent a2ced5a9e5
commit 4dc5a19d8b

View File

@ -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