diff options
| author | Glenn Morris | 2014-02-27 21:00:17 -0500 |
|---|---|---|
| committer | Glenn Morris | 2014-02-27 21:00:17 -0500 |
| commit | 2241d76e834c28dd84732ddda91bf1d559c65191 (patch) | |
| tree | 8e995c7d9e282323359e85445242b2010f23892f /src | |
| parent | 289996f5e1288df9f69df469b44b7a9093ce3198 (diff) | |
| download | emacs-2241d76e834c28dd84732ddda91bf1d559c65191.tar.gz emacs-2241d76e834c28dd84732ddda91bf1d559c65191.zip | |
* src/doc.c (Fsnarf_documentation): Snarf not-yet-bound variables
from custom-delayed-init-variables.
Fixes: debbugs:11565
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/doc.c | 12 |
2 files changed, 14 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 9ec638374f5..75dfdf71bd5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-02-28 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * doc.c (Fsnarf_documentation): Snarf not-yet-bound variables | ||
| 4 | from custom-delayed-init-variables. (Bug#11565) | ||
| 5 | |||
| 1 | 2014-02-27 Martin Rudalics <rudalics@gmx.at> | 6 | 2014-02-27 Martin Rudalics <rudalics@gmx.at> |
| 2 | 7 | ||
| 3 | More fixes for mouse glyph calculations (Bug#16647). | 8 | More fixes for mouse glyph calculations (Bug#16647). |
| @@ -1,7 +1,6 @@ | |||
| 1 | /* Record indices of function doc strings stored in a file. | 1 | /* Record indices of function doc strings stored in a file. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1986, 1993-1995, 1997-2014 Free Software Foundation, | 3 | Copyright (C) 1985-1986, 1993-1995, 1997-2014 Free Software Foundation, Inc. |
| 4 | Inc. | ||
| 5 | 4 | ||
| 6 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 7 | 6 | ||
| @@ -559,6 +558,12 @@ the same file name is found in the `doc-directory'. */) | |||
| 559 | char *p, *name; | 558 | char *p, *name; |
| 560 | bool skip_file = 0; | 559 | bool skip_file = 0; |
| 561 | ptrdiff_t count; | 560 | ptrdiff_t count; |
| 561 | /* Preloaded defcustoms using custom-initialize-delay are added to | ||
| 562 | this list, but kept unbound. See http://debbugs.gnu.org/11565 */ | ||
| 563 | Lisp_Object delayed_init = | ||
| 564 | find_symbol_value (intern ("custom-delayed-init-variables")); | ||
| 565 | |||
| 566 | if (EQ (delayed_init, Qunbound)) delayed_init = Qnil; | ||
| 562 | 567 | ||
| 563 | CHECK_STRING (filename); | 568 | CHECK_STRING (filename); |
| 564 | 569 | ||
| @@ -656,7 +661,8 @@ the same file name is found in the `doc-directory'. */) | |||
| 656 | /* Install file-position as variable-documentation property | 661 | /* Install file-position as variable-documentation property |
| 657 | and make it negative for a user-variable | 662 | and make it negative for a user-variable |
| 658 | (doc starts with a `*'). */ | 663 | (doc starts with a `*'). */ |
| 659 | if (!NILP (Fboundp (sym))) | 664 | if (!NILP (Fboundp (sym)) |
| 665 | || !NILP (Fmemq (sym, delayed_init))) | ||
| 660 | Fput (sym, Qvariable_documentation, | 666 | Fput (sym, Qvariable_documentation, |
| 661 | make_number ((pos + end + 1 - buf) | 667 | make_number ((pos + end + 1 - buf) |
| 662 | * (end[1] == '*' ? -1 : 1))); | 668 | * (end[1] == '*' ? -1 : 1))); |