From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: poor Customize [was: Trying to right-align my window on startup] Date: Mon, 13 Jan 2014 09:06:12 -0800 (PST) Message-ID: <8c4d867a-998d-400e-a11d-3b9c237924de@default> References: <3d001cf9-b321-4d6a-a41f-2ef0d294b7ba@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1389632841 27954 80.91.229.3 (13 Jan 2014 17:07:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jan 2014 17:07:21 +0000 (UTC) To: jack-mac , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 13 18:07:27 2014 Return-path: Envelope-to: geh-help-gnu-emacs@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 1W2kyz-0006fV-Uv for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jan 2014 18:07:26 +0100 Original-Received: from localhost ([::1]:43939 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2kyz-0006Qv-F9 for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jan 2014 12:07:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2ky6-0005rr-Jm for help-gnu-emacs@gnu.org; Mon, 13 Jan 2014 12:06:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2kxs-000454-0V for help-gnu-emacs@gnu.org; Mon, 13 Jan 2014 12:06:30 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:43591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2kxr-00043s-Rh for help-gnu-emacs@gnu.org; Mon, 13 Jan 2014 12:06:15 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id s0DH6DDk008398 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 13 Jan 2014 17:06:14 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s0DH6DbC014394 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 13 Jan 2014 17:06:13 GMT Original-Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s0DH6CnD014366; Mon, 13 Jan 2014 17:06:12 GMT In-Reply-To: <3d001cf9-b321-4d6a-a41f-2ef0d294b7ba@googlegroups.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95371 Archived-At: > > I have even suggested that the same or similar type-checking > > and other `defcustom' features be made available (for optional > > use) to `defvar'. Variables that are not user options can also > > benefit from type checking, :set triggers, etc. >=20 > Could you please elaborate on ":set triggers"? See (elisp) `Variable Definitions'. :set in `defcustom' specifies a function that is used to change the option value. It can take care of anything that needs to be done when the value gets set. By default (e.g., if unspecified), it does only what `set-default' does: it sets the default value. I used the word "trigger" loosely, to suggest that, via :set, arbitrary code can be executed whenever the option value is set. There are other, similar `defcustom' keywords. In particular, :initialize.