Mercurial > emacs
diff src/doc.c @ 85324:228a7fde2f4a
(Fsnarf_documentation): Simplify.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Tue, 16 Oct 2007 03:28:43 +0000 |
parents | b98604865ea0 |
children | 9864261d519a 1251cabc40b7 |
line wrap: on
line diff
--- a/src/doc.c Tue Oct 16 02:41:08 2007 +0000 +++ b/src/doc.c Tue Oct 16 03:28:43 2007 +0000 @@ -691,15 +691,17 @@ 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? */