aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2002-04-03 16:28:30 +0000
committerStefan Monnier2002-04-03 16:28:30 +0000
commit68d8a8e1fbc63972f4bebb85b5e8b2fc16d6a7a0 (patch)
tree38d07674d56db54742caeace51fe919c9dee2d9c /src
parentda00bb1869a64acd51ba73c206e4aa6d5e8adf4a (diff)
downloademacs-68d8a8e1fbc63972f4bebb85b5e8b2fc16d6a7a0.tar.gz
emacs-68d8a8e1fbc63972f4bebb85b5e8b2fc16d6a7a0.zip
(Fdocumentation, Fdocumentation_property): When the doc
data is 0, just return nil.
Diffstat (limited to 'src')
-rw-r--r--src/doc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/doc.c b/src/doc.c
index 7b24db76668..6a64e79f740 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -441,7 +441,9 @@ string is passed through `substitute-command-keys'. */)
441 441
442 /* If DOC is 0, it's typically because of a dumped file missing 442 /* If DOC is 0, it's typically because of a dumped file missing
443 from the DOC file (bug in src/Makefile.in). */ 443 from the DOC file (bug in src/Makefile.in). */
444 if (INTEGERP (doc) && !EQ (tem, make_number (0)) || CONSP (doc)) 444 if (EQ (tem, make_number (0))
445 tem = Qnil;
446 if (INTEGERP (doc) || CONSP (doc))
445 { 447 {
446 Lisp_Object tem; 448 Lisp_Object tem;
447 tem = get_doc_string (doc, 0, 0); 449 tem = get_doc_string (doc, 0, 0);
@@ -485,8 +487,9 @@ aren't strings. */)
485 documentation_property: 487 documentation_property:
486 488
487 tem = Fget (symbol, prop); 489 tem = Fget (symbol, prop);
488 if (INTEGERP (tem) && !EQ (tem, make_number (0)) 490 if (EQ (tem, make_number (0))
489 || (CONSP (tem) && INTEGERP (XCDR (tem)))) 491 tem = Qnil;
492 if (INTEGERP (tem) || (CONSP (tem) && INTEGERP (XCDR (tem))))
490 { 493 {
491 Lisp_Object doc = tem; 494 Lisp_Object doc = tem;
492 tem = get_doc_string (tem, 0, 0); 495 tem = get_doc_string (tem, 0, 0);