From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: choose-completion-string should not exit minibuffer upon lisp-complete-symbol Date: Wed, 22 Sep 2004 09:40:34 -0600 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <41519CF2.4030101@yahoo.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1095867682 3184 80.91.229.6 (22 Sep 2004 15:41:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Sep 2004 15:41:22 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 22 17:41:08 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CA9Ex-0008Go-00 for ; Wed, 22 Sep 2004 17:41:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CA9Kt-00079V-Ky for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Sep 2004 11:47:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CA9Kr-000796-S8 for bug-gnu-emacs@gnu.org; Wed, 22 Sep 2004 11:47:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CA9Kq-000788-1n for bug-gnu-emacs@gnu.org; Wed, 22 Sep 2004 11:47:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CA9Kp-00077y-Vk for bug-gnu-emacs@gnu.org; Wed, 22 Sep 2004 11:47:12 -0400 Original-Received: from [132.239.1.54] (helo=mailbox2.ucsd.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CA9ER-0000jM-D8 for bug-gnu-emacs@gnu.org; Wed, 22 Sep 2004 11:40:35 -0400 Received-SPF: none (mailbox2.ucsd.edu: domain of mod-submit@uni-berlin.de does not designate permitted sender hosts) Original-Received: from Mail.FU-Berlin.DE (mail.fu-berlin.de [130.133.1.2]) by mailbox2.ucsd.edu (8.13.1/8.13.1) with ESMTP id i8MFeULa016519 for ; Wed, 22 Sep 2004 08:40:31 -0700 (PDT) Original-Received: by Mail.FU-Berlin.DE (Exim 4.42) from curry.zedat.fu-berlin.de ([160.45.10.36]) for gnu-emacs-bug@moderators.isc.org with esmtp id <1CA9EL-000Aio-2x>; Wed, 22 Sep 2004 17:40:29 +0200 Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.uni-berlin.de with bsmtp id ; Wed, 22 Sep 2004 17:40:28 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 28 X-Orig-X-Trace: news.uni-berlin.de OP4S2Ic/59/+zqSMqnhhIwed364dhsErjemE9XlxeOacTd3nI= User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-Spamscanner: mailbox2.ucsd.edu (v1.5 Aug 25 2004 09:28:35, -0.1/5.0 3.0.0-rc1) X-MailScanner: PASSED (v1.2.8 14140 i8MFeULa016519 mailbox2.ucsd.edu) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:9057 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:9057 Drew Adams wrote: > If you are entering Lisp code for evaluation (e.g. `M-:'), then you > don't want to exit the minibuffer when you complete a Lisp symbol. For > example, you have "(sear" when you use `lisp-complete-symbol' to pick > `search-forward'; you want the minibuffer to have "(search-forward" and > let you continue to type code. Note that "(sear" can only complete to "(search-", since it matches the search-forward, search-backward, search-forward-regexp, and search-backward-regexp functions. > For this reason, I modified choose-completion-string to recognize this. > Below is my version from Emacs 20, but I think the code is about the > same for Emacs 21 (the "problem" is still there, in any case). No, the problem does not exist in Emacs 21.3, when started with the -q --no-site-file options. > My code uses variable command-calling-for-completion from library > `elect-mbuf.el', but the test could be done differently. That variable > just holds the last command that caused display of the list of > possible completions. I suspect elect-mbuf.el is the cause of the problem. -- Kevin Rodgers