From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Improved help from minibuffer prompts Date: 13 Apr 2004 15:57:58 +0900 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: Reply-To: Miles Bader NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1081840149 18613 80.91.224.253 (13 Apr 2004 07:09:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Apr 2004 07:09:09 +0000 (UTC) Cc: emacs-devel Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Apr 13 09:09:01 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BDI2X-0007aX-00 for ; Tue, 13 Apr 2004 09:09:01 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BDI2W-0004D1-00 for ; Tue, 13 Apr 2004 09:09:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BDHyG-0001Cd-1N for emacs-devel@quimby.gnus.org; Tue, 13 Apr 2004 03:04:36 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BDHxS-00012j-Is for emacs-devel@gnu.org; Tue, 13 Apr 2004 03:03:46 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BDHsP-0007q5-VO for emacs-devel@gnu.org; Tue, 13 Apr 2004 02:59:05 -0400 Original-Received: from [202.32.8.214] (helo=TYO201.gate.nec.co.jp) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BDHsO-0007op-Ps; Tue, 13 Apr 2004 02:58:33 -0400 Original-Received: from mailgate4.nec.co.jp (mailgate54.nec.co.jp [10.7.69.193]) by TYO201.gate.nec.co.jp (8.11.7/3.7W01080315) with ESMTP id i3D6w7h26025; Tue, 13 Apr 2004 15:58:07 +0900 (JST) Original-Received: (from root@localhost) by mailgate4.nec.co.jp (8.11.7/3.7W-MAILGATE-NEC) id i3D6w6h15165; Tue, 13 Apr 2004 15:58:06 +0900 (JST) Original-Received: from edsgm01.lsi.nec.co.jp ([10.50.208.11]) by mailsv3.nec.co.jp (8.11.7/3.7W-MAILSV4-NEC) with ESMTP id i3D6w5T12894; Tue, 13 Apr 2004 15:58:05 +0900 (JST) Original-Received: from mcsss2.ucom.lsi.nec.co.jp (localhost [127.0.0.1]) by edsgm01.lsi.nec.co.jp (8.12.10/8.12.10) with ESMTP id i3D6w1Ib012401; Tue, 13 Apr 2004 15:58:04 +0900 (JST) Original-Received: from mcspd15 (mcspd15 [10.30.114.174]) by mcsss2.ucom.lsi.nec.co.jp (8.12.10/8.12.8/EDcg v2.01-mc/1046780839) with ESMTP id i3D6vwnX019114; Tue, 13 Apr 2004 15:57:58 +0900 (JST) Original-Received: by mcspd15 (Postfix, from userid 31295) id 3917C131E4; Tue, 13 Apr 2004 15:57:58 +0900 (JST) Original-To: =?iso-8859-1?q?Stefan_Reich=F6r?= System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: Original-Lines: 30 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:21553 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21553 Stefan Reich=F6r writes: > Now you can hit f1 when a minibuffer prompt is displayed and you get > the function's docstring. It's kind of a neat idea, but F1 doesn't seem like a great key-binding to me... How about having the completion-help display code[*] do it: when showing completions, if there's only a single unique completion, show instead the help buffer. That way, you could either hit `?' after typing the command, or e.g. hit TAB a few times -- once to complete the command, and another time to display help. [*] Probably not the generic completion-help code, but some specialized version used when completing functions/commands -- though perhaps the option of doing something special for completion-help-with-only- one-completion could be made a general feature for users of completion. F1 currently does normal help without a prompt in the minibuffer, which is a bit awkward; maybe it should just do the same thing as `?' in the minibuffer -- which combined with the above technique, would actually make it work the same as your suggestion... :-] -Miles --=20 [|nurgle|] ddt- demonic? so quake will have an evil kinda setting? one that will make every christian in the world foamm at the mouth? [iddt] nurg, that's the goal