emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

overlay window property not respected


From: martin rudalics
Subject: overlay window property not respected
Date: Thu, 15 Sep 2005 07:40:53 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

The Emacs Lisp manual specifies the window property of an overlay as:

`window'
     If the `window' property is non-`nil', then the overlay applies
     only on that window.

Executing

(defun foobar ()
  (interactive)
  (insert "foo")
  (let ((overlay (make-overlay (- (point) 3) (point))))
    (overlay-put overlay 'window (selected-window))
    (overlay-put overlay 'display "bar")
    (split-window)))

has "bar" appear in _both_ windows.  According to the manual "bar"
should replace "foo" in the initially selected window only.

(I posted this on emacs-devel before but didn't get a response.)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]