aboutsummaryrefslogtreecommitdiffstats
path: root/src/doc.c
diff options
context:
space:
mode:
authorPaul Eggert2012-04-09 15:54:59 -0700
committerPaul Eggert2012-04-09 15:54:59 -0700
commit45e9f7da84c1bd3fc0d36d05c5708ed3b2d3a193 (patch)
tree5bc87a8b5a3c754b8eb44a612cc6c03561d6b968 /src/doc.c
parent9d6b4d53469a9ffd67bd770fabc6fe254e35c21d (diff)
parent05920a43fc18e696b464387e781e7cfdcea5b5af (diff)
downloademacs-45e9f7da84c1bd3fc0d36d05c5708ed3b2d3a193.tar.gz
emacs-45e9f7da84c1bd3fc0d36d05c5708ed3b2d3a193.zip
Merge from trunk.
Diffstat (limited to 'src/doc.c')
-rw-r--r--src/doc.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/doc.c b/src/doc.c
index d71a3ce1d80..bec20fb0d94 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -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. 3Copyright (C) 1985-1986, 1993-1995, 1997-2012 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This 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