GNU bug report logs - #17303
On tty or -nw, (window-body-width) is one column too big.

Previous Next

Package: emacs;

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

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Alan Mackenzie <acm <at> muc.de>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#17303: closed (On tty or -nw, (window-body-width) is one
 column too big.)
Date: Mon, 21 Apr 2014 15:34:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 21 Apr 2014 15:29:39 +0000
with message-id <20140421152939.GA4266 <at> acm.acm>
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
help-debbugs <at> gnu.org.)


-- 
17303: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17303
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Alan Mackenzie <acm <at> muc.de>
To: bug-gnu-emacs <at> gnu.org
Subject: On tty or -nw, (window-body-width) is one column too big.
Date: Sun, 20 Apr 2014 17:03:43 +0000
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).


[Message part 3 (message/rfc822, inline)]
From: Alan Mackenzie <acm <at> muc.de>
To: 17303-done <at> debbugs.gnu.org
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
Bug closed; not a bug.

-- 
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.