GNU bug report logs -
#22891
25.0.92; set-fringe-mode with left fringe 0 breaks window width calculations on Mac OS (again)
Previous Next
Reported by: Constantine Vetoshev <vetoshev <at> gmail.com>
Date: Thu, 3 Mar 2016 06:39:01 UTC
Severity: normal
Found in version 25.0.92
Done: Anders Lindgren <andlind <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 22891 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi!
I took a look at this from the NS port point of view.
Setting the `left-frame' frame parameter to any from 1 and up change the
width of the fringe, while retaining the width of the text area (80
characters). However, setting it to 0 makes the text area wrap on 79
characters (despite there being space for the 80:th character) while
`window-width' still returns 80.
Presumably, this is the root cause of the ansi-term problem.
However, to check if this was a NS specific problem, I tested this on a
freshly built GTK+ emacs on LinuxMint. It turned out that it, too, suffers
from the same problem, so I'm handing over this to you, Martin.
Steps to repeat:
emacs -Q
C-u 8 0 x RET
;; This inserts a line wide enough to reach the right side of the
screen without wrapping)
(set-frame-parameter (selected-frame) 'left-fringe 50)
;; This makes the left fringe wide, the text area still holds the
80 x:s nicely.
(window-width)
;; 80
(set-frame-parameter (selected-frame) 'left-fringe 1)
;; Narrow left fringe. Text area still holds the x:s
(window-width)
;; 80
(set-frame-parameter (selected-frame) 'left-fringe 0)
;; The line of x:s wrap
(window-width)
;; 80 -- inconsistent with what is displayed on screen.
-- Anders
[Message part 2 (text/html, inline)]
This bug report was last modified 9 years and 86 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.