diff options
| author | Ignacio Casso | 2022-06-10 11:13:20 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-06-10 11:13:20 +0200 |
| commit | 071722e41120f8894b5482d9eccc663a28f81058 (patch) | |
| tree | 067acb5c2148d13a1ae6cf688d7656b973607af5 /src | |
| parent | 07fb8d284f8d08f79bb65e764b39180e2b974761 (diff) | |
| download | emacs-071722e41120f8894b5482d9eccc663a28f81058.tar.gz emacs-071722e41120f8894b5482d9eccc663a28f81058.zip | |
Fix issues with loading autoloaded defcustoms while bound
* doc/lispref/customize.texi (Variable Definitions)
(Variable Definitions): Update documentation.
* lisp/custom.el (custom-initialize-set)
(custom-initialize-reset): Update doc string.
(custom-initialize-changed): Use set-default-toplevel-value. This
fixes issues with (let ((custom-variable ...)) (autoload-function ...)).
(custom-set-default): Ditto.
* src/data.c (Fdefault_boundp): Update doc string.
Diffstat (limited to 'src')
| -rw-r--r-- | src/data.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/data.c b/src/data.c index 72dcf6f878d..46c0c5b6aee 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -1939,9 +1939,9 @@ default_value (Lisp_Object symbol) | |||
| 1939 | 1939 | ||
| 1940 | DEFUN ("default-boundp", Fdefault_boundp, Sdefault_boundp, 1, 1, 0, | 1940 | DEFUN ("default-boundp", Fdefault_boundp, Sdefault_boundp, 1, 1, 0, |
| 1941 | doc: /* Return t if SYMBOL has a non-void default value. | 1941 | doc: /* Return t if SYMBOL has a non-void default value. |
| 1942 | A variable may have a buffer-local or a `let'-bound local value. This | 1942 | A variable may have a buffer-local value. This function says whether |
| 1943 | function says whether the variable has a non-void value outside of the | 1943 | the variable has a non-void value outside of the current buffer |
| 1944 | current context. Also see `default-value'. */) | 1944 | context. Also see `default-value'. */) |
| 1945 | (Lisp_Object symbol) | 1945 | (Lisp_Object symbol) |
| 1946 | { | 1946 | { |
| 1947 | register Lisp_Object value; | 1947 | register Lisp_Object value; |