From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthew Dempsky Newsgroups: gmane.emacs.bugs Subject: bug#5117: 23.1.50; Weird display when wrap-prefix contains tabs Date: Thu, 3 Dec 2009 14:38:20 -0800 Message-ID: Reply-To: Matthew Dempsky , 5117@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1259880476 13327 80.91.229.12 (3 Dec 2009 22:47:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Dec 2009 22:47:56 +0000 (UTC) To: 5117@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 03 23:47:49 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 1NGKSi-0004od-LB for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Dec 2009 23:47:49 +0100 Original-Received: from localhost ([127.0.0.1]:43147 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGKSh-0005el-Bm for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Dec 2009 17:47:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGKSS-0005Yu-44 for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2009 17:47:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGKSN-0005YO-N3 for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2009 17:47:31 -0500 Original-Received: from [199.232.76.173] (port=51186 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGKSN-0005Y8-F2 for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2009 17:47:27 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50225) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NGKSM-0004eP-HM for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2009 17:47:26 -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 nB3MlOFD032403; Thu, 3 Dec 2009 14:47:24 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nB3Mj6LU032156; Thu, 3 Dec 2009 14:45:06 -0800 Resent-Date: Thu, 3 Dec 2009 14:45:06 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Matthew Dempsky Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 03 Dec 2009 22:45:06 +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.125987990731613 (code B ref 5117); Thu, 03 Dec 2009 22:45:06 +0000 Original-Received: (at 5117) by emacsbugs.donarmstrong.com; 3 Dec 2009 22:38:27 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-pz0-f175.google.com (mail-pz0-f175.google.com [209.85.222.175]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB3McQkA031600 for <5117@emacsbugs.donarmstrong.com>; Thu, 3 Dec 2009 14:38:27 -0800 Original-Received: by pzk5 with SMTP id 5so1246998pzk.1 for <5117@emacsbugs.donarmstrong.com>; Thu, 03 Dec 2009 14:38:20 -0800 (PST) Original-Received: by 10.114.215.6 with SMTP id n6mr2913119wag.158.1259879900628; Thu, 03 Dec 2009 14:38:20 -0800 (PST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 03 Dec 2009 17:47:31 -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:33185 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