From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#5117: 23.1.50; Weird display when wrap-prefix contains tabs Date: Fri, 01 Jan 2010 13:35:59 -0500 Message-ID: <874on5zn8w.fsf@stupidchicken.com> Reply-To: Chong Yidong , 5117@debbugs.gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1262371782 8095 80.91.229.12 (1 Jan 2010 18:49:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Jan 2010 18:49:42 +0000 (UTC) Cc: 5117@debbugs.gnu.org To: Matthew Dempsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 01 19:49:34 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NQmZ2-0002Oh-7e for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Jan 2010 19:49:32 +0100 Original-Received: from localhost ([127.0.0.1]:50902 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQmZ2-0007Sh-M5 for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Jan 2010 13:49:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NQmYZ-0007CY-MR for bug-gnu-emacs@gnu.org; Fri, 01 Jan 2010 13:49:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NQmYQ-0007BA-86 for bug-gnu-emacs@gnu.org; Fri, 01 Jan 2010 13:49:03 -0500 Original-Received: from [199.232.76.173] (port=38331 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQmYQ-0007B7-1r for bug-gnu-emacs@gnu.org; Fri, 01 Jan 2010 13:48:54 -0500 Original-Received: from [140.186.70.43] (port=50439 helo=debbugs.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NQmYP-00053m-EE for bug-gnu-emacs@gnu.org; Fri, 01 Jan 2010 13:48:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NQmMv-0007Zt-N1; Fri, 01 Jan 2010 13:37:01 -0500 X-Loop: bug-gnu-emacs@gnu.org Mail-Followup-To: Chong Yidong , 5117@debbugs.gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Jan 2010 18:37:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5117 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5117-submit@debbugs.gnu.org id=B5117.126237096629120 (code B ref 5117); Fri, 01 Jan 2010 18:37:01 +0000 Original-Received: (at 5117) by debbugs.gnu.org; 1 Jan 2010 18:36:06 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NQmM2-0007Zd-BU for submit@debbugs.gnu.org; Fri, 01 Jan 2010 13:36:06 -0500 Original-Received: from pantheon-po39.its.yale.edu ([130.132.50.100]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NQmM0-0007ZI-9b for 5117@debbugs.gnu.org; Fri, 01 Jan 2010 13:36:04 -0500 Original-Received: from furry (dhcp128036014103.central.yale.edu [128.36.14.103]) (authenticated bits=0) by pantheon-po39.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o01IZxcT018701 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 1 Jan 2010 13:35:59 -0500 Original-Received: by furry (Postfix, from userid 1000) id D08C3C05D; Fri, 1 Jan 2010 13:35:59 -0500 (EST) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: 0.8 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: 0.8 (/) Resent-Date: Fri, 01 Jan 2010 13:37:01 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:33828 Archived-At: > > The "+ it->continuation_lines_width" was added for a reason. > > I tracked back through the history of the code, and that part has been > there since the code was introduced as far as I can tell. > > > IIRC, it is so that continued lines containing tabs are displayed correctly. > > Can you define "correctly"? When I remove the addition, it displays > 'correctly' from what I expect: a tab always indents the text to the > next visual column that's a multiple of 8. Sorry for the delay in replying. Suppose that (i) next tab stop is 3 characters off the right edge of the text area, and (ii) you have text going all the way to the right edge. Now insert a tab character. With the current code, Emacs displays the tab up to the 3rd character of the continuation line. This is "correct", in the sense that the continuation line is a "continuation" of the previous line with the tab stops picking up where they left off. With the patch you propose, Emacs would instead display up to the 8th character of the continuation line.