emacs-devel
[Top][All Lists]
Advanced

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

Re: callint.c:506


From: Kim F. Storm
Subject: Re: callint.c:506
Date: 29 Aug 2002 14:55:13 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Mario Lang <address@hidden> writes:

> 2. Introduce a new hook (prompt-hook?) which would get called
> for every minibuffer prompt displayed.
> 
> Solution 2 seems more involved, but it would make things more cleaner
> imo.

I'm not sure how difficult this would be (it's not trivial for sure),
but IMO it definitely seems to make a lot of sense to provide such a
hook function.

A semi-workable solution might be to add the hook to call-interactively
[which implements the (interactive ...) form] and let it pass the
callint_message to the prompt hook function [together with the arg type],

Something like this

     if (callint_message[0] && !NILP (Vinteractive_prompt_function))
        call2 (Vinteractive_prompt_function,
               build_string (callint_message),
               make_number (*tem));

added before:

      switch (*tem)
        {
        case 'a':               /* Symbol defined as a function */


-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

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