unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#999: 23.0.60; left/right-margin property is not honored on word-wrapped lines
@ 2008-09-19  2:48 ` Lennart Borgman (gmail)
  2008-09-20  3:20   ` bug#999: marked as done (23.0.60; left/right-margin property is not honored on word-wrapped lines) Emacs bug Tracking System
  0 siblings, 1 reply; 4+ messages in thread
From: Lennart Borgman (gmail) @ 2008-09-19  2:48 UTC (permalink / raw)
  To: emacs-pretest-bug

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.


In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
 of 2008-09-18
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags
-Ic:/g/include -fno-crossjumping'






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#999: 23.0.60; left/right-margin property is not honored on word-wrapped lines
@ 2008-09-19 15:54 Chong Yidong
  2008-09-19 23:33 ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 4+ messages in thread
From: Chong Yidong @ 2008-09-19 15:54 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: 999

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






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#999: 23.0.60; left/right-margin property is not honored on word-wrapped lines
  2008-09-19 15:54 bug#999: 23.0.60; left/right-margin property is not honored on word-wrapped lines Chong Yidong
@ 2008-09-19 23:33 ` Lennart Borgman (gmail)
  0 siblings, 0 replies; 4+ messages in thread
From: Lennart Borgman (gmail) @ 2008-09-19 23:33 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 999

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.






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#999: marked as done (23.0.60; left/right-margin property is  not honored on word-wrapped lines)
  2008-09-19  2:48 ` bug#999: 23.0.60; left/right-margin property is not honored on word-wrapped lines Lennart Borgman (gmail)
@ 2008-09-20  3:20   ` Emacs bug Tracking System
  0 siblings, 0 replies; 4+ messages in thread
From: Emacs bug Tracking System @ 2008-09-20  3:20 UTC (permalink / raw)
  To: Chong Yidong

[-- Attachment #1: Type: text/plain, Size: 903 bytes --]


Your message dated Fri, 19 Sep 2008 23:13:54 -0400
with message-id <871vzfjyq5.fsf@cyd.mit.edu>
and subject line Re: 23.0.60; left/right-margin property is not honored on word-wrapped lines
has caused the Emacs bug report #999,
regarding 23.0.60; left/right-margin property is not honored on word-wrapped lines
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact don@donarmstrong.com
immediately.)


-- 
999: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=999
Emacs Bug Tracking System
Contact don@donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 2895 bytes --]

From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: emacs-pretest-bug@gnu.org
Subject: 23.0.60; left/right-margin property is not honored on word-wrapped lines
Date: Fri, 19 Sep 2008 04:48:55 +0200
Message-ID: <48D31317.8080603@gmail.com>

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.


In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
 of 2008-09-18
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags
-Ic:/g/include -fno-crossjumping'



[-- Attachment #3: Type: message/rfc822, Size: 1730 bytes --]

From: Chong Yidong <cyd@stupidchicken.com>
To: "Lennart Borgman \(gmail\)" <lennart.borgman@gmail.com>
Cc: 999-done@emacsbugs.donarmstrong.com
Subject: Re: 23.0.60; left/right-margin property is not honored on word-wrapped lines
Date: Fri, 19 Sep 2008 23:13:54 -0400
Message-ID: <871vzfjyq5.fsf@cyd.mit.edu>

"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:

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

The variable wrap-prefix can be used for this.

It would not be consistent to make the left/right margin affect
continued lines.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-09-20  3:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <871vzfjyq5.fsf@cyd.mit.edu>
2008-09-19  2:48 ` bug#999: 23.0.60; left/right-margin property is not honored on word-wrapped lines Lennart Borgman (gmail)
2008-09-20  3:20   ` bug#999: marked as done (23.0.60; left/right-margin property is not honored on word-wrapped lines) Emacs bug Tracking System
2008-09-19 15:54 bug#999: 23.0.60; left/right-margin property is not honored on word-wrapped lines Chong Yidong
2008-09-19 23:33 ` Lennart Borgman (gmail)

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