[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: poor Customize [was: Trying to right-align my window on startup]
From: |
Drew Adams |
Subject: |
RE: poor Customize [was: Trying to right-align my window on startup] |
Date: |
Mon, 13 Jan 2014 09:06:12 -0800 (PST) |
> > 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.
>
> 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.
- Re: Trying to right-align my window on startup, (continued)
- RE: Trying to right-align my window on startup, Drew Adams, 2014/01/09
- Re: Trying to right-align my window on startup, Eli Zaretskii, 2014/01/09
- Re: Trying to right-align my window on startup, Marcin Borkowski, 2014/01/09
- RE: Trying to right-align my window on startup, Drew Adams, 2014/01/09
- RE: Trying to right-align my window on startup, Drew Adams, 2014/01/09
- Re: Trying to right-align my window on startup, Juanma Barranquero, 2014/01/11
- poor Customize [was: Trying to right-align my window on startup], Drew Adams, 2014/01/11
- Message not available
- Re: poor Customize [was: Trying to right-align my window on startup], jack-mac, 2014/01/13
- RE: poor Customize [was: Trying to right-align my window on startup],
Drew Adams <=
- Message not available
- Re: Trying to right-align my window on startup, Rusi, 2014/01/14
- In defense of Customize [was: Trying to right-align my window on startup], Drew Adams, 2014/01/14
- session.* files (was: In defense of Customize), gottlieb, 2014/01/14
- Re: session.* files (was: In defense of Customize), Peter Dyballa, 2014/01/14
- Re: In defense of Customize [was: Trying to right-align my window on startup], Phillip Lord, 2014/01/15
- RE: In defense of Customize [was: Trying to right-align my window on startup], Drew Adams, 2014/01/15
- Re: In defense of Customize [was: Trying to right-align my window on startup], Phillip Lord, 2014/01/16
- RE: In defense of Customize [was: Trying to right-align my window on startup], Drew Adams, 2014/01/16
- Re: Trying to right-align my window on startup, Emanuel Berg, 2014/01/14
- Re: Trying to right-align my window on startup, Marcin Borkowski, 2014/01/14