emacs-devel
[Top][All Lists]
Advanced

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

Re: feature request: indicator of minibuffer-recursion depth


From: Juri Linkov
Subject: Re: feature request: indicator of minibuffer-recursion depth
Date: Sat, 16 Jun 2007 02:34:43 +0300
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

>> In Lisp, the user can change formatting, colors and placement of the
>> minibuffer depth indicator as the user likes. But how this can be done
>> with the C implementation?
>
> Have you looked to both implementations as they stand? The only way to
> change formatting, colors and placement in the elisp version is by
> hacking, while the C version includes a customizable
> `minibuffer-depth-indicator' just for that purpose

It is very easy to add a customizable variable to the Lisp version,
as you already did in your patch.

> (well, placement cannot be changed in any of them, truth be told).

Placement can be changed in Lisp by redefining the function
`minibuf-depth-setup-minibuffer'.  And I can do this because I prefer
putting this indicator to the end of the prompt by using after-string
instead of before-string.

> It can be added to the elisp version, of course. Or we could just go
> with the C version, which would have been committed months ago with no
> discussion, were not for the freeze... <sigh>

Please note that the C version uses the same method of putting the overlay
with the formatted indicator to the minibuffer prompt as the Lisp version.
And if it interacts badly with your other eight minibuffer setup hooks,
you are unable to fix this conflict with the hard-coded C version.

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

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