* Walking zigzag in a Custom buffer
@ 2005-08-17 20:57 Lennart Borgman
2005-08-17 22:09 ` Jason Rumney
0 siblings, 1 reply; 3+ messages in thread
From: Lennart Borgman @ 2005-08-17 20:57 UTC (permalink / raw)
This is probably not very important now but it points to a problem that
one day may become important. If you do M-x customize-option RET
minibuffer-prompt-properties RET and move around up and down in the
buffer you will notice that Emacs seems to be mistaken about the width
of the buttons when doing this.
If one looks at "Property:" and "Value:" they seem to be aligned
horizontally ok. However placing point at one of those words and moving
up and down between them shows that something else in Emacs seems to
make a different computation of the button width than was used when
displaying the buffer.
This makes me think there is a potential bug.
-----
Beside this I also find the behaviour when walking up and down with the
arrow keys between the fields after these prompt strange. Try putting
the point at the end of the text in both fields and use the up and down
arrows to switch between them. I do not always come back to the same
position in the other line. Instead the point is moved to the beginning
of the field.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Walking zigzag in a Custom buffer
2005-08-17 20:57 Walking zigzag in a Custom buffer Lennart Borgman
@ 2005-08-17 22:09 ` Jason Rumney
2005-08-17 22:46 ` Lennart Borgman
0 siblings, 1 reply; 3+ messages in thread
From: Jason Rumney @ 2005-08-17 22:09 UTC (permalink / raw)
Cc: Emacs Devel
Lennart Borgman <lennart.borgman.073@student.lu.se> writes:
> If one looks at "Property:" and "Value:" they seem to be aligned
> horizontally ok. However placing point at one of those words and
> moving up and down between them shows that something else in Emacs
> seems to make a different computation of the button width than was
> used when displaying the buffer.
>
> This makes me think there is a potential bug.
This is due to the fact that Emacs uses characters, not pixels as its
unit of horizontal position. The decoration on the buttons causes them
to be wider than the equivalent fixed-width text without such
decoration. You can see this by going to the beginning of the line
containing "Value", and moving foward 3 characters. I think the
alignment of the colons is more by careful hand placement than a
difference in computation of button width.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Walking zigzag in a Custom buffer
2005-08-17 22:09 ` Jason Rumney
@ 2005-08-17 22:46 ` Lennart Borgman
0 siblings, 0 replies; 3+ messages in thread
From: Lennart Borgman @ 2005-08-17 22:46 UTC (permalink / raw)
Cc: Emacs Devel
Jason Rumney wrote:
>Lennart Borgman <lennart.borgman.073@student.lu.se> writes:
>
>
>
>>If one looks at "Property:" and "Value:" they seem to be aligned
>>horizontally ok. However placing point at one of those words and
>>moving up and down between them shows that something else in Emacs
>>seems to make a different computation of the button width than was
>>used when displaying the buffer.
>>
>>This makes me think there is a potential bug.
>>
>>
>
>This is due to the fact that Emacs uses characters, not pixels as its
>unit of horizontal position. The decoration on the buttons causes them
>to be wider than the equivalent fixed-width text without such
>decoration. You can see this by going to the beginning of the line
>containing "Value", and moving foward 3 characters. I think the
>alignment of the colons is more by careful hand placement than a
>difference in computation of button width.
>
>
Thanks, I guess you are right. I did not think about that possibility.
Looks to me like one button decoration is a half character wide there.
Seems to be the easiest way to solve it.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-08-17 22:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-17 20:57 Walking zigzag in a Custom buffer Lennart Borgman
2005-08-17 22:09 ` Jason Rumney
2005-08-17 22:46 ` Lennart Borgman
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).