unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: Matthew Dempsky <matthew@dempsky.org>
Cc: 5117@debbugs.gnu.org
Subject: bug#5117: 23.1.50; Weird display when wrap-prefix contains tabs
Date: Fri, 01 Jan 2010 13:35:59 -0500	[thread overview]
Message-ID: <874on5zn8w.fsf@stupidchicken.com> (raw)

> > 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.






             reply	other threads:[~2010-01-01 18:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-01 18:35 Chong Yidong [this message]
2016-07-09 13:11 ` bug#5117: 23.1.50; Weird display when wrap-prefix contains tabs Andrew Hyatt
  -- strict thread matches above, loose matches on Subject: below --
2009-12-05 21:14 Chong Yidong
2009-12-06  0:36 ` Matthew Dempsky
2009-12-03 22:38 Matthew Dempsky
2009-12-03 22:06 Matthew Dempsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874on5zn8w.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=5117@debbugs.gnu.org \
    --cc=matthew@dempsky.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).