diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-10-18 05:25:40 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-10-18 05:25:40 +0000 |
commit | 1c6229c99db27d66b5be8e45fc3ae96f436fec25 (patch) | |
tree | dbf0d5eda457fe52509b8d226049512695241dd8 /lisp | |
parent | 91a31cb7567f864cae5e9bbdefe6fb38dcd2a2ca (diff) | |
download | emacs-1c6229c99db27d66b5be8e45fc3ae96f436fec25.tar.gz |
(info-insert-file-contents): Always check for conflict with jka-compr.
(Info-find-node): Don't search on Info-directory-list if the
file name is absolute.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/info.el | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/lisp/info.el b/lisp/info.el index c4bc2c0a4ff..54b554719b5 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -153,14 +153,13 @@ Do the right thing if the file has been compressed or zipped." (setq tail (cdr tail))) (setq fullname (concat filename (car (car tail))) decoder (cdr (car tail))) - ;; check for conflict with jka-compr - (if (and (featurep 'jka-compr) - (jka-compr-installed-p) - (jka-compr-get-compression-info (concat filename - (car (car tail))))) - (setq decoder nil)) (or tail (error "Can't find %s or any compressed version of it!" filename))) + ;; check for conflict with jka-compr + (if (and (featurep 'jka-compr) + (jka-compr-installed-p) + (jka-compr-get-compression-info fullname)) + (setq decoder nil)) (insert-file-contents fullname visit) (if decoder (let ((buffer-read-only nil)) @@ -215,10 +214,14 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself." ;; If specified name starts with `./' ;; then just try current directory. '("./") - (if Info-additional-directory-list - (append Info-directory-list - Info-additional-directory-list) - Info-directory-list)))) + (if (file-name-absolute-p filename) + ;; No point in searching for an + ;; absolute file name + '(nil) + (if Info-additional-directory-list + (append Info-directory-list + Info-additional-directory-list) + Info-directory-list))))) ;; Search the directory list for file FILENAME. (while (and dirs (not found)) (setq temp (expand-file-name filename (car dirs))) |