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: apropos commands for commands, user options, all functions, all variables Date: Tue, 23 Oct 2007 00:11:57 -0700 Message-ID: References: <87bqaqzo8k.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1193138751 31964 80.91.229.12 (23 Oct 2007 11:25:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Oct 2007 11:25:51 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: "Juri Linkov" , "Stefan Monnier" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 23 13:25:52 2007 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 1IkHtM-0005ga-SF for ged-emacs-devel@m.gmane.org; Tue, 23 Oct 2007 13:25:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IkHtE-0005TP-Vh for ged-emacs-devel@m.gmane.org; Tue, 23 Oct 2007 07:25:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IkHtB-0005T8-2L for emacs-devel@gnu.org; Tue, 23 Oct 2007 07:25:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IkHt8-0005Sq-Da for emacs-devel@gnu.org; Tue, 23 Oct 2007 07:25:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IkHt8-0005Sn-Bz for emacs-devel@gnu.org; Tue, 23 Oct 2007 07:25:34 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IkHsy-0005n3-7G; Tue, 23 Oct 2007 07:25:24 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IkDxh-0000vV-FJ; Tue, 23 Oct 2007 03:14:01 -0400 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l9N7Cpge025720; Tue, 23 Oct 2007 02:12:52 -0500 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id l9N3JxkH017762; Tue, 23 Oct 2007 01:12:51 -0600 Original-Received: from dhcp-amer-csvpn-gw2-141-144-73-164.vpn.oracle.com by acsmt350.oracle.com with ESMTP id 3312873461193123516; Tue, 23 Oct 2007 00:11:56 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <87bqaqzo8k.fsf@jurta.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by mx20.gnu.org: Linux 2.4-2.6 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:81549 Archived-At: > > You can do (put 'set 'interactive-form > > '(interactive "Svariable name: \nxValue: ")) > > and then M-x set RET RET RET > > or just M-: (setq ) RET > > I implemented the functionality for the first, and I personally use the > > second. > > Neither is as convenient as set-variable which > > 1. picks up the default variable name from the buffer; > 2. provides completion; > 3. provides the old value as default for editing in the minibuffer; Exactly. Someone will no doubt argue that you can anyway use M-TAB with `M-: (setq ' to complete Lisp symbols, including variables, but it's not the same level of convenience at all. Users should have available: (1) completion for only option names (with a `set-option' command) and (2) completion for only (arbitrary) variable names (with a redefined `set-variable' command). Completion of arbitrary Lisp symbols is an undirected shotgun blast here. Completion (`completing-read', not `lisp-complete-symbol') lets you deal with the right set of thingies (domain), and can hand you a reasonable default value to play with. There should be completion commands for setting both options and arbitrary variables.