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.
This works well with most overlay properties. 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)))
however, displays "bar" in both windows. According to the manual "bar"
should replace "foo" in the initially selected window only.
_______________________________________________
Emacs-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-devel