summaryrefslogtreecommitdiff
path: root/src/doc.c
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2007-10-16 03:28:43 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2007-10-16 03:28:43 +0000
commitd56d0af18fe702605306cbccff3439f06d1a05b9 (patch)
tree40ba74bef596144c62c6844ec0b9684821d54d9f /src/doc.c
parentb941dbae674300292f10545655a164436d0f7bf5 (diff)
downloademacs-d56d0af18fe702605306cbccff3439f06d1a05b9.tar.gz
(Fsnarf_documentation): Simplify.
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 25f6625d404..4cd43f0ae90 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -691,15 +691,17 @@ the same file name is found in the `doc-directory'. */)
if (fromfile[len-1] == 'c')
fromfile[len-1] = 'o';
- if (EQ (Fmember (build_string (fromfile), Vbuild_files), Qnil))
- skip_file = 1;
- else
- skip_file = 0;
+ skip_file = NILP (Fmember (build_string (fromfile),
+ Vbuild_files));
}
sym = oblookup (Vobarray, p + 2,
multibyte_chars_in_text (p + 2, end - p - 2),
end - p - 2);
+ /* Check skip_file so that when a function is defined several
+ times in different files (typically, once in xterm, once in
+ w32term, ...), we only pay attention to the one that
+ matters. */
if (! skip_file && SYMBOLP (sym))
{
/* Attach a docstring to a variable? */