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

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

[debbugs-tracker] bug#17303: closed (On tty or -nw, (window-body-width)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#17303: closed (On tty or -nw, (window-body-width) is one column too big.)
Date: Mon, 21 Apr 2014 15:34:02 +0000

Your message dated Mon, 21 Apr 2014 15:29:39 +0000
with message-id <address@hidden>
and subject line Re: bug#17303: Acknowledgement (On tty or -nw, 
(window-body-width) is one column too big.)
has caused the debbugs.gnu.org bug report #17303,
regarding On tty or -nw, (window-body-width) is one column too big.
to be marked as done.

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


-- 
17303: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17303
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: On tty or -nw, (window-body-width) is one column too big. Date: Sun, 20 Apr 2014 17:03:43 +0000 User-agent: Mutt/1.5.21 (2010-09-15)
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).



--- End Message ---
--- Begin Message --- Subject: Re: bug#17303: Acknowledgement (On tty or -nw, (window-body-width) is one column too big.) Date: Mon, 21 Apr 2014 15:29:39 +0000 User-agent: Mutt/1.5.21 (2010-09-15)
Bug closed; not a bug.

-- 
Alan Mackenzie (Nuremberg, Germany).


--- End Message ---

reply via email to

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