From 24268213e13b61f2cb8f88e69164161e84f08f5f Mon Sep 17 00:00:00 2001 From: Karoly Lorentey Date: Thu, 19 Feb 2004 02:27:31 +0000 Subject: [PATCH] Fix list-colors-display and other functions on a termcap frame src/term.c (get_tty_display): Fall back to the current device if display is nil. (Reported by Dan Nicolaescu .) git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-81 --- src/term.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/term.c b/src/term.c index ddca41f317..b345211b91 100644 --- a/src/term.c +++ b/src/term.c @@ -1882,14 +1882,18 @@ tty_capable_p (tty, caps, fg, bg) return 1; } -/* Return the tty display object specified by DISPLAY. - DISPLAY may be a frame or a string. */ +/* Return the tty display object specified by DISPLAY. DISPLAY may be + a frame, a string, or nil for the display device of the current + frame. */ static struct display * get_tty_display (Lisp_Object display) { struct display *d; + if (NILP (display)) + display = selected_frame; + if (! FRAMEP (display) && ! STRINGP (display)) return 0; -- 2.39.2