aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-10-18 05:25:40 +0000
committerRichard M. Stallman1994-10-18 05:25:40 +0000
commite175bda252b8395d6c915eb0c68bbb05a1462981 (patch)
tree7b004010581780e3f8ef09075049993071f8c2b5
parentb6c96aa028af0d38e95ca805b798ed642577e20c (diff)
downloademacs-e175bda252b8395d6c915eb0c68bbb05a1462981.tar.gz
emacs-e175bda252b8395d6c915eb0c68bbb05a1462981.zip
(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.
-rw-r--r--lisp/info.el23
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."
153 (setq tail (cdr tail))) 153 (setq tail (cdr tail)))
154 (setq fullname (concat filename (car (car tail))) 154 (setq fullname (concat filename (car (car tail)))
155 decoder (cdr (car tail))) 155 decoder (cdr (car tail)))
156 ;; check for conflict with jka-compr
157 (if (and (featurep 'jka-compr)
158 (jka-compr-installed-p)
159 (jka-compr-get-compression-info (concat filename
160 (car (car tail)))))
161 (setq decoder nil))
162 (or tail 156 (or tail
163 (error "Can't find %s or any compressed version of it!" filename))) 157 (error "Can't find %s or any compressed version of it!" filename)))
158 ;; check for conflict with jka-compr
159 (if (and (featurep 'jka-compr)
160 (jka-compr-installed-p)
161 (jka-compr-get-compression-info fullname))
162 (setq decoder nil))
164 (insert-file-contents fullname visit) 163 (insert-file-contents fullname visit)
165 (if decoder 164 (if decoder
166 (let ((buffer-read-only nil)) 165 (let ((buffer-read-only nil))
@@ -215,10 +214,14 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself."
215 ;; If specified name starts with `./' 214 ;; If specified name starts with `./'
216 ;; then just try current directory. 215 ;; then just try current directory.
217 '("./") 216 '("./")
218 (if Info-additional-directory-list 217 (if (file-name-absolute-p filename)
219 (append Info-directory-list 218 ;; No point in searching for an
220 Info-additional-directory-list) 219 ;; absolute file name
221 Info-directory-list)))) 220 '(nil)
221 (if Info-additional-directory-list
222 (append Info-directory-list
223 Info-additional-directory-list)
224 Info-directory-list)))))
222 ;; Search the directory list for file FILENAME. 225 ;; Search the directory list for file FILENAME.
223 (while (and dirs (not found)) 226 (while (and dirs (not found))
224 (setq temp (expand-file-name filename (car dirs))) 227 (setq temp (expand-file-name filename (car dirs)))