From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: wrapper fn for message and minibuffer-message? Date: Sat, 15 Oct 2005 07:39:41 -0700 Message-ID: References: <87slv2rjtl.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1129387331 14154 80.91.229.2 (15 Oct 2005 14:42:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 Oct 2005 14:42:11 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 15 16:42:02 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EQnDI-0000xf-Ks for ged-emacs-devel@m.gmane.org; Sat, 15 Oct 2005 16:40:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EQnDI-00069F-2z for ged-emacs-devel@m.gmane.org; Sat, 15 Oct 2005 10:40:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EQnCa-0005zP-25 for emacs-devel@gnu.org; Sat, 15 Oct 2005 10:40:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EQnCY-0005x3-5m for emacs-devel@gnu.org; Sat, 15 Oct 2005 10:39:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EQnCX-0005wT-QJ for emacs-devel@gnu.org; Sat, 15 Oct 2005 10:39:57 -0400 Original-Received: from [148.87.122.31] (helo=rgminet02.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EQnCX-0005KR-Pk for emacs-devel@gnu.org; Sat, 15 Oct 2005 10:39:57 -0400 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by rgminet02.oracle.com (Switch-3.1.6/Switch-3.1.7) with ESMTP id j9FEdt0X024615 for ; Sat, 15 Oct 2005 08:39:55 -0600 Original-Received: from rgmsgw300.us.oracle.com (localhost [127.0.0.1]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j9FEdtKX002925 for ; Sat, 15 Oct 2005 08:39:55 -0600 Original-Received: from dradamslap (dhcp-amer-rmdc-csvpn-gw4-141-144-96-159.vpn.oracle.com [141.144.96.159]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id j9FEdsHe002916 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Sat, 15 Oct 2005 08:39:54 -0600 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Importance: Normal In-Reply-To: <87slv2rjtl.fsf@jurta.org> X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:44076 Archived-At: > OK, I understand you now, I think. `message' does this: > > if `minibufferp', > then if `minibuffer-message-at-end' > then don't erase minibuffer, but append message there > else temporarily replace minibuffer contents with message > else temporarily replace any minibuffer contents with message > > `minibuffer-message' will just call `message' with non-nil > `minibuffer-message-at-end'. (However, to keep the current > behavior in all cases, it should not call `message' if the > minibuffer is not active, but should instead do nothing.) I wonder if this can be used to display the isearch prompt while searching the minibuffer contents? Currently the isearch prompt completely overwrites the minibuffer contents. I imagine using `minibuffer-message-at-end' to append the isearch prompt to the minibuffer contents. For example, with the minibuffer: Eval: (setq foo 'bar) typing `C-s foo' will display: Eval: (setq foo 'bar) [I-search backward: foo] and `foo' will be highlighted in `isearch' face, as usual. Not bad (but don't you mean C-r for backward search)? I like it. Anyway, this seems orthogonal to the discussion of merging message and minibuffer-message. Couldn't this be done today, just by using minibuffer-message instead of message?