emacs-devel
[Top][All Lists]
Advanced

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

Re: Overlay before-string property


From: David Kastrup
Subject: Re: Overlay before-string property
Date: Sun, 01 Oct 2006 08:12:49 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Drew Adams" <address@hidden> writes:

> I use this, from Miles Bader's minibuf-depth.el (or whatever it's called
> now):
>
> ;; This function goes on minibuffer-setup-hook
> (defun minibuf-depth-setup-minibuffer ()
>   "Set up a minibuffer for `minibuffer-indicate-depth-mode'.
> The prompt should already have been inserted."
>   (when (> (minibuffer-depth) 1)
>     (setq minibuf-depth-overlay
>           (make-overlay (point-min) (1+ (point-min))))
>     (overlay-put minibuf-depth-overlay 'before-string
>                    (format "%d) " (minibuffer-depth)))
>     (overlay-put minibuf-depth-overlay 'evaporate t)))
>
> Does this have something to do with text-property stickiness? I have
> not knowingly changed any sticky properties, and the manual seems to
> say that text is, by default, only rear sticky. The behavior seems
> to be as if the prompt-string text were front-sticky and the overlay
> were rear-sticky, IIUC.

You could read the DOC string of make-overlay.  It has optional
arguments.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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