diff options
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? */ |