GNU bug report logs - #999
23.0.60; left/right-margin property is not honored on word-wrapped lines

Previous Next

Package: emacs;

Reported by: "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>

Date: Fri, 19 Sep 2008 02:55:06 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


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

From: "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 999 <at> debbugs.gnu.org
Subject: Re: 23.0.60; left/right-margin property is not honored on word-wrapped
 lines
Date: Sat, 20 Sep 2008 01:33:08 +0200
Chong Yidong wrote:
>> When a line is wrapped the `left-margin' text property is honored only
>> on the first visual line. This seems ok to me unless word-wrap is
>> true.  In that case I think that `left-margin' and `right-margin'
>> should be honored on all visual lines.
> 
> A word-wrapped line is essentially the same as a continued line; it's
> just that the line is continued at a word boundary rather than a window
> edge.  In terms of the buffer contents, it's all one long line, so
> there's no reason for margin properties to have any effect on the
> subsequent *screen* lines in the wrapped line.

But the reason for wrapping at words is to enhance readability for the
user. For precisely this reason I think that the left margin property
should be used indent the wrapped line too.

After all that is how fill-paragraph works. I think we should think the
same about wrapped lines.




This bug report was last modified 16 years and 249 days ago.

Previous Next


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