From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Documentation not clear for the Lisp function set-variable Date: Thu, 30 Jun 2005 02:57:44 +0300 Organization: JURTA Message-ID: <87psu4ve2r.fsf@jurta.org> References: <87slz6nr3h.fsf@jurta.org> <200506271609.j5RG9i020638@raven.dms.auburn.edu> <87vf3ztg62.fsf@jurta.org> <87br5pri6l.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1120098910 3898 80.91.229.2 (30 Jun 2005 02:35:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Jun 2005 02:35:10 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 30 04:35:07 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dnosy-0007QC-Ep for ged-emacs-devel@m.gmane.org; Thu, 30 Jun 2005 04:34:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dnp18-0003FK-Dz for ged-emacs-devel@m.gmane.org; Wed, 29 Jun 2005 22:43:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DnooH-0007op-AR for emacs-devel@gnu.org; Wed, 29 Jun 2005 22:29:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dnoo1-0007gu-1g for emacs-devel@gnu.org; Wed, 29 Jun 2005 22:29:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dnoo0-0007Wv-7N for emacs-devel@gnu.org; Wed, 29 Jun 2005 22:29:32 -0400 Original-Received: from [194.126.101.116] (helo=HOT-Bounce1.hot.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DnoUJ-0005sN-UW for emacs-devel@gnu.org; Wed, 29 Jun 2005 22:09:12 -0400 Original-Received: from mail.neti.ee (Relay8 [192.168.1.27]) by HOT-Bounce1.hot.ee (Postfix) with ESMTP id 2E46314D7DB for ; Thu, 30 Jun 2005 04:50:52 +0300 (EEST) Original-Received: from mail.neti.ee (80-235-40-23-dsl.mus.estpak.ee [80.235.40.23]) by Relayhost2.neti.ee (Postfix) with ESMTP id BD52A2145; Thu, 30 Jun 2005 05:03:41 +0300 (EEST) Original-To: Juanma Barranquero In-Reply-To: (Juanma Barranquero's message of "Wed, 29 Jun 2005 11:14:21 +0200") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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:39925 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39925 >> I agree that filtering is not very necessary, and >> think that it would be sufficient to display a warning for obsolete >> variables and obsolete aliases after selecting the variable but before >> setting its value. > > Cool. That's what my latest patch does. Please take a look to see if > it matches your expectations. I like it. BTW, there is another problem in `set-variable'. When setting a customizable variable with `set-variable' it doesn't use its `:set' keyword to set the value. For example, M-x set-variable RET frame-background-mode RET dark RET doesn't update the background mode until `frame-set-background-mode' is run explicitly. `set-variable' already uses internal functions of the `custom' package to test the custom type, so why wouldn't it also run a setter specified by the `:set' custom keyword? -- Juri Linkov http://www.jurta.org/emacs/