aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2012-04-09 15:55:58 -0700
committerPaul Eggert2012-04-09 15:55:58 -0700
commit271e61eb60721546bf373531852a88f14b840d12 (patch)
tree617ada4d9e26a7d255d8c792165b40214c65ddb3 /src
parentc6046b94e58b33ddcfca8f6361ddaf780ba5cb18 (diff)
parent05920a43fc18e696b464387e781e7cfdcea5b5af (diff)
downloademacs-271e61eb60721546bf373531852a88f14b840d12.tar.gz
emacs-271e61eb60721546bf373531852a88f14b840d12.zip
Merge from trunk.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog8
-rw-r--r--src/Makefile.in2
-rw-r--r--src/doc.c17
3 files changed, 19 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 7027e9e5a95..5abf92bc4e1 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -11,6 +11,14 @@
11 the Emacs and Gnulib regex code is merged. 11 the Emacs and Gnulib regex code is merged.
12 (xmalloc, xrealloc): Now static. 12 (xmalloc, xrealloc): Now static.
13 13
142012-04-09 Glenn Morris <rgm@gnu.org>
15
16 * doc.c (Fsnarf_documentation): Check variables, functions are bound,
17 not just in the obarray, before snarfing them. (Bug#11036)
18
19 * Makefile.in ($(leimdir)/leim-list.el):
20 Pass EMACS rather than BUILT_EMACS.
21
142012-04-09 Teodor Zlatanov <tzz@lifelogs.com> 222012-04-09 Teodor Zlatanov <tzz@lifelogs.com>
15 23
16 * process.c (make_process): 24 * process.c (make_process):
diff --git a/src/Makefile.in b/src/Makefile.in
index 19f586396cb..9525996caea 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -396,7 +396,7 @@ LIBES = $(LIBS) $(LIBX_BASE) $(LIBX_OTHER) $(LIBSOUND) \
396all: emacs$(EXEEXT) $(OTHER_FILES) 396all: emacs$(EXEEXT) $(OTHER_FILES)
397 397
398$(leimdir)/leim-list.el: bootstrap-emacs$(EXEEXT) 398$(leimdir)/leim-list.el: bootstrap-emacs$(EXEEXT)
399 cd $(leimdir) && $(MAKE) $(MFLAGS) leim-list.el BUILT_EMACS=$(bootstrap_exe) 399 cd $(leimdir) && $(MAKE) $(MFLAGS) leim-list.el EMACS=$(bootstrap_exe)
400 400
401## Does anyone ever pay attention to the load-path-shadows output here? 401## Does anyone ever pay attention to the load-path-shadows output here?
402## The dumped Emacs is as functional and more efficient than 402## The dumped Emacs is as functional and more efficient than
diff --git a/src/doc.c b/src/doc.c
index 02db4dde072..9e48a4d49f3 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
@@ -671,15 +671,18 @@ the same file name is found in the `doc-directory'. */)
671 /* Install file-position as variable-documentation property 671 /* Install file-position as variable-documentation property
672 and make it negative for a user-variable 672 and make it negative for a user-variable
673 (doc starts with a `*'). */ 673 (doc starts with a `*'). */
674 Fput (sym, Qvariable_documentation, 674 if (!NILP (Fboundp (sym)))
675 make_number ((pos + end + 1 - buf) 675 Fput (sym, Qvariable_documentation,
676 * (end[1] == '*' ? -1 : 1))); 676 make_number ((pos + end + 1 - buf)
677 * (end[1] == '*' ? -1 : 1)));
677 } 678 }
678 679
679 /* Attach a docstring to a function? */ 680 /* Attach a docstring to a function? */
680 else if (p[1] == 'F') 681 else if (p[1] == 'F')
681 store_function_docstring (sym, pos + end + 1 - buf); 682 {
682 683 if (!NILP (Ffboundp (sym)))
684 store_function_docstring (sym, pos + end + 1 - buf);
685 }
683 else if (p[1] == 'S') 686 else if (p[1] == 'S')
684 ; /* Just a source file name boundary marker. Ignore it. */ 687 ; /* Just a source file name boundary marker. Ignore it. */
685 688