From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 25 19:16:20 2014 Received: (at submit) by debbugs.gnu.org; 26 Dec 2014 00:16:20 +0000 Received: from localhost ([127.0.0.1]:57575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4IZn-00056B-VI for submit@debbugs.gnu.org; Thu, 25 Dec 2014 19:16:20 -0500 Received: from eggs.gnu.org ([208.118.235.92]:58059) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4IZl-000563-Eg for submit@debbugs.gnu.org; Thu, 25 Dec 2014 19:16:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y4IZk-00067F-Hi for submit@debbugs.gnu.org; Thu, 25 Dec 2014 19:16:17 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4IZk-00067B-Eb for submit@debbugs.gnu.org; Thu, 25 Dec 2014 19:16:16 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4IZj-0005pC-Ko for bug-gnu-emacs@gnu.org; Thu, 25 Dec 2014 19:16:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y4IZi-000671-R9 for bug-gnu-emacs@gnu.org; Thu, 25 Dec 2014 19:16:15 -0500 Received: from mail-wg0-x22f.google.com ([2a00:1450:400c:c00::22f]:37729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4IZi-00066w-KW for bug-gnu-emacs@gnu.org; Thu, 25 Dec 2014 19:16:14 -0500 Received: by mail-wg0-f47.google.com with SMTP id n12so13498795wgh.6 for ; Thu, 25 Dec 2014 16:16:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=b4PkI08BIE+Li2oNABWg8gssC7RJBk3194HMgU9kPy4=; b=l2WsKM1fGweVWh3Q5iiK+myj8JCWmdX5snSQ9b0tc1U2SbiNeUeFTQVGCFJ3XjL0wF VFpybfZhOr9OiiTn2dCUUxrNsQ25Bl67niqIsmlUotgw5Qd+BYe/sFOupc5YRaZZKCuX 8BmFyCupFeNchdB07k37BPO9k75w0d1xTc9Fcp0id7NYI4xSNy7H4hyQmN0yxFM5JKK9 WIm4imXbhvkJu/Yhu3M2ViddZnnrcVt7/3r5o8S2AAfJJRRT+fN7DEvWJc4xEypjYLVP h51ajLEOAzbg2ZtCzY0lQVjr9yOfz/C7xX5quPYTMRb5WSXKiEiiFcMyJRrrO2tMOY4x 9dWQ== MIME-Version: 1.0 X-Received: by 10.194.85.17 with SMTP id d17mr75291755wjz.61.1419552973343; Thu, 25 Dec 2014 16:16:13 -0800 (PST) Received: by 10.27.87.87 with HTTP; Thu, 25 Dec 2014 16:16:13 -0800 (PST) Date: Thu, 25 Dec 2014 19:16:13 -0500 Message-ID: Subject: 25.0.50; Overflowing newline into right fringe requires left fringe to be nonempty From: Kirill Ignatiev To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 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)) From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 26 03:18:57 2014 Received: (at 19442-done) by debbugs.gnu.org; 26 Dec 2014 08:18:57 +0000 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 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 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) 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) Date: Fri, 26 Dec 2014 10:18:49 +0200 From: Eli Zaretskii Subject: Re: bug#19442: 25.0.50; Overflowing newline into right fringe requires left fringe to be nonempty In-reply-to: X-012-Sender: halo1@inter.net.il To: Kirill Ignatiev Message-id: <83bnmqn7rq.fsf@gnu.org> References: X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 19442-done Cc: 19442-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > 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. From unknown Mon Aug 18 19:22:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 23 Jan 2015 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator