From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: tabulated-list-init-header and glyphless-char-display Date: Mon, 11 Apr 2011 23:42:53 -0600 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1302586986 24383 80.91.229.12 (12 Apr 2011 05:43:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Apr 2011 05:43:06 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 12 07:43:03 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 1Q9WNR-0004Oy-KU for ged-emacs-devel@m.gmane.org; Tue, 12 Apr 2011 07:43:01 +0200 Original-Received: from localhost ([::1]:48725 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9WNR-0004iI-0Z for ged-emacs-devel@m.gmane.org; Tue, 12 Apr 2011 01:43:01 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9WNO-0004hm-52 for emacs-devel@gnu.org; Tue, 12 Apr 2011 01:42:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9WNN-0003Fi-3G for emacs-devel@gnu.org; Tue, 12 Apr 2011 01:42:58 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:54201) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9WNM-0003FD-Oi for emacs-devel@gnu.org; Tue, 12 Apr 2011 01:42:57 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q9WNL-0004N2-Lj for emacs-devel@gnu.org; Tue, 12 Apr 2011 07:42:55 +0200 Original-Received: from c-24-8-96-241.hsd1.co.comcast.net ([24.8.96.241]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Apr 2011 07:42:55 +0200 Original-Received: from kevin.d.rodgers by c-24-8-96-241.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Apr 2011 07:42:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 42 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-24-8-96-241.hsd1.co.comcast.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:138425 Archived-At: On 4/11/11 10:51 PM, Eli Zaretskii wrote: >> From: Chong Yidong >> Date: Mon, 11 Apr 2011 18:31:51 -0400 >> Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org >> ... >> I suspect there will be other situations where it's convenient to use >> unicode glyphs in Emacs buffers. If we can design a sufficiently >> flexible system, I think this is a good investment. >> >> For example, one could imagine a version of table.el that displays >> >> ┌─┬─┐ >> │a│b│ >> ├─┼─┤ >> │ │ │ >> └─┴─┘ >> >> on graphical terminals, using the Unicode box-drawing glyphs, and >> displays the equivalent ASCII borders on terminals that don't handle >> Unicode. > > 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). > I think this is better than the text property suggestion, because > glyphless-char-display can be set once and by default, whereas with > text properties each Lisp application that needs it will have to do > that manually. -- Kevin Rodgers Denver, Colorado, USA