emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r107144: * doc.c (store_function_docs


From: Chong Yidong
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r107144: * doc.c (store_function_docstring): Fix last change.
Date: Tue, 07 Feb 2012 00:53:51 +0800
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 107144
committer: Chong Yidong <address@hidden>
branch nick: trunk
timestamp: Tue 2012-02-07 00:53:51 +0800
message:
  * doc.c (store_function_docstring): Fix last change.
modified:
  src/doc.c
=== modified file 'src/doc.c'
--- a/src/doc.c 2012-02-06 13:43:39 +0000
+++ b/src/doc.c 2012-02-06 16:53:51 +0000
@@ -502,12 +502,12 @@
 /* Scanning the DOC files and placing docstring offsets into functions.  */
 
 static void
-store_function_docstring (Lisp_Object sym, EMACS_INT offset)
+store_function_docstring (Lisp_Object obj, EMACS_INT offset)
 /* Use EMACS_INT because we get offset from pointer subtraction.  */
 {
   /* Don't use indirect_function here, or defaliases will apply their
      docstrings to the base functions (Bug#2603).  */
-  Lisp_Object fun = XSYMBOL (sym)->function;
+  Lisp_Object fun = SYMBOLP (obj) ? XSYMBOL (obj)->function : obj;
 
   /* The type determines where the docstring is stored.  */
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]