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: Sat, 05 Dec 2009 16:14:52 -0500 Message-ID: <87pr6tcecz.fsf@stupidchicken.com> Reply-To: Chong Yidong , 5117@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260048470 7697 80.91.229.12 (5 Dec 2009 21:27:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Dec 2009 21:27:50 +0000 (UTC) Cc: 5117@emacsbugs.donarmstrong.com To: Matthew Dempsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 05 22:27:43 2009 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 1NH2AI-0000Mz-Rh for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2009 22:27:43 +0100 Original-Received: from localhost ([127.0.0.1]:38173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NH2AH-00060E-Uf for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2009 16:27:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NH2AC-0005yO-6G for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 16:27:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NH2A6-0005sw-Qd for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 16:27:35 -0500 Original-Received: from [199.232.76.173] (port=52187 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NH2A6-0005sl-LM for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 16:27:30 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:37763) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NH2A6-000387-6X for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 16:27:30 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB5LRPY2001791; Sat, 5 Dec 2009 13:27:28 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nB5LK91E000915; Sat, 5 Dec 2009 13:20:09 -0800 Resent-Date: Sat, 5 Dec 2009 13:20:09 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sat, 05 Dec 2009 21:20:09 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 5117 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5117-submit@emacsbugs.donarmstrong.com id=B5117.126004770232767 (code B ref 5117); Sat, 05 Dec 2009 21:20:09 +0000 Original-Received: (at 5117) by emacsbugs.donarmstrong.com; 5 Dec 2009 21:15:02 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from pantheon-po19.its.yale.edu (pantheon-po19.its.yale.edu [130.132.50.75]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB5LF03f032763 for <5117@emacsbugs.donarmstrong.com>; Sat, 5 Dec 2009 13:15:01 -0800 Original-Received: from furry (dhcp128036204110.central.yale.edu [128.36.204.110]) (authenticated bits=0) by pantheon-po19.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id nB5LEsE0023084 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 5 Dec 2009 16:14:54 -0500 Original-Received: by furry (Postfix, from userid 1000) id 5683DC071; Sat, 5 Dec 2009 16:14:54 -0500 (EST) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 05 Dec 2009 16:27:35 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:33276 Archived-At: > This patch seems to correct the behavior: > > --- a/src/xdisp.c > +++ b/src/xdisp.c > @@ -21380,7 +21380,7 @@ x_produce_glyphs (it) > if (font->space_width > 0) > { > int tab_width = it->tab_width * font->space_width; > - int x = it->current_x + it->continuation_lines_width; > + int x = it->current_x; > int next_tab_x = ((1 + x + tab_width - 1) / tab_width) * tab_width; > > /* If the distance from the current position to the next tab The "+ it->continuation_lines_width" was added for a reason. IIRC, it is so that continued lines containing tabs are displayed correctly.