Mail Archives: djgpp/1997/08/10/13:33:20
Nate Eldredge <eldredge AT ap DOT net> writes:
>
> Are there any plans to have Emacs be able to read gzipped info files, like
> info can? The Unix version of Emacs does this.
>
Try using jka-compr package, it works for me.
The following may be complicated a little, because I have DJGPP emacs
and NT emacs share lisp and info files.
My setup:
Win95, LFN=y
info files are not split (makeinfo --no-split), gzipped, have suffix .gz only
info topics referred from `dir' file with the following:
..
gcc: (gcc). The GNU C compiler.
.. ^ No suffix here (maybe explicit `.gz' will work also).
***** _emacs *****
;;; Info (a lot of suffixes to work both in DJGPP and NT emacsens).
(setq Info-fontify-maximum-menu-size 65536
Info-suffix-list '((".info.gz" . "gunzip")
(".info.z" . "gunzip")
(".info" . nil)
(".inf.gz" . "gunzip")
(".inf.z" . "gunzip")
(".inf" . nil)
(".gz" . "gunzip")
(".z" . "gunzip")
("" . nil)))
;;; Jka-compr (for reading info and visiting compressed files).
(load "jka-compr")
(setq jka-compr-temp-name-template (concat (getenv "TMPDIR") "jka-com"))
(if (eq window-system 'win32)
(progn
(setq jka-compr-use-shell nil)
(setq jka-compr-compression-info-list
(append
'(["\\.Z\\(~\\|\\.~[0-9]+~\\)?\\'"
"compressing" "wingzip" ("-c" "-q")
"uncompressing" "wingzip" ("-c" "-q" "-d")
nil t]
["\\.tgz\\'"
"zipping" "wingzip" ("-c" "-q")
"unzipping" "wingzip" ("-c" "-q" "-d")
t nil]
["\\.gz\\(~\\|\\.~[0-9]+~\\)?\\'"
"zipping" "wingzip" ("-c" "-q")
"unzipping" "wingzip" ("-c" "-q" "-d")
t t])
jka-compr-compression-info-list))))
***** /_emacs *****
The last `(if (eq window-system 'win32...' is for NT emacs and can be
deleted if this will be used only for djgpp emacs.
For NT emacs make TMPDIR point to something meaningful (e.g. with regedit).
There maybe some subtleties which I don't remember right now, so
ask me if something is not clear/not working as expected.
HTH.
- Raw text -