unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: cyd@stupidchicken.com, emacs-devel@gnu.org
Subject: Re: tabulated-list-init-header and glyphless-char-display
Date: Sun, 10 Apr 2011 01:24:41 -0400	[thread overview]
Message-ID: <E1Q8n8b-0003hN-CF@fencepost.gnu.org> (raw)
In-Reply-To: <jwvei5a69q1.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Sun, 10 Apr 2011 00:59:21 -0300)

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Eli Zaretskii <eliz@gnu.org>,  emacs-devel@gnu.org
> Date: Sun, 10 Apr 2011 00:59:21 -0300
> 
> > Thanks.  This doesn't quite do what I want, because (i) it applies to
> > the entire buffer, when I only want it to apply to one particular glyph,
> > and (ii) the char table's "fallback display" slot applies to all glyphs
> > with no fonts, when I only want to handle two particular glyphs.
> 
> Hmm... so IIUC we distinguish between "glyphless" and "without a font".
> Where do we explain the difference between the two, and is there a good
> reason to distinguish the two cases?

No, "glyphless" and "without a font" are (and should be) synonyms.
Except that on a text terminal, "without a font" means "cannot be
encoded for the current terminal encoding".

> > I propose introducing a `glyphless-char-display-default' text-property,
> > which, if non-nil, overrides glyphless-char-display's "fallback display"
> > slot locally.  See attached patch, which seems to do the right thing.
> 
> I think problem (i) above is not a real problem, so if we can fix (ii)
> by changing glyphless-char-display we wouldn't need such a text property.

What I had in mind was something much more lightweight: look at these
characters' cells in glyphless-char-display (or use
unencodable-char-position on a tty), and if that indicates that the
characters cannot be displayed, use the surrogates.  I see no need for
a more general infrastructure for this case, as it is quite rare.



  reply	other threads:[~2011-04-10  5:24 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-08 17:17 tabulated-list-init-header and glyphless-char-display Eli Zaretskii
2011-04-08 18:27 ` Chong Yidong
2011-04-08 18:47   ` Eli Zaretskii
2011-04-08 18:59     ` Eli Zaretskii
2011-04-09 19:26     ` Chong Yidong
2011-04-10  3:59       ` Stefan Monnier
2011-04-10  5:24         ` Eli Zaretskii [this message]
2011-04-10 15:47           ` Chong Yidong
2011-04-10 16:53             ` Eli Zaretskii
2011-04-10 18:11               ` Chong Yidong
2011-04-11 17:03                 ` Eli Zaretskii
2011-04-11 17:31                   ` Chong Yidong
2011-04-11 18:04                     ` Eli Zaretskii
2011-04-11 18:39                       ` Chong Yidong
2011-04-11 19:27                         ` Eli Zaretskii
2011-04-11 22:31                           ` Chong Yidong
2011-04-12  3:57                             ` Stefan Monnier
2011-04-12  4:51                             ` Eli Zaretskii
2011-04-12  5:42                               ` Kevin Rodgers
2011-04-12  5:58                                 ` Eli Zaretskii
2011-04-12 16:12                               ` Chong Yidong
2011-04-12 16:45                                 ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2011-04-08 17:26 Eli Zaretskii
2011-04-09 10:26 ` Štěpán Němec
2011-04-09 12:12   ` Eli Zaretskii
2011-04-09 13:56     ` Stefan Monnier
2011-04-09 15:37       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1Q8n8b-0003hN-CF@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).