]> git.eshelyaron.com Git - emacs.git/commitdiff
(gdb-tooltip-print): Avoid "Non-X frame used"
authorNick Roberts <nickrob@snap.net.nz>
Tue, 28 Apr 2009 10:35:41 +0000 (10:35 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Tue, 28 Apr 2009 10:35:41 +0000 (10:35 +0000)
error with gud-tooltip-mode in the Linux console.

lisp/progmodes/gdb-ui.el

index 34c13b6948fc50d4fa5eb67907477f392b7fc0fc..5eb44caa7a67bfe6354f03c946de5499b985a1a5 100644 (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