aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-09-15 19:48:11 +0000
committerRichard M. Stallman1997-09-15 19:48:11 +0000
commit3c19e6c145edd5dbb44b58e9452d475bc5765382 (patch)
treef4812160f0bd5cb3089df2cc90271ffa7fb5688d
parent1838eb6cd69542b62e8c2e8f725e4e6ba2efe041 (diff)
downloademacs-3c19e6c145edd5dbb44b58e9452d475bc5765382.tar.gz
emacs-3c19e6c145edd5dbb44b58e9452d475bc5765382.zip
(Info-suffix-list): Add suffixes for MS-DOS version
running on Windows 95 with long file name support. (info-insert-file-contents): When the Info file is to be uncompressed, insert it literally.
-rw-r--r--lisp/info.el27
1 files changed, 21 insertions, 6 deletions
diff --git a/lisp/info.el b/lisp/info.el
index a52c76273d5..aed3e425bae 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -161,10 +161,23 @@ Marker points nowhere if file has no tag table.")
161 "Non-nil if Emacs was started solely as an Info browser.") 161 "Non-nil if Emacs was started solely as an Info browser.")
162 162
163(defvar Info-suffix-list 163(defvar Info-suffix-list
164 ;; The MS-DOS list should work both when long file names are
165 ;; supported (Windows 9X), and when only 8+3 file names are available.
164 (if (eq system-type 'ms-dos) 166 (if (eq system-type 'ms-dos)
165 '( (".gz" . "gunzip") 167 '( (".gz" . "gunzip")
166 (".z" . "gunzip") 168 (".z" . "gunzip")
169 (".inz" . "gunzip")
170 (".igz" . "gunzip")
171 (".info.Z" . "gunzip")
172 (".info.gz" . "gunzip")
173 ("-info.Z" . "gunzip")
174 ("-info.gz" . "gunzip")
175 ("/index.gz". "gunzip")
176 ("/index.z" . "gunzip")
167 (".inf" . nil) 177 (".inf" . nil)
178 (".info" . nil)
179 ("-info" . nil)
180 ("/index" . nil)
168 ("" . nil)) 181 ("" . nil))
169 '( (".info.Z". "uncompress") 182 '( (".info.Z". "uncompress")
170 (".info.Y". "unyabba") 183 (".info.Y". "unyabba")
@@ -247,13 +260,15 @@ Do the right thing if the file has been compressed or zipped."
247 (jka-compr-installed-p) 260 (jka-compr-installed-p)
248 (jka-compr-get-compression-info fullname)) 261 (jka-compr-get-compression-info fullname))
249 (setq decoder nil)) 262 (setq decoder nil))
250 (insert-file-contents fullname visit)
251 (if decoder 263 (if decoder
252 (let ((buffer-read-only nil) 264 (progn
253 (coding-system-for-write 'no-conversion) 265 (insert-file-contents-literally fullname visit)
254 (default-directory (or (file-name-directory fullname) 266 (let ((buffer-read-only nil)
255 default-directory))) 267 (coding-system-for-write 'no-conversion)
256 (call-process-region (point-min) (point-max) decoder t t))))) 268 (default-directory (or (file-name-directory fullname)
269 default-directory)))
270 (call-process-region (point-min) (point-max) decoder t t)))
271 (insert-file-contents fullname visit))))
257 272
258;;;###autoload (add-hook 'same-window-buffer-names "*info*") 273;;;###autoload (add-hook 'same-window-buffer-names "*info*")
259 274