unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* overlays with display and window property
@ 2005-08-28  9:15 martin rudalics
  0 siblings, 0 replies; only message in thread
From: martin rudalics @ 2005-08-28  9:15 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-08-28  9:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-28  9:15 overlays with display and window property martin rudalics

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