From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kelly Dean Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Run hook when variable is set Date: Fri, 30 Jan 2015 07:14:19 +0000 Message-ID: References: <83twz9muzh.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1422602139 22529 80.91.229.3 (30 Jan 2015 07:15:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Jan 2015 07:15:39 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 30 08:15:38 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YH5nl-0000KW-BF for ged-emacs-devel@m.gmane.org; Fri, 30 Jan 2015 08:15:37 +0100 Original-Received: from localhost ([::1]:35075 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH5nk-0000KP-Hg for ged-emacs-devel@m.gmane.org; Fri, 30 Jan 2015 02:15:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH5ng-0000KK-SY for emacs-devel@gnu.org; Fri, 30 Jan 2015 02:15:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YH5ng-0000EK-2D for emacs-devel@gnu.org; Fri, 30 Jan 2015 02:15:32 -0500 Original-Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:49278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH5nc-0000Dx-9l; Fri, 30 Jan 2015 02:15:28 -0500 Original-Received: from mfilter6-d.gandi.net (mfilter6-d.gandi.net [217.70.178.135]) by relay5-d.mail.gandi.net (Postfix) with ESMTP id 8D3CA41C072; Fri, 30 Jan 2015 08:15:27 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter6-d.gandi.net Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by mfilter6-d.gandi.net (mfilter6-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id PsrrGE1yKC1q; Fri, 30 Jan 2015 08:15:26 +0100 (CET) X-Originating-IP: 66.220.3.179 Original-Received: from localhost (gm179.geneticmail.com [66.220.3.179]) (Authenticated sender: kelly@prtime.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 2E03041C06B; Fri, 30 Jan 2015 08:15:24 +0100 (CET) In-reply-to: <83twz9muzh.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4b98:c:538::197 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:182023 Archived-At: >> For just one example, without varhook, what solution would you >> propose for bug #19068? > > The canonical way of solving those is to have a :set function in the > defcustom (and tell in the doc string that setting the value directly > doesn't work). > > IOW, for defcustoms we already have this solved. Oh, I missed the :set function for defcustom. I'm probably just being dense, but the customization interface in Emacs i= s a bit confusing for me, so I've always just put =C2=ABsetq=C2=BBs in my= init file. Requiring use of the customization interface for users who ar= e accustomed to directly editing init seems a bit Windows-esque, but at l= east if the docstring says it's required, then it won't be misleading.