]> git.eshelyaron.com Git - emacs.git/commitdiff
Load documentation at startup.
authorKen Raeburn <raeburn@raeburn.org>
Wed, 8 Feb 2017 09:42:00 +0000 (04:42 -0500)
committerKen Raeburn <raeburn@raeburn.org>
Sat, 22 Jul 2017 08:36:21 +0000 (04:36 -0400)
Documentation pointers for Lisp subrs are currently only loadable via
Snarf-documentation.

* lisp/loadup.el: Make dumped.elc attempt to reload the DOC file.
Warn but continue if it fails.

lisp/loadup.el

index 188446ab129712ddde79fd8167b5961dbd786256..956ee790bea54916c2fa27c603937cefe339450d 100644 (file)
@@ -634,6 +634,13 @@ lost after dumping")))
             (terpri)
             (print '(load "international/characters" nil t))
             (terpri)
+            ;; Lisp functions have their DOC file offsets stored
+            ;; already, but for a subr it's hidden away from Lisp.
+            (print '(condition-case nil
+                        (Snarf-documentation "DOC")
+                      (file-missing
+                       (message "Couldn't load DOC file"))))
+            (terpri)
             (print `(dolist (cs ',coding-system-aliases)
                       (define-coding-system-alias (car cs) (cdr cs))))
             (terpri)