GNU bug report logs -
#17303
On tty or -nw, (window-body-width) is one column too big.
Previous Next
Reported by: Alan Mackenzie <acm <at> muc.de>
Date: Sun, 20 Apr 2014 17:09:01 UTC
Severity: normal
Done: Alan Mackenzie <acm <at> muc.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi, Emacs.
I'm doing something at the moment involving scrolling of windows, and I
need to know at what "visual" column point is in. So, naturally, I do
(% (current-column) (window-body-width))
. At the start of the first continuation line, this formula (correctly)
returns 0 on a GUI, but (e.g.) 79 on a tty or in emacs -nw.
This is caused by emacs counting the "\" character in the right margin as
part of the body-width. This seems like a bad idea. I think it's also a
bug.
So, is there a better method of determining the "visual" column point is
in?
--
Alan Mackenzie (Nuremberg, Germany).
This bug report was last modified 11 years and 34 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.