[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#20545: New minor mode Electric Punct
From: |
Eli Zaretskii |
Subject: |
bug#20545: New minor mode Electric Punct |
Date: |
Wed, 13 May 2015 19:54:30 +0300 |
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Eli Zaretskii <eliz@gnu.org>, 20545@debbugs.gnu.org
> Date: Wed, 13 May 2015 09:10:07 -0400
>
> > I just now configured a terminal to refuse to display curved quotes, and
> > when I used it Emacs displayed "‘like this’" as "\u2018like this\u2019" with
> > underscores below the "\u2018" and the "\u2019".
>
> Hmm... is it really Emacs that displayed it like this? Or is it the
> terminal which did it?
Emacs. That's how we display "glyphless" characters on a TTY.
> If it's Emacs, then I wonder how it figured it needed to do that,
By checking whether the character belongs to one of the charsets
supported by the terminal. We call char_charset with the list of
charsets supported by the terminal frame; that charset list is set by
set-terminal-coding-system-internal. See the end of
term.c:produce_glyphs.
> and if it's the terminal, then I wonder how Emacs could tell the
> terminal to...
>
> > ... display it as "`like this'" with underscores under the "`" and the "'",
> > if you think that'd be a win.
We could discover this in advance (e.g., using char-displayable-p) and
use a display table, for example.
- bug#20545: New minor mode Electric Punct, Paul Eggert, 2015/05/10
- bug#20545: New minor mode Electric Punct, Eli Zaretskii, 2015/05/11
- bug#20545: New minor mode Electric Punct, Paul Eggert, 2015/05/13
- bug#20545: New minor mode Electric Punct, Stefan Monnier, 2015/05/13
- bug#20545: New minor mode Electric Punct, Paul Eggert, 2015/05/13
- bug#20545: New minor mode Electric Punct, Eli Zaretskii, 2015/05/13
- bug#20545: New minor mode Electric Punct, Stefan Monnier, 2015/05/13
- bug#20545: New minor mode Electric Punct, Eli Zaretskii, 2015/05/14
- bug#20545: New minor mode Electric Punct,
Eli Zaretskii <=
- bug#20545: New minor mode Electric Punct, Eli Zaretskii, 2015/05/13
- bug#20545: New minor mode Electric Punct, Paul Eggert, 2015/05/13
- bug#20545: New minor mode Electric Punct, Eli Zaretskii, 2015/05/13
- bug#20545: New minor mode Electric Punct, Eli Zaretskii, 2015/05/13
- bug#20545: New minor mode Electric Punct, Paul Eggert, 2015/05/14
- bug#20545: New minor mode Electric Punct, Paul Eggert, 2015/05/16
- bug#20545: New minor mode Electric Punct, Eli Zaretskii, 2015/05/17
- bug#20545: New minor mode Electric Punct, Paul Eggert, 2015/05/17
- bug#20545: New minor mode Electric Punct, Eli Zaretskii, 2015/05/17
- bug#20545: Transliterating curved to straight quotes in 8-bit environments, Paul Eggert, 2015/05/31