GNU bug report logs - #18601
24.3.94; set-fringe-mode with left fringe 0 breaks window width calculations on Mac OS

Previous Next

Package: emacs;

Reported by: Constantine Vetoshev <vetoshev <at> gmail.com>

Date: Thu, 2 Oct 2014 08:40:02 UTC

Severity: important

Found in version 24.3.94

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


Message #44 received at 18601 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Constantine Vetoshev <vetoshev <at> gmail.com>
Cc: rudalics <at> gmx.at, 18601 <at> debbugs.gnu.org
Subject: Re: bug#18601: 24.3.94;
 set-fringe-mode with left fringe 0 breaks window width calculations
 on Mac OS
Date: Sat, 04 Oct 2014 21:49:37 +0300
> From: Constantine Vetoshev <vetoshev <at> gmail.com>
> Date: Sat, 4 Oct 2014 10:45:59 -0700
> Cc: martin rudalics <rudalics <at> gmx.at>, 18601 <at> debbugs.gnu.org
> 
> On Sat, Oct 4, 2014 at 12:08 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> >> From: Constantine Vetoshev <vetoshev <at> gmail.com>
> >> (defun term-window-width ()
> >>   (if (and (not (featurep ‘xemacs))
> >>   (display-graphic-p)
> >>   overflow-newline-into-fringe
> >>   (/= (frame-parameter nil ‘right-fringe) 0)
> >>   (/= (frame-parameter nil ‘left-fringe) 0))
> >>       (window-body-width)
> >>     (1- (window-body-width))))
> >>
> >> That does make the problem go away.
> >
> > That's what I meant, yes.
> 
> Should this be used to patch term.el?

If it gives good results, sure.




This bug report was last modified 10 years and 231 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.