diff options
| author | Paul Eggert | 2012-04-09 15:54:59 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-04-09 15:54:59 -0700 |
| commit | 45e9f7da84c1bd3fc0d36d05c5708ed3b2d3a193 (patch) | |
| tree | 5bc87a8b5a3c754b8eb44a612cc6c03561d6b968 /src/doc.c | |
| parent | 9d6b4d53469a9ffd67bd770fabc6fe254e35c21d (diff) | |
| parent | 05920a43fc18e696b464387e781e7cfdcea5b5af (diff) | |
| download | emacs-45e9f7da84c1bd3fc0d36d05c5708ed3b2d3a193.tar.gz emacs-45e9f7da84c1bd3fc0d36d05c5708ed3b2d3a193.zip | |
Merge from trunk.
Diffstat (limited to 'src/doc.c')
| -rw-r--r-- | src/doc.c | 17 |
1 files changed, 10 insertions, 7 deletions
| @@ -1,6 +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 | Copyright (C) 1985-1986, 1993-1995, 1997-2012 | 2 | |
| 3 | Free Software Foundation, Inc. | 3 | Copyright (C) 1985-1986, 1993-1995, 1997-2012 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -675,15 +675,18 @@ the same file name is found in the `doc-directory'. */) | |||
| 675 | /* Install file-position as variable-documentation property | 675 | /* Install file-position as variable-documentation property |
| 676 | and make it negative for a user-variable | 676 | and make it negative for a user-variable |
| 677 | (doc starts with a `*'). */ | 677 | (doc starts with a `*'). */ |
| 678 | Fput (sym, Qvariable_documentation, | 678 | if (!NILP (Fboundp (sym))) |
| 679 | make_number ((pos + end + 1 - buf) | 679 | Fput (sym, Qvariable_documentation, |
| 680 | * (end[1] == '*' ? -1 : 1))); | 680 | make_number ((pos + end + 1 - buf) |
| 681 | * (end[1] == '*' ? -1 : 1))); | ||
| 681 | } | 682 | } |
| 682 | 683 | ||
| 683 | /* Attach a docstring to a function? */ | 684 | /* Attach a docstring to a function? */ |
| 684 | else if (p[1] == 'F') | 685 | else if (p[1] == 'F') |
| 685 | store_function_docstring (sym, pos + end + 1 - buf); | 686 | { |
| 686 | 687 | if (!NILP (Ffboundp (sym))) | |
| 688 | store_function_docstring (sym, pos + end + 1 - buf); | ||
| 689 | } | ||
| 687 | else if (p[1] == 'S') | 690 | else if (p[1] == 'S') |
| 688 | ; /* Just a source file name boundary marker. Ignore it. */ | 691 | ; /* Just a source file name boundary marker. Ignore it. */ |
| 689 | 692 | ||