[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#32744: There seems to be a bug in current-column in character mode
From: |
Eli Zaretskii |
Subject: |
bug#32744: There seems to be a bug in current-column in character mode |
Date: |
Sun, 16 Sep 2018 20:11:40 +0300 |
> From: Kalman Reti <kalman.reti@gmail.com>
> Date: Sun, 16 Sep 2018 09:28:47 -0400
>
> In an empty buffer, m-: of
>
> (let ((p (point))) (insert " ") (add-text-properties p (point) `(display
> (space :width 7))) (insert ".")
> (current-column))
>
> returns 2 in gui mode but 8 in character mode of emacsen more recent than
> emacs 22. (I tried it in several
> emacs versions including the most recent 27.0.50 snapshot.)
I get 8 in GUI frames as well.
The display spec (space :width 7) means 7 times the width of the
default face's font. So if your default GUI font is monospaced, you
should get 8 in both GUI and text-mode frames.
So I'm unsure how come you get 2 in GUI mode. Maybe you've omitted
some important detail in the reproducer.
Thanks.
- bug#32744: There seems to be a bug in current-column in character mode, Kalman Reti, 2018/09/16
- bug#32744: There seems to be a bug in current-column in character mode,
Eli Zaretskii <=
- Message not available
- Message not available
- bug#32744: There seems to be a bug in current-column in character mode, Kalman Reti, 2018/09/16
- bug#32744: There seems to be a bug in current-column in character mode, Eli Zaretskii, 2018/09/17
- bug#32744: There seems to be a bug in current-column in character mode, Kalman Reti, 2018/09/17
- bug#32744: There seems to be a bug in current-column in character mode, Eli Zaretskii, 2018/09/17
- bug#32744: There seems to be a bug in current-column in character mode, Noam Postavsky, 2018/09/17