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: apropos commands for commands, user options, all functions, all variables Date: Sun, 21 Oct 2007 20:55:21 -0400 Message-ID: References: <877ilg5hfl.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193014540 26752 80.91.229.12 (22 Oct 2007 00:55:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Oct 2007 00:55:40 +0000 (UTC) Cc: rms@gnu.org, Drew Adams , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 22 02:55:40 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 1IjlZz-00074n-Sp for ged-emacs-devel@m.gmane.org; Mon, 22 Oct 2007 02:55:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjlZr-0006J7-T0 for ged-emacs-devel@m.gmane.org; Sun, 21 Oct 2007 20:55:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IjlZo-0006G3-7c for emacs-devel@gnu.org; Sun, 21 Oct 2007 20:55:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IjlZm-0006Cz-Pe for emacs-devel@gnu.org; Sun, 21 Oct 2007 20:55:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjlZm-0006Co-LI for emacs-devel@gnu.org; Sun, 21 Oct 2007 20:55:26 -0400 Original-Received: from bc.sympatico.ca ([209.226.175.184] helo=tomts22-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IjlZi-0004j8-LE; Sun, 21 Oct 2007 20:55:22 -0400 Original-Received: from pastel.home ([74.12.205.156]) by tomts22-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20071022005521.LMSP18413.tomts22-srv.bellnexxia.net@pastel.home>; Sun, 21 Oct 2007 20:55:21 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 64FB67FBB; Sun, 21 Oct 2007 20:55:21 -0400 (EDT) In-Reply-To: <877ilg5hfl.fsf@jurta.org> (Juri Linkov's message of "Sun\, 21 Oct 2007 23\:41\:34 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) 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:81418 Archived-At: >> Similarly, we should rename `set-variable' to `set-option' and define a new >> `set-variable' command that sets any variable, not just a user option. >> >> There is no need for such a command; it would be wasted complexity. >> We could define `set-option' as an alias for it. > I often use my own implementation of `set-variable' that doesn't restrict > its argument only to options. I wonder what is more easy way to > interactively change the variable's value in Emacs? 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. Stefan