emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#32276: closed (char-width of a space is 0 when dis


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#32276: closed (char-width of a space is 0 when display-table entry has a face.)
Date: Fri, 27 Jul 2018 09:35:02 +0000

Your message dated Fri, 27 Jul 2018 12:34:30 +0300
with message-id <address@hidden>
and subject line Re: bug#32276: char-width of a space is 0 when display-table 
entry has a face.
has caused the debbugs.gnu.org bug report #32276,
regarding char-width of a space is 0 when display-table entry has a face.
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
32276: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32276
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: char-width of a space is 0 when display-table entry has a face. Date: Wed, 25 Jul 2018 20:33:33 -0700
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.



--- End Message ---
--- Begin Message --- Subject: Re: bug#32276: char-width of a space is 0 when display-table entry has a face. Date: Fri, 27 Jul 2018 12:34:30 +0300
> Date: Wed, 25 Jul 2018 20:33:33 -0700
> From: Keith David Bershatsky <address@hidden>
> 
> EXPECTED RESULT:  The char-width should be 1 in Step 2, just like in Step 4.

Thanks, fixed on the emacs-26 branch.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]