Prefer /usr/share/info/emacs-MAJORVERSION
authorRob Browning <rlb@defaultvalue.org>
Sun, 7 Apr 2013 20:03:05 +0000 (15:03 -0500)
committerRob Browning <rlb@defaultvalue.org>
Tue, 1 Aug 2017 04:34:05 +0000 (05:34 +0100)
Emacs prefers /usr/share/info/emacs-MAJORVERSION to /usr/share/info.

The value of Info-default-directory-list has been augmented via
lisp/info.el to include /usr/share/info/emacs-MAJORVERSION before
/usr/share/info.

Gbp-Pq: Name 0001-Prefer-usr-share-info-emacs-MAJORVERSION.patch

lisp/info.el

index 40b2f90ebd642de84a612a5192aece8cc335c8c4..63402780d424d2c1d4537af052ab5b1b92e99574 100644 (file)
@@ -218,7 +218,8 @@ A header-line does not scroll with the rest of the buffer."
              (nconc standard-info-dirs (list config-dir))
            (cons config-dir standard-info-dirs))))
     (if (not (eq system-type 'windows-nt))
-       dirs
+        ;; Debian: add per-flavor info directory in front.
+        (cons (format "/usr/share/info/emacs-%d" emacs-major-version) dirs)
       ;; Include the info directory near where Emacs executable was installed.
       (let* ((instdir (file-name-directory invocation-directory))
             (dir1 (expand-file-name "../info/" instdir))