diff options
| author | Helmut Eller | 2026-04-04 20:59:46 +0200 |
|---|---|---|
| committer | Helmut Eller | 2026-04-04 20:59:46 +0200 |
| commit | 6eec001187e8551f32b6498e6dc60cdc58c2e515 (patch) | |
| tree | 13233de9f0a05ef86a51500e8b1870b75ff20c81 /doc/lispref/customize.texi | |
| parent | e4ea27119e79012f9d651cb61d1115589d91ef39 (diff) | |
| parent | 01a9d78a7e4c7d7fa5b799e4fdc2caf77a012734 (diff) | |
| download | emacs-feature/igc3.tar.gz emacs-feature/igc3.zip | |
Merge branch 'master' into feature/igc3feature/igc3
Diffstat (limited to 'doc/lispref/customize.texi')
| -rw-r--r-- | doc/lispref/customize.texi | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/doc/lispref/customize.texi b/doc/lispref/customize.texi index 364edf63031..705af15e4e2 100644 --- a/doc/lispref/customize.texi +++ b/doc/lispref/customize.texi | |||
| @@ -372,12 +372,15 @@ added by calls to @code{custom-add-frequent-value} (see below). | |||
| 372 | @item :set @var{setfunction} | 372 | @item :set @var{setfunction} |
| 373 | Specify @var{setfunction} as the way to change the value of this | 373 | Specify @var{setfunction} as the way to change the value of this |
| 374 | option when using the Customize interface. The function | 374 | option when using the Customize interface. The function |
| 375 | @var{setfunction} should take two arguments, a symbol (the option | 375 | @var{setfunction} should take two or three arguments, a symbol (the option |
| 376 | name) and the new value, and should do whatever is necessary to update | 376 | name), the new value, and an optional @var{buffer-local} indicator. |
| 377 | @var{setfunction} should do whatever is necessary to update | ||
| 377 | the value properly for this option (which may not mean simply setting | 378 | the value properly for this option (which may not mean simply setting |
| 378 | the option as a Lisp variable); preferably, though, it should not | 379 | the option as a Lisp variable); preferably, though, it should not |
| 379 | modify its value argument destructively. The default for | 380 | modify its value argument destructively. If optional @var{buffer-local} |
| 380 | @var{setfunction} is @code{set-default-toplevel-value}. | 381 | is non-nil, the new value should be set buffer locally and not affect its |
| 382 | global or default values. The default for @var{setfunction} is | ||
| 383 | @code{set-default-toplevel-value}. | ||
| 381 | 384 | ||
| 382 | If defined, @var{setfunction} will also be called when evaluating a | 385 | If defined, @var{setfunction} will also be called when evaluating a |
| 383 | @code{defcustom} form with @kbd{C-M-x} in Emacs Lisp mode and when the | 386 | @code{defcustom} form with @kbd{C-M-x} in Emacs Lisp mode and when the |
| @@ -387,7 +390,7 @@ If defined, @var{setfunction} will also be called when evaluating a | |||
| 387 | If you specify this keyword, the variable's documentation string | 390 | If you specify this keyword, the variable's documentation string |
| 388 | should describe how to do the same job in hand-written Lisp code, | 391 | should describe how to do the same job in hand-written Lisp code, |
| 389 | either by invoking @var{setfunction} directly or by using | 392 | either by invoking @var{setfunction} directly or by using |
| 390 | @code{setopt}. | 393 | @code{setopt} or @code{setopt-local}. |
| 391 | 394 | ||
| 392 | @kindex get@r{, @code{defcustom} keyword} | 395 | @kindex get@r{, @code{defcustom} keyword} |
| 393 | @item :get @var{getfunction} | 396 | @item :get @var{getfunction} |