unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#14547: 24.3.1; line-break with pixel specification and word-wrap
@ 2013-06-03 13:21 E Sabof
  2013-06-03 16:07 ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: E Sabof @ 2013-06-03 13:21 UTC (permalink / raw)
  To: 14547

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

If one executes the following in a graphical frame, the line will break:

(insert (propertize
           "\n"
           'display `(space :align-to (- right))
           'face '(:underline t))
          "\n")

(toggle-word-wrap 1)

If one makes the line one pixel shorter, it will work fine.

(insert (propertize
           "\n"
           'display `(space :align-to (- right (1)))
           'face '(:underline t))
          "\n")

(toggle-word-wrap 1)

Evgeni

[-- Attachment #2: Type: text/html, Size: 804 bytes --]

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

* bug#14547: 24.3.1; line-break with pixel specification and word-wrap
  2013-06-03 13:21 bug#14547: 24.3.1; line-break with pixel specification and word-wrap E Sabof
@ 2013-06-03 16:07 ` Eli Zaretskii
  2013-06-03 16:27   ` Stephen Berman
       [not found]   ` <CAEp6DyZSOfrjVpCn9O81E9vzPRuOWfzPjkFM+h9iTL1rNg0SXQ@mail.gmail.com>
  0 siblings, 2 replies; 10+ messages in thread
From: Eli Zaretskii @ 2013-06-03 16:07 UTC (permalink / raw)
  To: E Sabof; +Cc: 14547

> Date: Mon, 3 Jun 2013 14:21:00 +0100
> From: E Sabof <esabof@gmail.com>
> 
> If one executes the following in a graphical frame, the line will break:
> 
> (insert (propertize
>            "\n"
>            'display `(space :align-to (- right))
>            'face '(:underline t))
>           "\n")
> 
> (toggle-word-wrap 1)
> 
> If one makes the line one pixel shorter, it will work fine.
> 
> (insert (propertize
>            "\n"
>            'display `(space :align-to (- right (1)))
>            'face '(:underline t))
>           "\n")
> 
> (toggle-word-wrap 1)

Isn't that the same issue as discussed in this old bug:

  http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9530

IOW, you cannot align-to the right margin, because this leaves no
place to display anything.





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

* bug#14547: 24.3.1; line-break with pixel specification and word-wrap
  2013-06-03 16:07 ` Eli Zaretskii
@ 2013-06-03 16:27   ` Stephen Berman
  2022-01-30 21:43     ` Lars Ingebrigtsen
       [not found]   ` <CAEp6DyZSOfrjVpCn9O81E9vzPRuOWfzPjkFM+h9iTL1rNg0SXQ@mail.gmail.com>
  1 sibling, 1 reply; 10+ messages in thread
From: Stephen Berman @ 2013-06-03 16:27 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 14547, E Sabof

On Mon, 03 Jun 2013 19:07:06 +0300 Eli Zaretskii <eliz@gnu.org> wrote:

>> Date: Mon, 3 Jun 2013 14:21:00 +0100
>> From: E Sabof <esabof@gmail.com>
>> 
>> If one executes the following in a graphical frame, the line will break:
>> 
>> (insert (propertize
>>            "\n"
>>            'display `(space :align-to (- right))
>>            'face '(:underline t))
>>           "\n")
>> 
>> (toggle-word-wrap 1)
>> 
>> If one makes the line one pixel shorter, it will work fine.
>> 
>> (insert (propertize
>>            "\n"
>>            'display `(space :align-to (- right (1)))
>>            'face '(:underline t))
>>           "\n")
>> 
>> (toggle-word-wrap 1)
>
> Isn't that the same issue as discussed in this old bug:
>
>   http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9530
>
> IOW, you cannot align-to the right margin, because this leaves no
> place to display anything.

I think it's a manifestation of bug#2749, because I see no line break
with this recipe in Emacs built with my patch enabling
overflow-newline-into-fringe in visual-line-mode.

Steve Berman





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

* bug#14547: Fwd: bug#14547: 24.3.1; line-break with pixel specification and word-wrap
       [not found]   ` <CAEp6DyZSOfrjVpCn9O81E9vzPRuOWfzPjkFM+h9iTL1rNg0SXQ@mail.gmail.com>
@ 2013-06-03 16:58     ` E Sabof
  2013-06-03 17:10     ` Eli Zaretskii
  1 sibling, 0 replies; 10+ messages in thread
From: E Sabof @ 2013-06-03 16:58 UTC (permalink / raw)
  To: 14547

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

---------- Forwarded message ----------
From: E Sabof <esabof@gmail.com>
Date: Mon, Jun 3, 2013 at 5:57 PM
Subject: Re: bug#14547: 24.3.1; line-break with pixel specification and
word-wrap
To: Eli Zaretskii <eliz@gnu.org>


I don't think there is any ambiguity in this case - it DTRT unless both
word-wrap and visual-line are on.

Evgeni


On Mon, Jun 3, 2013 at 5:07 PM, Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Mon, 3 Jun 2013 14:21:00 +0100
> > From: E Sabof <esabof@gmail.com>
> >
> > If one executes the following in a graphical frame, the line will break:
> >
> > (insert (propertize
> >            "\n"
> >            'display `(space :align-to (- right))
> >            'face '(:underline t))
> >           "\n")
> >
> > (toggle-word-wrap 1)
> >
> > If one makes the line one pixel shorter, it will work fine.
> >
> > (insert (propertize
> >            "\n"
> >            'display `(space :align-to (- right (1)))
> >            'face '(:underline t))
> >           "\n")
> >
> > (toggle-word-wrap 1)
>
> Isn't that the same issue as discussed in this old bug:
>
>   http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9530
>
> IOW, you cannot align-to the right margin, because this leaves no
> place to display anything.
>

[-- Attachment #2: Type: text/html, Size: 2203 bytes --]

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

* bug#14547: 24.3.1; line-break with pixel specification and word-wrap
       [not found]   ` <CAEp6DyZSOfrjVpCn9O81E9vzPRuOWfzPjkFM+h9iTL1rNg0SXQ@mail.gmail.com>
  2013-06-03 16:58     ` bug#14547: Fwd: " E Sabof
@ 2013-06-03 17:10     ` Eli Zaretskii
  2013-06-03 17:19       ` E Sabof
  1 sibling, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2013-06-03 17:10 UTC (permalink / raw)
  To: E Sabof; +Cc: 14547

[Why personal email?]

> Date: Mon, 3 Jun 2013 17:57:23 +0100
> From: E Sabof <esabof@gmail.com>
> 
> I don't think there is any ambiguity in this case - it DTRT unless both
> word-wrap and visual-line are on.

Sorry, I don't understand.  What is TRT, and what do you expect it to
do when visual-line-mode and word-wrap are on?





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

* bug#14547: 24.3.1; line-break with pixel specification and word-wrap
  2013-06-03 17:10     ` Eli Zaretskii
@ 2013-06-03 17:19       ` E Sabof
  2013-06-03 17:51         ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: E Sabof @ 2013-06-03 17:19 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 14547

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

On Mon, Jun 3, 2013 at 6:10 PM, Eli Zaretskii <eliz@gnu.org> wrote:

> [Why personal email?]
>

Pressed the wrong button. I've forwarded the message to the bug tracker.


> > Date: Mon, 3 Jun 2013 17:57:23 +0100
> > From: E Sabof <esabof@gmail.com>
> >
> > I don't think there is any ambiguity in this case - it DTRT unless both
> > word-wrap and visual-line are on.
>
> Sorry, I don't understand.  What is TRT, and what do you expect it to
> do when visual-line-mode and word-wrap are on?
>

The line shouldn't break. If the cursor is placed immediately after the
horizontal line, it should be displayed on the fringe.

Evgeni

[-- Attachment #2: Type: text/html, Size: 1241 bytes --]

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

* bug#14547: 24.3.1; line-break with pixel specification and word-wrap
  2013-06-03 17:19       ` E Sabof
@ 2013-06-03 17:51         ` Eli Zaretskii
  0 siblings, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2013-06-03 17:51 UTC (permalink / raw)
  To: E Sabof; +Cc: 14547

> Date: Mon, 3 Jun 2013 18:19:50 +0100
> From: E Sabof <esabof@gmail.com>
> Cc: 14547@debbugs.gnu.org
> 
> The line shouldn't break. If the cursor is placed immediately after the
> horizontal line, it should be displayed on the fringe.

That's a missing feature at best: cursor on the fringe is not
supported when word-wrap is in effect.  See bug #2479.






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

* bug#14547: 24.3.1; line-break with pixel specification and word-wrap
  2013-06-03 16:27   ` Stephen Berman
@ 2022-01-30 21:43     ` Lars Ingebrigtsen
  2022-01-31  9:06       ` Stephen Berman
  0 siblings, 1 reply; 10+ messages in thread
From: Lars Ingebrigtsen @ 2022-01-30 21:43 UTC (permalink / raw)
  To: Stephen Berman; +Cc: 14547, E Sabof

Stephen Berman <stephen.berman@gmx.net> writes:

>>> If one executes the following in a graphical frame, the line will break:
>>> 
>>> (insert (propertize
>>>            "\n"
>>>            'display `(space :align-to (- right))
>>>            'face '(:underline t))
>>>           "\n")
>>> 
>>> (toggle-word-wrap 1)

[...]

> I think it's a manifestation of bug#2749, because I see no line break
> with this recipe in Emacs built with my patch enabling
> overflow-newline-into-fringe in visual-line-mode.

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

bug#2749 was fixed a few weeks later, so does that mean that the problem
discussed here also was fixed?  (I must admit I didn't understand what
the reproducing code here is supposed to demonstrate.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#14547: 24.3.1; line-break with pixel specification and word-wrap
  2022-01-30 21:43     ` Lars Ingebrigtsen
@ 2022-01-31  9:06       ` Stephen Berman
  2022-01-31 12:47         ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Stephen Berman @ 2022-01-31  9:06 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 14547, E Sabof

On Sun, 30 Jan 2022 22:43:14 +0100 Lars Ingebrigtsen <larsi@gnus.org> wrote:

> Stephen Berman <stephen.berman@gmx.net> writes:
>
>>>> If one executes the following in a graphical frame, the line will break:
>>>>
>>>> (insert (propertize
>>>>            "\n"
>>>>            'display `(space :align-to (- right))
>>>>            'face '(:underline t))
>>>>           "\n")
>>>>
>>>> (toggle-word-wrap 1)
>
> [...]
>
>> I think it's a manifestation of bug#2749, because I see no line break
>> with this recipe in Emacs built with my patch enabling
>> overflow-newline-into-fringe in visual-line-mode.
>
> (I'm going through old bug reports that unfortunately weren't resolved
> at the time.)
>
> bug#2749 was fixed a few weeks later, so does that mean that the problem
> discussed here also was fixed?

I think so.

>                                 (I must admit I didn't understand what
> the reproducing code here is supposed to demonstrate.)

Based on the descriptions and discussion in bug#2749, I think the above
code used to display an empty line between the parts of the line
separated by the display property.  It doesn't now, presumably since the
fix for bug#2749, which allows the newline to be in the fringe.

Steve Berman





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

* bug#14547: 24.3.1; line-break with pixel specification and word-wrap
  2022-01-31  9:06       ` Stephen Berman
@ 2022-01-31 12:47         ` Eli Zaretskii
  0 siblings, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2022-01-31 12:47 UTC (permalink / raw)
  To: Stephen Berman; +Cc: larsi, 14547-done, esabof

> From: Stephen Berman <stephen.berman@gmx.net>
> Cc: Eli Zaretskii <eliz@gnu.org>,  14547@debbugs.gnu.org,  E Sabof
>  <esabof@gmail.com>
> Date: Mon, 31 Jan 2022 10:06:14 +0100
> 
> On Sun, 30 Jan 2022 22:43:14 +0100 Lars Ingebrigtsen <larsi@gnus.org> wrote:
> 
> > Stephen Berman <stephen.berman@gmx.net> writes:
> >
> >>>> If one executes the following in a graphical frame, the line will break:
> >>>>
> >>>> (insert (propertize
> >>>>            "\n"
> >>>>            'display `(space :align-to (- right))
> >>>>            'face '(:underline t))
> >>>>           "\n")
> >>>>
> >>>> (toggle-word-wrap 1)
> >
> > [...]
> >
> >> I think it's a manifestation of bug#2749, because I see no line break
> >> with this recipe in Emacs built with my patch enabling
> >> overflow-newline-into-fringe in visual-line-mode.
> >
> > (I'm going through old bug reports that unfortunately weren't resolved
> > at the time.)
> >
> > bug#2749 was fixed a few weeks later, so does that mean that the problem
> > discussed here also was fixed?
> 
> I think so.
> 
> >                                 (I must admit I didn't understand what
> > the reproducing code here is supposed to demonstrate.)
> 
> Based on the descriptions and discussion in bug#2749, I think the above
> code used to display an empty line between the parts of the line
> separated by the display property.  It doesn't now, presumably since the
> fix for bug#2749, which allows the newline to be in the fringe.

Yes, and I'm therefore closing this bug.





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

end of thread, other threads:[~2022-01-31 12:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-03 13:21 bug#14547: 24.3.1; line-break with pixel specification and word-wrap E Sabof
2013-06-03 16:07 ` Eli Zaretskii
2013-06-03 16:27   ` Stephen Berman
2022-01-30 21:43     ` Lars Ingebrigtsen
2022-01-31  9:06       ` Stephen Berman
2022-01-31 12:47         ` Eli Zaretskii
     [not found]   ` <CAEp6DyZSOfrjVpCn9O81E9vzPRuOWfzPjkFM+h9iTL1rNg0SXQ@mail.gmail.com>
2013-06-03 16:58     ` bug#14547: Fwd: " E Sabof
2013-06-03 17:10     ` Eli Zaretskii
2013-06-03 17:19       ` E Sabof
2013-06-03 17:51         ` Eli Zaretskii

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