all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] Snarf-documentation was working by accident
@ 2010-08-13  9:02 Daniel Colascione
  2010-08-13 10:35 ` Jan Djärv
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Colascione @ 2010-08-13  9:02 UTC (permalink / raw)
  To: Emacs-devel

etc/DOC contains documentation for two kinds of symbol:

1) symbols in C
2) symbols in preloaded lisp

There's a test that makes sure a C file is used in a particular build of
Emacs before including its documentation. This test sets a flag if the
file is unused, and if this flag is set, we don't load any more
documentation until we see another file. Scenario 2 neither set nor
tested this flag, so it just used whatever value the flag happened to
have for the last C file; if the last C file happened to not be included
in this build of Emacs, the documentation for the Lisp file was never
loaded.

The effect was that documentation would mysteriously go missing. This
patch always includes documentation for Lisp files.

(Also, is all this lazy loading complexity really needed? etc/DOC is
only 2.3MB here.)

Load documentation from DOC
Index: emacs-23.2/src/doc.c
===================================================================
--- emacs-23.2.orig/src/doc.c
+++ emacs-23.2/src/doc.c
@@ -659,6 +659,12 @@ the same file name is found in the `doc-
 	      skip_file = NILP (Fmember (build_string (fromfile),
 					 Vbuild_files));
             }
+          else if(p[1] == 'S')
+            {
+              /* File is compiled lisp and its docstrings should
+                 always be included */
+              skip_file = 0;
+            }

 	  sym = oblookup (Vobarray, p + 2,
 			  multibyte_chars_in_text (p + 2, end - p - 2),



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-14  6:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-13  9:02 [PATCH] Snarf-documentation was working by accident Daniel Colascione
2010-08-13 10:35 ` Jan Djärv
2010-08-13 16:31   ` Daniel Colascione
2010-08-14  6:47     ` Jan Djärv

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.