Bug 1927 - doesn\'t find source for functions if bz2-compressed
Summary: doesn\'t find source for functions if bz2-compressed
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: emacs-common (show other bugs)
Version: unstable
Hardware: all Linux
: P5 minor
Assignee: Ivan Zakharyaschev
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-13 20:57 MSK by imz
Modified: 2005-09-04 21:45 MSD (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description imz 2003-01-13 20:57:41 MSK
Some .el-source files have been bzipped, but Emacs can\'t find such files to show the source. (Gzipped is OK.)

So the support for this has to be added.

---
Having /usr/share/emacs/21.2/lisp/jka-compr.el.bz2,

do in Emacs:

C-h f RET
auto-compression-mode

and tru to follow the link to the source (`jka-compr\'), you\'ll get 

find-function-search-for-symbol: The library `jka-compr\' is not in the path


---
emacs-common-21.2-alt12
emacs-el-21.2-alt12

Comment 1 imz 2003-02-11 02:44:48 MSK
emacs-21.2-alt14: patched to fix this (emacs-21.2-alt14-load-el_bz2.patch):

--- emacs-21.2.orig/lisp/emacs-lisp/find-func.el        2001-07-25 19:04:21 +0400
+++ emacs-21.2/lisp/emacs-lisp/find-func.el     2003-02-10 22:21:06 +0300
@@ -130,7 +130,11 @@
                           (if compression
                               (or (locate-library (concat library \".el.gz\")
                                                   t path)
+                                  (locate-library (concat library \".el.bz2\")
+                                                  t path)
                                   (locate-library (concat library \".gz\")
+                                                  t path)
+                                  (locate-library (concat library \".bz2\")
                                                   t path)))))))
       (if (not filename)
          (error \"The library `%s\' is not in the path\" library))


(There is also a second part of the patch to make loading bzipped2 libs possible.)
Comment 2 imz 2003-02-11 02:44:48 MSK
emacs-21.2-alt14: patched to fix this (emacs-21.2-alt14-load-el_bz2.patch):

--- emacs-21.2.orig/lisp/emacs-lisp/find-func.el        2001-07-25 19:04:21 +0400
+++ emacs-21.2/lisp/emacs-lisp/find-func.el     2003-02-10 22:21:06 +0300
@@ -130,7 +130,11 @@
                           (if compression
                               (or (locate-library (concat library \".el.gz\")
                                                   t path)
+                                  (locate-library (concat library \".el.bz2\")
+                                                  t path)
                                   (locate-library (concat library \".gz\")
+                                                  t path)
+                                  (locate-library (concat library \".bz2\")
                                                   t path)))))))
       (if (not filename)
          (error \"The library `%s\' is not in the path\" library))


(There is also a second part of the patch to make loading bzipped2 libs possible.)