# HG changeset patch # User Nick Roberts # Date 1240914941 0 # Node ID 60e16972e785dc710c3aeed9e1a70445469b78f5 # Parent 40c914155732ab417bd3fc06adf754e1ee25e4d3 (gdb-tooltip-print): Avoid "Non-X frame used" error with gud-tooltip-mode in the Linux console. diff -r 40c914155732 -r 60e16972e785 lisp/progmodes/gdb-ui.el --- a/lisp/progmodes/gdb-ui.el Tue Apr 28 10:35:08 2009 +0000 +++ b/lisp/progmodes/gdb-ui.el Tue Apr 28 10:35:41 2009 +0000 @@ -504,7 +504,8 @@ (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