From 11fb4bdbbdab3e17e020d9ed4a6c754cdfb89167 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 16 Oct 2007 03:28:43 +0000 Subject: [PATCH] (Fsnarf_documentation): Simplify. --- src/ChangeLog | 4 ++++ src/doc.c | 10 ++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 4ba46df0f23..bed9166f9f0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2007-10-16 Stefan Monnier + + * doc.c (Fsnarf_documentation): Simplify. + 2007-10-14 Juanma Barranquero * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static. 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? */ -- 2.39.2