aboutsummaryrefslogtreecommitdiffstats
path: root/src/doc.c
diff options
context:
space:
mode:
authorStefan Monnier2010-06-13 16:36:17 -0400
committerStefan Monnier2010-06-13 16:36:17 -0400
commitb9598260f96ddc652cd82ab64bbe922ccfc48a29 (patch)
tree2a692a8471de07f2578ea481c99971585def8eda /src/doc.c
parenta6e8d97c1414230e577d375c27da78c858a5fa75 (diff)
downloademacs-b9598260f96ddc652cd82ab64bbe922ccfc48a29.tar.gz
emacs-b9598260f96ddc652cd82ab64bbe922ccfc48a29.zip
New branch for lexbind, losing all history.
This initial patch is based on 2002-06-27T22:39:10Z!storm@cua.dk of the original lexbind branch.
Diffstat (limited to 'src/doc.c')
-rw-r--r--src/doc.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/doc.c b/src/doc.c
index 536d22c57a6..9133c2e6b84 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -56,7 +56,7 @@ Lisp_Object Qfunction_documentation;
56/* A list of files used to build this Emacs binary. */ 56/* A list of files used to build this Emacs binary. */
57static Lisp_Object Vbuild_files; 57static Lisp_Object Vbuild_files;
58 58
59extern Lisp_Object Voverriding_local_map; 59extern Lisp_Object Voverriding_local_map, Qclosure;
60 60
61extern Lisp_Object Qremap; 61extern Lisp_Object Qremap;
62 62
@@ -385,6 +385,11 @@ string is passed through `substitute-command-keys'. */)
385 else 385 else
386 return Qnil; 386 return Qnil;
387 } 387 }
388 else if (FUNVECP (fun))
389 {
390 /* Unless otherwise handled, funvecs have no documentation. */
391 return Qnil;
392 }
388 else if (STRINGP (fun) || VECTORP (fun)) 393 else if (STRINGP (fun) || VECTORP (fun))
389 { 394 {
390 return build_string ("Keyboard macro."); 395 return build_string ("Keyboard macro.");
@@ -412,6 +417,8 @@ string is passed through `substitute-command-keys'. */)
412 else 417 else
413 return Qnil; 418 return Qnil;
414 } 419 }
420 else if (EQ (funcar, Qclosure))
421 return Fdocumentation (Fcdr (XCDR (fun)), raw);
415 else if (EQ (funcar, Qmacro)) 422 else if (EQ (funcar, Qmacro))
416 return Fdocumentation (Fcdr (fun), raw); 423 return Fdocumentation (Fcdr (fun), raw);
417 else 424 else
@@ -542,6 +549,8 @@ store_function_docstring (fun, offset)
542 } 549 }
543 else if (EQ (tem, Qmacro)) 550 else if (EQ (tem, Qmacro))
544 store_function_docstring (XCDR (fun), offset); 551 store_function_docstring (XCDR (fun), offset);
552 else if (EQ (tem, Qclosure))
553 store_function_docstring (Fcdr (XCDR (fun)), offset);
545 } 554 }
546 555
547 /* Bytecode objects sometimes have slots for it. */ 556 /* Bytecode objects sometimes have slots for it. */