unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#14575: 24.3.50.1; Overlays with a window property affect other windows
@ 2013-06-08 13:58 E Sabof
  2013-06-08 18:34 ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: E Sabof @ 2013-06-08 13:58 UTC (permalink / raw)
  To: 14575

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

To reproduce

Start emacs -Q
M-:

(progn
  (insert "some text")
  (let ((ov (make-overlay (- (point) 9) (point))))
    (overlay-put ov 'window (selected-window))
    (overlay-put ov 'display "different text"))
  (split-window-vertically))

RET

Evgeni

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

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

* bug#14575: 24.3.50.1; Overlays with a window property affect other windows
  2013-06-08 13:58 bug#14575: 24.3.50.1; Overlays with a window property affect other windows E Sabof
@ 2013-06-08 18:34 ` Eli Zaretskii
  2013-06-08 18:47   ` E Sabof
  2013-06-09 10:31   ` E Sabof
  0 siblings, 2 replies; 14+ messages in thread
From: Eli Zaretskii @ 2013-06-08 18:34 UTC (permalink / raw)
  To: E Sabof; +Cc: 14575-done

> Date: Sat, 8 Jun 2013 14:58:58 +0100
> From: E Sabof <esabof@gmail.com>
> 
> Start emacs -Q
> M-:
> 
> (progn
>   (insert "some text")
>   (let ((ov (make-overlay (- (point) 9) (point))))
>     (overlay-put ov 'window (selected-window))
>     (overlay-put ov 'display "different text"))
>   (split-window-vertically))
> 
> RET

Fixed in trunk revision 112896.

Thanks.





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

* bug#14575: 24.3.50.1; Overlays with a window property affect other windows
  2013-06-08 18:34 ` Eli Zaretskii
@ 2013-06-08 18:47   ` E Sabof
  2013-06-08 19:32     ` Eli Zaretskii
  2013-06-09 10:31   ` E Sabof
  1 sibling, 1 reply; 14+ messages in thread
From: E Sabof @ 2013-06-08 18:47 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 14575-done

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

Cool, thanks. That was fast.


On Sat, Jun 8, 2013 at 7:34 PM, Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Sat, 8 Jun 2013 14:58:58 +0100
> > From: E Sabof <esabof@gmail.com>
> >
> > Start emacs -Q
> > M-:
> >
> > (progn
> >   (insert "some text")
> >   (let ((ov (make-overlay (- (point) 9) (point))))
> >     (overlay-put ov 'window (selected-window))
> >     (overlay-put ov 'display "different text"))
> >   (split-window-vertically))
> >
> > RET
>
> Fixed in trunk revision 112896.
>
> Thanks.
>

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

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

* bug#14575: 24.3.50.1; Overlays with a window property affect other windows
  2013-06-08 18:47   ` E Sabof
@ 2013-06-08 19:32     ` Eli Zaretskii
  2013-06-08 19:45       ` Dmitry Gutov
                         ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Eli Zaretskii @ 2013-06-08 19:32 UTC (permalink / raw)
  To: E Sabof; +Cc: 14575

> Date: Sat, 8 Jun 2013 19:47:24 +0100
> From: E Sabof <esabof@gmail.com>
> Cc: 14575-done@debbugs.gnu.org
> 
> Cool, thanks. That was fast.

Well, it's Saturday...

Btw, this bug was introduced 2 years ago, during the development of
v24.1, and no one ever said anything until now.  I guess that speaks
volumes of how frequently people use window-specific overlays.





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

* bug#14575: 24.3.50.1; Overlays with a window property affect other windows
  2013-06-08 19:32     ` Eli Zaretskii
@ 2013-06-08 19:45       ` Dmitry Gutov
  2013-06-08 20:00       ` Michael Heerdegen
                         ` (2 subsequent siblings)
  3 siblings, 0 replies; 14+ messages in thread
From: Dmitry Gutov @ 2013-06-08 19:45 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: E Sabof, 14575

Eli Zaretskii <eliz@gnu.org> writes:
> Btw, this bug was introduced 2 years ago, during the development of
> v24.1, and no one ever said anything until now.  I guess that speaks
> volumes of how frequently people use window-specific overlays.

company-mode does use them, but with `before-string' and `invisible'
instead of `display'. Not exactly sure why.





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

* bug#14575: 24.3.50.1; Overlays with a window property affect other windows
  2013-06-08 19:32     ` Eli Zaretskii
  2013-06-08 19:45       ` Dmitry Gutov
@ 2013-06-08 20:00       ` Michael Heerdegen
  2013-06-08 20:14       ` E Sabof
  2013-06-08 22:03       ` Stefan Monnier
  3 siblings, 0 replies; 14+ messages in thread
From: Michael Heerdegen @ 2013-06-08 20:00 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: E Sabof, 14575

Eli Zaretskii <eliz@gnu.org> writes:

> Btw, this bug was introduced 2 years ago, during the development of
> v24.1, and no one ever said anything until now.  I guess that speaks
> volumes of how frequently people use window-specific overlays.

I use them all the time for different purposes - but only for
highlighting stuff like highlighting the current line of the selected
window, or give a visual orientation when scrolling a window.  It's
probably quite unusual to change the displayed text of a buffer on a
per-window basis.

Michael.





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

* bug#14575: 24.3.50.1; Overlays with a window property affect other windows
  2013-06-08 19:32     ` Eli Zaretskii
  2013-06-08 19:45       ` Dmitry Gutov
  2013-06-08 20:00       ` Michael Heerdegen
@ 2013-06-08 20:14       ` E Sabof
  2013-06-08 20:16         ` E Sabof
  2013-06-08 22:03       ` Stefan Monnier
  3 siblings, 1 reply; 14+ messages in thread
From: E Sabof @ 2013-06-08 20:14 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 14575

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

>
> Well, it's Saturday...
>
> Btw, this bug was introduced 2 years ago, during the development of
> v24.1, and no one ever said anything until now.  I guess that speaks
> volumes of how frequently people use window-specific overlays.
>

I think the more advanced features of the display engine are generally
under-used. Maybe because there aren't as many users from the front-end
side of things.

Btw, I'm trying to implement variable width right/centered paragraph
alignment. Now that I think about it, I might also do justified text (with
varied width of spaces).

https://github.com/sabof/magic-buffer

It's still in prototype stages, but the prognosis is good. And with
window-specific overlays, I can make if work even it the text is displayed
in multiple windows simultaneously

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

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

* bug#14575: 24.3.50.1; Overlays with a window property affect other windows
  2013-06-08 20:14       ` E Sabof
@ 2013-06-08 20:16         ` E Sabof
  2013-06-08 20:22           ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: E Sabof @ 2013-06-08 20:16 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 14575

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

Also, wanted to ask, is there a way to use bidi display to align English
text to the right?


On Sat, Jun 8, 2013 at 9:14 PM, E Sabof <esabof@gmail.com> wrote:

> Well, it's Saturday...
>>
>> Btw, this bug was introduced 2 years ago, during the development of
>> v24.1, and no one ever said anything until now.  I guess that speaks
>> volumes of how frequently people use window-specific overlays.
>>
>
> I think the more advanced features of the display engine are generally
> under-used. Maybe because there aren't as many users from the front-end
> side of things.
>
> Btw, I'm trying to implement variable width right/centered paragraph
> alignment. Now that I think about it, I might also do justified text (with
> varied width of spaces).
>
> https://github.com/sabof/magic-buffer
>
> It's still in prototype stages, but the prognosis is good. And with
> window-specific overlays, I can make if work even it the text is displayed
> in multiple windows simultaneously
>

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

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

* bug#14575: 24.3.50.1; Overlays with a window property affect other windows
  2013-06-08 20:16         ` E Sabof
@ 2013-06-08 20:22           ` Eli Zaretskii
  2013-06-08 20:54             ` E Sabof
  0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2013-06-08 20:22 UTC (permalink / raw)
  To: E Sabof; +Cc: 14575

> Date: Sat, 8 Jun 2013 21:16:55 +0100
> From: E Sabof <esabof@gmail.com>
> Cc: 14575@debbugs.gnu.org
> 
> Also, wanted to ask, is there a way to use bidi display to align English
> text to the right?

You can set bidi-paragraph-direction to 'right-to-left, but I suspect
that's not what you want.  Editing and moving inside such text will
behave in ways people don't expect to see in strict left-to-right
text.

In general, the bidi display is not about alignment, it's about
display of bidirectional text.  That is what it was designed for, so
any other uses will not necessarily produce desired results.  That it
also flushes right-to-left paragraphs to the right margin is because
people who use right-to-left scripts expect that.





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

* bug#14575: 24.3.50.1; Overlays with a window property affect other windows
  2013-06-08 20:22           ` Eli Zaretskii
@ 2013-06-08 20:54             ` E Sabof
  0 siblings, 0 replies; 14+ messages in thread
From: E Sabof @ 2013-06-08 20:54 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 14575

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

You can set bidi-paragraph-direction to 'right-to-left, but I suspect

> that's not what you want.

 Editing and moving inside such text will
> behave in ways people don't expect to see in strict left-to-right
> text.
>
> In general, the bidi display is not about alignment, it's about
> display of bidirectional text.  That is what it was designed for, so
> any other uses will not necessarily produce desired results.  That it
> also flushes right-to-left paragraphs to the right margin is because
> people who use right-to-left scripts expect that.
>

Indeed, the "directionally neutral" characters are displayed according to
the paragraph's main alignment. Anyway, once the centering works, adding
right alignment shouldn't be hard.

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

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

* bug#14575: 24.3.50.1; Overlays with a window property affect other windows
  2013-06-08 19:32     ` Eli Zaretskii
                         ` (2 preceding siblings ...)
  2013-06-08 20:14       ` E Sabof
@ 2013-06-08 22:03       ` Stefan Monnier
  2013-06-08 23:39         ` Leo Liu
  3 siblings, 1 reply; 14+ messages in thread
From: Stefan Monnier @ 2013-06-08 22:03 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: E Sabof, 14575

> v24.1, and no one ever said anything until now.  I guess that speaks
> volumes of how frequently people use window-specific overlays.

It's used in doc-view-mode, but indeed, it's rarely used.


        Stefan





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

* bug#14575: 24.3.50.1; Overlays with a window property affect other windows
  2013-06-08 22:03       ` Stefan Monnier
@ 2013-06-08 23:39         ` Leo Liu
  0 siblings, 0 replies; 14+ messages in thread
From: Leo Liu @ 2013-06-08 23:39 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: E Sabof, 14575

On 2013-06-09 06:03 +0800, Stefan Monnier wrote:
> It's used in doc-view-mode, but indeed, it's rarely used.

I just used it a few days ago for something called
temp-buffer-browse-mode in my init that enables "SPC", "DEL" and "RET"
keys immediately after a temp buffer popup to scroll up/down and close
the temp buffer. (if this is generally useful I can submit it to the bug
tracker.)

Leo





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

* bug#14575: 24.3.50.1; Overlays with a window property affect other windows
  2013-06-08 18:34 ` Eli Zaretskii
  2013-06-08 18:47   ` E Sabof
@ 2013-06-09 10:31   ` E Sabof
  2013-06-09 16:39     ` Eli Zaretskii
  1 sibling, 1 reply; 14+ messages in thread
From: E Sabof @ 2013-06-09 10:31 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 14575-done

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

I've compiled the latest trunk, the display property seems to be fixed, but
line-prefix, and wrap-prefix are still affected.


On Sat, Jun 8, 2013 at 7:34 PM, Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Sat, 8 Jun 2013 14:58:58 +0100
> > From: E Sabof <esabof@gmail.com>
> >
> > Start emacs -Q
> > M-:
> >
> > (progn
> >   (insert "some text")
> >   (let ((ov (make-overlay (- (point) 9) (point))))
> >     (overlay-put ov 'window (selected-window))
> >     (overlay-put ov 'display "different text"))
> >   (split-window-vertically))
> >
> > RET
>
> Fixed in trunk revision 112896.
>
> Thanks.
>

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

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

* bug#14575: 24.3.50.1; Overlays with a window property affect other windows
  2013-06-09 10:31   ` E Sabof
@ 2013-06-09 16:39     ` Eli Zaretskii
  0 siblings, 0 replies; 14+ messages in thread
From: Eli Zaretskii @ 2013-06-09 16:39 UTC (permalink / raw)
  To: E Sabof; +Cc: 14575

> Date: Sun, 9 Jun 2013 11:31:03 +0100
> From: E Sabof <esabof@gmail.com>
> Cc: 14575-done@debbugs.gnu.org
> 
> I've compiled the latest trunk, the display property seems to be fixed, but
> line-prefix, and wrap-prefix are still affected.

Those prefix features were never coded to support window-specific
overlays, so this never worked.

Now fixed in trunk revision 112901.

Thanks.





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

end of thread, other threads:[~2013-06-09 16:39 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-08 13:58 bug#14575: 24.3.50.1; Overlays with a window property affect other windows E Sabof
2013-06-08 18:34 ` Eli Zaretskii
2013-06-08 18:47   ` E Sabof
2013-06-08 19:32     ` Eli Zaretskii
2013-06-08 19:45       ` Dmitry Gutov
2013-06-08 20:00       ` Michael Heerdegen
2013-06-08 20:14       ` E Sabof
2013-06-08 20:16         ` E Sabof
2013-06-08 20:22           ` Eli Zaretskii
2013-06-08 20:54             ` E Sabof
2013-06-08 22:03       ` Stefan Monnier
2013-06-08 23:39         ` Leo Liu
2013-06-09 10:31   ` E Sabof
2013-06-09 16:39     ` 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).