all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: Matthew Dempsky <matthew@dempsky.org>
Cc: 5117@emacsbugs.donarmstrong.com
Subject: bug#5117: 23.1.50; Weird display when wrap-prefix contains tabs
Date: Sat, 05 Dec 2009 16:14:52 -0500	[thread overview]
Message-ID: <87pr6tcecz.fsf@stupidchicken.com> (raw)

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





             reply	other threads:[~2009-12-05 21:14 UTC|newest]

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

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

  git send-email \
    --in-reply-to=87pr6tcecz.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=5117@emacsbugs.donarmstrong.com \
    --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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.