aboutsummaryrefslogtreecommitdiffstats
path: root/src/doc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc.c')
-rw-r--r--src/doc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/doc.c b/src/doc.c
index 3b335127a75..f491661a616 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -693,15 +693,17 @@ the same file name is found in the `doc-directory'. */)
693 if (fromfile[len-1] == 'c') 693 if (fromfile[len-1] == 'c')
694 fromfile[len-1] = 'o'; 694 fromfile[len-1] = 'o';
695 695
696 if (EQ (Fmember (build_string (fromfile), Vbuild_files), Qnil)) 696 skip_file = NILP (Fmember (build_string (fromfile),
697 skip_file = 1; 697 Vbuild_files));
698 else
699 skip_file = 0;
700 } 698 }
701 699
702 sym = oblookup (Vobarray, p + 2, 700 sym = oblookup (Vobarray, p + 2,
703 multibyte_chars_in_text (p + 2, end - p - 2), 701 multibyte_chars_in_text (p + 2, end - p - 2),
704 end - p - 2); 702 end - p - 2);
703 /* Check skip_file so that when a function is defined several
704 times in different files (typically, once in xterm, once in
705 w32term, ...), we only pay attention to the one that
706 matters. */
705 if (! skip_file && SYMBOLP (sym)) 707 if (! skip_file && SYMBOLP (sym))
706 { 708 {
707 /* Attach a docstring to a variable? */ 709 /* Attach a docstring to a variable? */