From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: switch-to-completions Date: Wed, 18 Nov 2009 10:48:42 -0500 Message-ID: References: <61C01A08-8FB6-4908-B9F1-B9F1CE3E3D92@gmail.com> <20091111212658.GD12012@headley> <87fx8kjosa.fsf_-_@mail.jurta.org> <7b501d5c0911120209x7c8f493fm68fadef6f1311206@mail.gmail.com> <87bpj16pkh.fsf@mail.jurta.org> <87hbssw5xd.fsf_-_@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258559346 21562 80.91.229.12 (18 Nov 2009 15:49:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Nov 2009 15:49:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 18 16:48:59 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NAmm7-0002Jr-3f for ged-emacs-devel@m.gmane.org; Wed, 18 Nov 2009 16:48:55 +0100 Original-Received: from localhost ([127.0.0.1]:47525 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAmm6-00038k-HY for ged-emacs-devel@m.gmane.org; Wed, 18 Nov 2009 10:48:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NAmm1-00036U-8w for emacs-devel@gnu.org; Wed, 18 Nov 2009 10:48:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NAmlw-00031l-6b for emacs-devel@gnu.org; Wed, 18 Nov 2009 10:48:48 -0500 Original-Received: from [199.232.76.173] (port=59498 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAmlv-00031T-Uk for emacs-devel@gnu.org; Wed, 18 Nov 2009 10:48:44 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:2366 helo=ironport2-out.pppoe.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NAmlv-0005vm-IW for emacs-devel@gnu.org; Wed, 18 Nov 2009 10:48:43 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As4EAMOlA0vO+II8/2dsb2JhbACBTdULhDsEiVc X-IronPort-AV: E=Sophos;i="4.44,765,1249272000"; d="scan'208";a="49598064" Original-Received: from 206-248-130-60.dsl.teksavvy.com (HELO pastel.home) ([206.248.130.60]) by ironport2-out.pppoe.ca with ESMTP; 18 Nov 2009 10:48:42 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id C24BA859F; Wed, 18 Nov 2009 10:48:42 -0500 (EST) In-Reply-To: <87hbssw5xd.fsf_-_@mail.jurta.org> (Juri Linkov's message of "Wed, 18 Nov 2009 11:52:38 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:117184 Archived-At: > After scrolling with the help of `minibuffer-complete' or > `minibuffer-complete-backward' to the middle of a long list > of completions, and typing `M-v' or (bound to > `switch-to-completions') to select a completion item using > keyboard, point jumps to the beginning of the *Completions* > buffer, thus requiring to scroll to the middle of the list > again. I suppose moving point to the first item is necessary > only in the new *Completions* buffer: Yes, that makes sense. An alternative would be to make minibuffer-completion-help itself do the (search-forward "\n\n" nil t), which would seem to make more sense (e.g. minibuffer-completion-help is the function that fills the buffer and presumably knows that this \n\n exists and is it the right place, whereas switch-to-completions only can assume that minibuffer-completion-help places a \n\n at the right place). Stefan