From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Hyatt Newsgroups: gmane.emacs.bugs Subject: bug#5117: 23.1.50; Weird display when wrap-prefix contains tabs Date: Sat, 09 Jul 2016 09:11:04 -0400 Message-ID: References: <874on5zn8w.fsf@stupidchicken.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468069945 8827 80.91.229.3 (9 Jul 2016 13:12:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Jul 2016 13:12:25 +0000 (UTC) Cc: 5117@debbugs.gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 09 15:12:14 2016 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 1bLs3J-0000og-3L for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jul 2016 15:12:13 +0200 Original-Received: from localhost ([::1]:50911 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLs3I-0000wX-An for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jul 2016 09:12:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLs3B-0000ux-UZ for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 09:12:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLs38-0000XM-G7 for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 09:12:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLs38-0000XI-Cm for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 09:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bLs38-0000pv-3s for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 09:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrew Hyatt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Jul 2016 13:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5117 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5117-submit@debbugs.gnu.org id=B5117.14680698733141 (code B ref 5117); Sat, 09 Jul 2016 13:12:02 +0000 Original-Received: (at 5117) by debbugs.gnu.org; 9 Jul 2016 13:11:13 +0000 Original-Received: from localhost ([127.0.0.1]:43333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLs2L-0000ob-Ky for submit@debbugs.gnu.org; Sat, 09 Jul 2016 09:11:13 -0400 Original-Received: from mail-qk0-f171.google.com ([209.85.220.171]:36381) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLs2K-0000oP-90 for 5117@debbugs.gnu.org; Sat, 09 Jul 2016 09:11:12 -0400 Original-Received: by mail-qk0-f171.google.com with SMTP id 82so58084247qko.3 for <5117@debbugs.gnu.org>; Sat, 09 Jul 2016 06:11:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=J61vx4Ku+/ymXoZS/m48odcGEqFqk6FsTnrFn5ykVGA=; b=cZHIJqN2lqc47xRdIg3+slRxDyKCLNshr6iYwNGx2iJZFaktHUQO7oHKMzR+0L6lPi RMyVPAL64DkP5QnIkli9iu3X0kFICoI8dA/r/W4ZXgNKj1z4WDA2S8j3vRnC4vwa/42E PLrnajLRrpzSzWfNWe6DeVori61hOnEA5mM80rhVxx2PJZnAnYTbuKoMDkwyT25v8nyV 2M35OvGWpKacPE5L+gvbxpbJBJS3I4Xmz5ivTX/icPubQmOnngOlO5bZRsKNnlnG9j2w G+ZbTRbEHhYDA2fhom/dAWwzeXvsRBz9++ftIwrFRaW/wNqY85MrLMoTYDIyDMBbGvYb EY4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=J61vx4Ku+/ymXoZS/m48odcGEqFqk6FsTnrFn5ykVGA=; b=h63aFOmfX6S+HpHOwDKLgZMpWOXD1F4Cu9UqsNXchvMGt38Rzf7EIfkTni7dq0qED6 kJ2sYkEpETGEGJXJass6hlDMbNgPM/3iTvXct5oKMQHN7SlV+aXl4VSA1EbKOEJvV5I5 PwrYmx4ID4aeHUQ9sfSobAMSDOwmA4i3WH8YrvMvLFDXiah/ss9qu2ckehcd9a20Qs+B NycENmTUd4okZj/GN5BpvF1q2Va8NmPPjkKQLbQU3mjBnwoAkxqA393AjWiv3iVZwwrf syjXGLxO2OEbt3SgrXe6YrgOqzgYY/gqFpIpcEYvUnpjGzO8P+TOp5LZnv3xe+5aOqBB 2UEQ== X-Gm-Message-State: ALyK8tIiT8MNLlWK+3d4rQ5hf9AGFha+UQmGWw7sUfegYFjhe7jMcHX6GGw+nZN2gGi+gg== X-Received: by 10.55.201.70 with SMTP id q67mr13539010qki.124.1468069866659; Sat, 09 Jul 2016 06:11:06 -0700 (PDT) Original-Received: from Andrews-MacBook-Pro.local (cpe-74-73-128-199.nyc.res.rr.com. [74.73.128.199]) by smtp.gmail.com with ESMTPSA id l27sm1554738qtc.34.2016.07.09.06.11.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Jul 2016 06:11:05 -0700 (PDT) In-Reply-To: <874on5zn8w.fsf@stupidchicken.com> (Chong Yidong's message of "Fri, 01 Jan 2010 13:35:59 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (darwin) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:120683 Archived-At: Chong Yidong writes: >> > 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. Since it seems that this is (according to Chong) not a bug, but the way things should work, I' m going to close this bug. Feel free to disagree; we can always re-open it.