GNU bug report logs - #14575
24.3.50.1; Overlays with a window property affect other windows

Previous Next

Package: emacs;

Reported by: E Sabof <esabof <at> gmail.com>

Date: Sat, 8 Jun 2013 14:00:02 UTC

Severity: normal

Found in version 24.3.50.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14575 in the body.
You can then email your comments to 14575 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#14575; Package emacs. (Sat, 08 Jun 2013 14:00:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to E Sabof <esabof <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 08 Jun 2013 14:00:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: E Sabof <esabof <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50.1; Overlays with a window property affect other windows
Date: Sat, 8 Jun 2013 14:58:58 +0100
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 08 Jun 2013 18:35:01 GMT) Full text and rfc822 format available.

Notification sent to E Sabof <esabof <at> gmail.com>:
bug acknowledged by developer. (Sat, 08 Jun 2013 18:35:02 GMT) Full text and rfc822 format available.

Message #10 received at 14575-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: E Sabof <esabof <at> gmail.com>
Cc: 14575-done <at> debbugs.gnu.org
Subject: Re: bug#14575: 24.3.50.1;
	Overlays with a window property affect other windows
Date: Sat, 08 Jun 2013 21:34:01 +0300
> Date: Sat, 8 Jun 2013 14:58:58 +0100
> From: E Sabof <esabof <at> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14575; Package emacs. (Sat, 08 Jun 2013 18:48:02 GMT) Full text and rfc822 format available.

Message #13 received at 14575-done <at> debbugs.gnu.org (full text, mbox):

From: E Sabof <esabof <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 14575-done <at> debbugs.gnu.org
Subject: Re: bug#14575: 24.3.50.1; Overlays with a window property affect
	other windows
Date: Sat, 8 Jun 2013 19:47:24 +0100
[Message part 1 (text/plain, inline)]
Cool, thanks. That was fast.


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

> > Date: Sat, 8 Jun 2013 14:58:58 +0100
> > From: E Sabof <esabof <at> 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.
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14575; Package emacs. (Sat, 08 Jun 2013 19:34:02 GMT) Full text and rfc822 format available.

Message #16 received at 14575 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: E Sabof <esabof <at> gmail.com>
Cc: 14575 <at> debbugs.gnu.org
Subject: Re: bug#14575: 24.3.50.1;
	Overlays with a window property affect other windows
Date: Sat, 08 Jun 2013 22:32:50 +0300
> Date: Sat, 8 Jun 2013 19:47:24 +0100
> From: E Sabof <esabof <at> gmail.com>
> Cc: 14575-done <at> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14575; Package emacs. (Sat, 08 Jun 2013 19:46:01 GMT) Full text and rfc822 format available.

Message #19 received at 14575 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: E Sabof <esabof <at> gmail.com>, 14575 <at> debbugs.gnu.org
Subject: Re: bug#14575: 24.3.50.1;
	Overlays with a window property affect other windows
Date: Sat, 08 Jun 2013 23:45:05 +0400
Eli Zaretskii <eliz <at> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14575; Package emacs. (Sat, 08 Jun 2013 20:01:02 GMT) Full text and rfc822 format available.

Message #22 received at 14575 <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: E Sabof <esabof <at> gmail.com>, 14575 <at> debbugs.gnu.org
Subject: Re: bug#14575: 24.3.50.1;
	Overlays with a window property affect other windows
Date: Sat, 08 Jun 2013 22:00:08 +0200
Eli Zaretskii <eliz <at> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14575; Package emacs. (Sat, 08 Jun 2013 20:15:02 GMT) Full text and rfc822 format available.

Message #25 received at 14575 <at> debbugs.gnu.org (full text, mbox):

From: E Sabof <esabof <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 14575 <at> debbugs.gnu.org
Subject: Re: bug#14575: 24.3.50.1; Overlays with a window property affect
	other windows
Date: Sat, 8 Jun 2013 21:14:01 +0100
[Message part 1 (text/plain, inline)]
>
> 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
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14575; Package emacs. (Sat, 08 Jun 2013 20:18:01 GMT) Full text and rfc822 format available.

Message #28 received at 14575 <at> debbugs.gnu.org (full text, mbox):

From: E Sabof <esabof <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 14575 <at> debbugs.gnu.org
Subject: Re: bug#14575: 24.3.50.1; Overlays with a window property affect
	other windows
Date: Sat, 8 Jun 2013 21:16:55 +0100
[Message part 1 (text/plain, inline)]
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 <at> 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
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14575; Package emacs. (Sat, 08 Jun 2013 20:24:02 GMT) Full text and rfc822 format available.

Message #31 received at 14575 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: E Sabof <esabof <at> gmail.com>
Cc: 14575 <at> debbugs.gnu.org
Subject: Re: bug#14575: 24.3.50.1;
	Overlays with a window property affect other windows
Date: Sat, 08 Jun 2013 23:22:54 +0300
> Date: Sat, 8 Jun 2013 21:16:55 +0100
> From: E Sabof <esabof <at> gmail.com>
> Cc: 14575 <at> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14575; Package emacs. (Sat, 08 Jun 2013 21:02:02 GMT) Full text and rfc822 format available.

Message #34 received at 14575 <at> debbugs.gnu.org (full text, mbox):

From: E Sabof <esabof <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 14575 <at> debbugs.gnu.org
Subject: Re: bug#14575: 24.3.50.1; Overlays with a window property affect
	other windows
Date: Sat, 8 Jun 2013 21:54:01 +0100
[Message part 1 (text/plain, inline)]
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.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14575; Package emacs. (Sat, 08 Jun 2013 22:04:01 GMT) Full text and rfc822 format available.

Message #37 received at 14575 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: E Sabof <esabof <at> gmail.com>, 14575 <at> debbugs.gnu.org
Subject: Re: bug#14575: 24.3.50.1;
 Overlays with a window property affect other windows
Date: Sat, 08 Jun 2013 18:03:18 -0400
> 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14575; Package emacs. (Sat, 08 Jun 2013 23:40:02 GMT) Full text and rfc822 format available.

Message #40 received at 14575 <at> debbugs.gnu.org (full text, mbox):

From: Leo Liu <sdl.web <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Eli Zaretskii <eliz <at> gnu.org>, E Sabof <esabof <at> gmail.com>,
 14575 <at> debbugs.gnu.org
Subject: Re: bug#14575: 24.3.50.1;
 Overlays with a window property affect other windows
Date: Sun, 09 Jun 2013 07:39:24 +0800
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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14575; Package emacs. (Sun, 09 Jun 2013 10:32:01 GMT) Full text and rfc822 format available.

Message #43 received at 14575-done <at> debbugs.gnu.org (full text, mbox):

From: E Sabof <esabof <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 14575-done <at> debbugs.gnu.org
Subject: Re: bug#14575: 24.3.50.1; Overlays with a window property affect
 other windows
Date: Sun, 9 Jun 2013 11:31:03 +0100
[Message part 1 (text/plain, inline)]
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 <at> gnu.org> wrote:

> > Date: Sat, 8 Jun 2013 14:58:58 +0100
> > From: E Sabof <esabof <at> 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.
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14575; Package emacs. (Sun, 09 Jun 2013 16:40:02 GMT) Full text and rfc822 format available.

Message #46 received at 14575 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: E Sabof <esabof <at> gmail.com>
Cc: 14575 <at> debbugs.gnu.org
Subject: Re: bug#14575: 24.3.50.1;
 Overlays with a window property affect other windows
Date: Sun, 09 Jun 2013 19:39:23 +0300
> Date: Sun, 9 Jun 2013 11:31:03 +0100
> From: E Sabof <esabof <at> gmail.com>
> Cc: 14575-done <at> 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.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 08 Jul 2013 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 303 days ago.

Previous Next


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