GNU bug report logs - #19442
25.0.50; Overflowing newline into right fringe requires left fringe to be nonempty

Previous Next

Package: emacs;

Reported by: Kirill Ignatiev <kirill.ignatiev <at> gmail.com>

Date: Fri, 26 Dec 2014 00:17:02 UTC

Severity: normal

Found in version 25.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

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: Kirill Ignatiev <kirill.ignatiev <at> gmail.com>
Subject: bug#19442: closed (Re: bug#19442: 25.0.50; Overflowing newline
 into right fringe requires left fringe to be	nonempty)
Date: Fri, 26 Dec 2014 08:19:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#19442: 25.0.50; Overflowing newline into right fringe requires left fringe to be nonempty

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 19442 <at> debbugs.gnu.org.

-- 
19442: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19442
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Kirill Ignatiev <kirill.ignatiev <at> gmail.com>
Cc: 19442-done <at> debbugs.gnu.org
Subject: Re: bug#19442: 25.0.50;
 Overflowing newline into right fringe requires left fringe to
 be	nonempty
Date: Fri, 26 Dec 2014 10:18:49 +0200
> Date: Thu, 25 Dec 2014 19:16:13 -0500
> From: Kirill Ignatiev <kirill.ignatiev <at> gmail.com>
> 
> According to overflow-newline-into-fringe's docstring, when point is
> that the end of a line that is as wide as the frame the point should
> be displayed in the right fringe.
> 
> However, it seems that on 25.0.50 (with -Q), it requires both the
> right *and* the left fringe to be non-empty. If the left fringe is
> empty, the newline does not overflow into the right fringe, as the
> documentation and common sense says it should.
> 
> (setq overflow-newline-into-fringe t)
> (dolist (x '((cursor-type . box)
>              (cursor-color . "red")
>              (width . 80)
>              (left-fringe . 8) ; change this to 0
>              (right-fringe . 8)))
>   (set-frame-parameter (selected-frame) (car x) (cdr x)))
> ;; (progn (insert "\n;") (dotimes (x 79) (insert ?x)))
> ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

This is not a bug.

You insert too many characters in that line.  Insert only 79 of them,
including the semi-colon, and you will see the newline overflow into
the right fringe, as documented.

When one of the fringes is missing, the display engine reserves one
column for the continuation glyph, so you have one column less for
characters.  For more details about this, see

  http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19395#32

and a few follow-ups after that.

If you want to avoid losing 1 full column, set the left fringe to 1
pixel, not zero.

[Message part 3 (message/rfc822, inline)]
From: Kirill Ignatiev <kirill.ignatiev <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50; Overflowing newline into right fringe requires left fringe
 to be nonempty
Date: Thu, 25 Dec 2014 19:16:13 -0500
According to overflow-newline-into-fringe's docstring, when point is
that the end of a line that is as wide as the frame the point should
be displayed in the right fringe.

However, it seems that on 25.0.50 (with -Q), it requires both the
right *and* the left fringe to be non-empty. If the left fringe is
empty, the newline does not overflow into the right fringe, as the
documentation and common sense says it should.

(setq overflow-newline-into-fringe t)
(dolist (x '((cursor-type . box)
             (cursor-color . "red")
             (width . 80)
             (left-fringe . 8) ; change this to 0
             (right-fringe . 8)))
  (set-frame-parameter (selected-frame) (car x) (cdr x)))
;; (progn (insert "\n;") (dotimes (x 79) (insert ?x)))
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

In GNU Emacs 25.0.50.36 (x86_64-apple-darwin13.4.0, NS appkit-1265.21
Version 10.9.5 (Build 13F34))



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

Previous Next


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