diff options
| author | Stefan Monnier | 2007-10-16 03:28:43 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-10-16 03:28:43 +0000 |
| commit | 11fb4bdbbdab3e17e020d9ed4a6c754cdfb89167 (patch) | |
| tree | c241214bf872295820a0e7f0096dce08655b04da /src/doc.c | |
| parent | bf825c621d0239098ae36834af0cd5b0b513d6a9 (diff) | |
| download | emacs-11fb4bdbbdab3e17e020d9ed4a6c754cdfb89167.tar.gz emacs-11fb4bdbbdab3e17e020d9ed4a6c754cdfb89167.zip | |
(Fsnarf_documentation): Simplify.
Diffstat (limited to 'src/doc.c')
| -rw-r--r-- | src/doc.c | 10 |
1 files changed, 6 insertions, 4 deletions
| @@ -691,15 +691,17 @@ the same file name is found in the `doc-directory'. */) | |||
| 691 | if (fromfile[len-1] == 'c') | 691 | if (fromfile[len-1] == 'c') |
| 692 | fromfile[len-1] = 'o'; | 692 | fromfile[len-1] = 'o'; |
| 693 | 693 | ||
| 694 | if (EQ (Fmember (build_string (fromfile), Vbuild_files), Qnil)) | 694 | skip_file = NILP (Fmember (build_string (fromfile), |
| 695 | skip_file = 1; | 695 | Vbuild_files)); |
| 696 | else | ||
| 697 | skip_file = 0; | ||
| 698 | } | 696 | } |
| 699 | 697 | ||
| 700 | sym = oblookup (Vobarray, p + 2, | 698 | sym = oblookup (Vobarray, p + 2, |
| 701 | multibyte_chars_in_text (p + 2, end - p - 2), | 699 | multibyte_chars_in_text (p + 2, end - p - 2), |
| 702 | end - p - 2); | 700 | end - p - 2); |
| 701 | /* Check skip_file so that when a function is defined several | ||
| 702 | times in different files (typically, once in xterm, once in | ||
| 703 | w32term, ...), we only pay attention to the one that | ||
| 704 | matters. */ | ||
| 703 | if (! skip_file && SYMBOLP (sym)) | 705 | if (! skip_file && SYMBOLP (sym)) |
| 704 | { | 706 | { |
| 705 | /* Attach a docstring to a variable? */ | 707 | /* Attach a docstring to a variable? */ |