emacs-devel
[Top][All Lists]
Advanced

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

Re: Tweaking the output of `C-h b'


From: Lars Ingebrigtsen
Subject: Re: Tweaking the output of `C-h b'
Date: Sun, 31 Oct 2021 21:24:21 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> This happens when calling indent-to on something that's 7 characters
> long, and it inserts two TABs to get to 16.  Anybody know what's up with
> that?  I.e., a TAB at position 6 takes us to 8, but at 7 it takes us to
> 16 instead.

It's the face:

(defface help-key-binding
[...]
    (((class color) (min-colors 88) (background dark))
     :background "grey19" :foreground "LightBlue"
     :box (:line-width (1 . -1) :color "grey35"))

The box makes a TAB in column 7 think it needs more space.  It also
makes cursor movement misbehave.  Test case:

(insert "1234567\n" (propertize "1234567\n" 'face 'help-key-binding))

Put point on 3 on the first line and hit <down>.  It'll take you to 2.
(At least that's what happens to me.)

The thing is that they're of identical width -- the box is on the
"inside" of the glyph.  Perhaps the stuff that handles :box believes
that all en-:box-ened glyphs are bigger?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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