From: Keith David Bershatsky <esq@lawlist.com>
To: 32276@debbugs.gnu.org
Subject: bug#32276: char-width of a space is 0 when display-table entry has a face.
Date: Wed, 25 Jul 2018 20:33:33 -0700 [thread overview]
Message-ID: <m236w66582.wl%esq@lawlist.com> (raw)
Step 1: Open a newly built GUI version of Emacs master branch.
Step 2: Open a scratch buffer and evaluate the following code:
;;; char-width == 0
(progn
(fundamental-mode)
(setq buffer-display-table (make-display-table))
(aset buffer-display-table
?\s
(vector (make-glyph-code ?· 'font-lock-warning-face)))
(char-width ?\s))
Step 3: The char-width in Step 2 is 0.
Step 4: In the same or a different scratch buffer, evaluate the following code:
;;; char-width == 1
(progn
(fundamental-mode)
(setq buffer-display-table (make-display-table))
(aset buffer-display-table
?\s
(vector (make-glyph-code ?·)))
(char-width ?\s))
Step 5: The char-width in Step 4 is 1.
EXPECTED RESULT: The char-width should be 1 in Step 2, just like in Step 4.
next reply other threads:[~2018-07-26 3:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-26 3:33 Keith David Bershatsky [this message]
2018-07-27 9:34 ` bug#32276: char-width of a space is 0 when display-table entry has a face Eli Zaretskii
2018-07-28 22:37 ` Paul Eggert
2018-07-29 14:45 ` 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=m236w66582.wl%esq@lawlist.com \
--to=esq@lawlist.com \
--cc=32276@debbugs.gnu.org \
/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).