From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: callint.c:506 Date: 29 Aug 2002 14:55:13 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <5x4rddj03y.fsf@kfs2.cua.dk> References: <87ofbn6rfj.fsf@lexx.delysid.org> <87adn5kivq.fsf@lexx.delysid.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1030622124 24562 127.0.0.1 (29 Aug 2002 11:55:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 29 Aug 2002 11:55:24 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17kNtQ-0006Ny-00 for ; Thu, 29 Aug 2002 13:55:20 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17kOPh-0002dM-00 for ; Thu, 29 Aug 2002 14:28:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17kNum-0003ON-00; Thu, 29 Aug 2002 07:56:45 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17kNsz-0003MT-00 for emacs-devel@gnu.org; Thu, 29 Aug 2002 07:54:53 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17kNsx-0003MF-00 for emacs-devel@gnu.org; Thu, 29 Aug 2002 07:54:52 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17kNsw-0003MA-00 for emacs-devel@gnu.org; Thu, 29 Aug 2002 07:54:50 -0400 Original-Received: from kfs2.cua.dk.cua.dk (kfs2.local.filanet.dk [192.168.1.182]) by mail.filanet.dk (Postfix) with SMTP id 9A8667C017; Thu, 29 Aug 2002 11:54:49 +0000 (GMT) Original-To: Mario Lang In-Reply-To: <87adn5kivq.fsf@lexx.delysid.org> Original-Lines: 32 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:7104 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7104 Mario Lang 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 http://www.cua.dk