GNU bug report logs - #5117
23.1.50; Weird display when wrap-prefix contains tabs

Previous Next

Package: emacs;

Reported by: Matthew Dempsky <matthew <at> dempsky.org>

Date: Thu, 3 Dec 2009 22:15:03 UTC

Severity: normal

Tags: notabug

Done: Andrew Hyatt <ahyatt <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #15 received at 5117 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Matthew Dempsky <matthew <at> dempsky.org>
Cc: 5117 <at> debbugs.gnu.org
Subject: Re: 23.1.50; Weird display when wrap-prefix contains tabs
Date: Sat, 05 Dec 2009 16:14:52 -0500
> 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.



This bug report was last modified 8 years and 313 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.