all messages for Emacs-related lists mirrored at yhetil.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.