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: `set-variable' should use :set Date: Thu, 21 Oct 2010 10:25:35 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1287685938 30534 80.91.229.12 (21 Oct 2010 18:32:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Oct 2010 18:32:18 +0000 (UTC) To: "'Emacs-Devel devel'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 21 20:32:17 2010 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.69) (envelope-from ) id 1P8zw0-0003go-Cy for ged-emacs-devel@m.gmane.org; Thu, 21 Oct 2010 20:32:16 +0200 Original-Received: from localhost ([127.0.0.1]:47446 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8zjj-0003OF-Ix for ged-emacs-devel@m.gmane.org; Thu, 21 Oct 2010 14:19:35 -0400 Original-Received: from [140.186.70.92] (port=59576 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8zF7-00056U-Pa for emacs-devel@gnu.org; Thu, 21 Oct 2010 13:48:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8z8j-0006vL-AE for emacs-devel@gnu.org; Thu, 21 Oct 2010 13:41:22 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:21572) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8z8j-0006v6-4t for emacs-devel@gnu.org; Thu, 21 Oct 2010 13:41:21 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o9LHfH6q013916 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 21 Oct 2010 17:41:19 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o9LEQd1t017822 for ; Thu, 21 Oct 2010 17:41:09 GMT Original-Received: from abhmt015.oracle.com by acsmt354.oracle.com with ESMTP id 704321331287681934; Thu, 21 Oct 2010 10:25:34 -0700 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 21 Oct 2010 10:25:33 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: ActxRPhlden+usmeQg+mn5vyNey92g== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:131947 Archived-At: `set-variable' is in most respects a shortcut for using Customize to change an option's value (for the current session - it does not save the value). For example, it uses the proper `interactive' spec and forces user input to be of the correct defcustom :type. However, it does not respect a defcustom :set. I'm thinking that it should, so that using `set-variable' would indeed be a proper shortcut for setting an option value. Am I missing something? Is there some fundamental reason why we do not want to do this or we should not do it? Or is it just that we have never bothered to do it? If there is no special reason why we don't do it, then I think we should. A user should not encounter surprises due to :set not being invoked when using `set-variable' and thus (perhaps important) value-change actions not being carried out. If we cannot, or for some reason should not, make such an enhancement, shouldn't we at least warn the user that :set will not be invoked? And perhaps require confirmation after such a warning, before just setting the value? WDOT?