From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: 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 Message-ID: <83bnmqn7rq.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1419581958 6343 80.91.229.3 (26 Dec 2014 08:19:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Dec 2014 08:19:18 +0000 (UTC) Cc: 19442-done@debbugs.gnu.org To: Kirill Ignatiev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 26 09:19:12 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y4Q76-0003Ue-3S for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Dec 2014 09:19:12 +0100 Original-Received: from localhost ([::1]:52736 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4Q75-0000zm-6l for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Dec 2014 03:19:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4Q70-0000zb-GX for bug-gnu-emacs@gnu.org; Fri, 26 Dec 2014 03:19:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y4Q6w-0001BR-V2 for bug-gnu-emacs@gnu.org; Fri, 26 Dec 2014 03:19:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48300) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4Q6w-0001BB-RI for bug-gnu-emacs@gnu.org; Fri, 26 Dec 2014 03:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y4Q6w-0000Tu-Gs for bug-gnu-emacs@gnu.org; Fri, 26 Dec 2014 03:19:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Dec 2014 08:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 19442 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 19442@debbugs.gnu.org, eliz@gnu.org, kirill.ignatiev@gmail.com Original-Received: via spool by 19442-done@debbugs.gnu.org id=D19442.14195819371833 (code D ref 19442); Fri, 26 Dec 2014 08:19:02 +0000 Original-Received: (at 19442-done) by debbugs.gnu.org; 26 Dec 2014 08:18:57 +0000 Original-Received: from localhost ([127.0.0.1]:57665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4Q6q-0000TV-PW for submit@debbugs.gnu.org; Fri, 26 Dec 2014 03:18:57 -0500 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:55216) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4Q6n-0000TL-9l for 19442-done@debbugs.gnu.org; Fri, 26 Dec 2014 03:18:54 -0500 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NH600100KAP4700@mtaout28.012.net.il> for 19442-done@debbugs.gnu.org; Fri, 26 Dec 2014 10:16:40 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NH600JV5KBSOU50@mtaout28.012.net.il>; Fri, 26 Dec 2014 10:16:40 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:97732 Archived-At: > Date: Thu, 25 Dec 2014 19:16:13 -0500 > From: Kirill Ignatiev > > 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.