From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: tabulated-list-init-header and glyphless-char-display Date: Tue, 12 Apr 2011 01:58:49 -0400 Message-ID: References: <83mxk0u0g7.fsf@gnu.org> <874o68zjhi.fsf@stupidchicken.com> <83k4f4twam.fsf@gnu.org> <8762qnxm44.fsf@stupidchicken.com> <83hba6rqtm.fsf@gnu.org> <87mxjyht7w.fsf@stupidchicken.com> <83pqosra90.fsf@gnu.org> <87pqosg0ea.fsf@stupidchicken.com> <83oc4cr7fe.fsf@gnu.org> <87vcykaazw.fsf@stupidchicken.com> <83mxjwr3ki.fsf@gnu.org> <87lizgto6g.fsf@stupidchicken.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1302587940 28274 80.91.229.12 (12 Apr 2011 05:59:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Apr 2011 05:59:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kevin Rodgers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 12 07:58:55 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from [140.186.70.17] (helo=lists.gnu.org) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9Wco-00032d-9V for ged-emacs-devel@m.gmane.org; Tue, 12 Apr 2011 07:58:54 +0200 Original-Received: from localhost ([::1]:41780 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9Wcn-0000r8-Kj for ged-emacs-devel@m.gmane.org; Tue, 12 Apr 2011 01:58:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9Wck-0000qU-8D for emacs-devel@gnu.org; Tue, 12 Apr 2011 01:58:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9Wcj-0006pY-F1 for emacs-devel@gnu.org; Tue, 12 Apr 2011 01:58:50 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:40203) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9Wcj-0006pR-DA for emacs-devel@gnu.org; Tue, 12 Apr 2011 01:58:49 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Q9Wcj-0005VO-7U; Tue, 12 Apr 2011 01:58:49 -0400 In-reply-to: (message from Kevin Rodgers on Mon, 11 Apr 2011 23:42:53 -0600) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-Broken-Reverse-DNS: no host name found for IP address 140.186.70.17 Xref: news.gmane.org gmane.emacs.devel:138427 Archived-At: > From: Kevin Rodgers > Date: Mon, 11 Apr 2011 23:42:53 -0600 > > > Then let's extend glyphless-char-display to provide this information. > > That is, for each character, it should provide display information > > both for GUI and for text-mode displays. It can do that by providing > > an option to have an element of the char-table be a vector of 2 > > elements, instead of just one value today. Most table entries will > > still be symbols like today, but we could have some of them be > > vectors, as in this case and in the case of line-drawing characters. > > Rather than returning 2 values, the optional argument could be FRAME to > indicate whether the caller needs that information for a graphic > vs. terminal frame (nil would means the current frame of course). Looking at a frame does not yet give the crucial information of what to display instead of the character if the frame cannot handle it. OTOH, determining that the frame cannot handle it is trivial. So with your suggestion, the information needed by the display engine will not be available, which makes this kind of entry useless. What I meant is to have a possibility to put in the char-table an element of the form [GUI-DISPLAY TTY-DISPLAY] where each one of the elements could be either one of the methods we use today (`hex-code', `empty-box', etc.; see glyphless-char-display-control), or a codepoint of a character (or maybe even a string) to display.