From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: Documentation not clear for the Lisp function set-variable Date: Tue, 05 Jul 2005 12:12:47 -0400 Message-ID: References: <87slz6nr3h.fsf@jurta.org> <200506271609.j5RG9i020638@raven.dms.auburn.edu> <200506271845.j5RIj3W22159@raven.dms.auburn.edu> <200507040118.j641ImO12290@raven.dms.auburn.edu> <200507050142.j651ghI15860@raven.dms.auburn.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1120580657 13780 80.91.229.2 (5 Jul 2005 16:24:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Jul 2005 16:24:17 +0000 (UTC) Cc: lekktu@gmail.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 05 18:24:10 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DpqBo-0006aI-VF for ged-emacs-devel@m.gmane.org; Tue, 05 Jul 2005 18:22:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DpqD5-00052U-HP for ged-emacs-devel@m.gmane.org; Tue, 05 Jul 2005 12:23:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DpqAg-0003vU-Rf for emacs-devel@gnu.org; Tue, 05 Jul 2005 12:21:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DpqAW-0003qR-7s for emacs-devel@gnu.org; Tue, 05 Jul 2005 12:21:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DpqAV-0003my-Db for emacs-devel@gnu.org; Tue, 05 Jul 2005 12:21:07 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DpqAh-0000i5-4X for emacs-devel@gnu.org; Tue, 05 Jul 2005 12:21:19 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Dpq2R-0001vb-Ad; Tue, 05 Jul 2005 12:12:47 -0400 Original-To: Luc Teirlinck In-reply-to: <200507050142.j651ghI15860@raven.dms.auburn.edu> (message from Luc Teirlinck on Mon, 4 Jul 2005 20:42:43 -0500 (CDT)) 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:40434 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40434 (defun custom-variable-prompt () "Prompt for a custom variable, defaulting to the variable at point. + If that variable is an alias, the default is the actual custom variable + at the end of the chain of aliases. Return a list suitable for use in `interactive'." ! (let ((v (indirect-variable (variable-at-point))) (enable-recursive-minibuffers t) val) The default that the user sees should be what's in the buffer. Otherwise it will be mysterious. The conversion of aliases to their real names should happen only on the user's input. If you just leave this function unchanged and install the rest, it should work. However, it would be good to make one additional change: the same commands should display a message of the form `%s' is an alias for `%s' in the echo area.