diff options
| author | Dave Love | 1998-08-27 09:21:01 +0000 |
|---|---|---|
| committer | Dave Love | 1998-08-27 09:21:01 +0000 |
| commit | 5134d850aa743a5fd2c2162b5278a56ddca1dc5b (patch) | |
| tree | 622c2ef8f1f1f3ace923c935f1055c15c5298ab5 | |
| parent | e325120d45691198840095a3b0536ef69af3363e (diff) | |
| download | emacs-5134d850aa743a5fd2c2162b5278a56ddca1dc5b.tar.gz emacs-5134d850aa743a5fd2c2162b5278a56ddca1dc5b.zip | |
(find-function-search-for-symbol): Look
for compressed library files too.
| -rw-r--r-- | lisp/emacs-lisp/find-func.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el index 53e06d590ff..4adf67346a7 100644 --- a/lisp/emacs-lisp/find-func.el +++ b/lisp/emacs-lisp/find-func.el | |||
| @@ -111,6 +111,8 @@ If VARIABLE-P is nil, `find-function-regexp' is used, otherwise | |||
| 111 | (if (string-match "\\.el\\(c\\)\\'" library) | 111 | (if (string-match "\\.el\\(c\\)\\'" library) |
| 112 | (setq library (substring library 0 (match-beginning 1)))) | 112 | (setq library (substring library 0 (match-beginning 1)))) |
| 113 | (let* ((path find-function-source-path) | 113 | (let* ((path find-function-source-path) |
| 114 | (compression (or (rassq 'jka-compr-handler file-name-handler-alist) | ||
| 115 | (member 'crypt-find-file-hook find-file-hooks))) | ||
| 114 | (filename (if (and (file-exists-p library) | 116 | (filename (if (and (file-exists-p library) |
| 115 | (not (file-directory-p library))) | 117 | (not (file-directory-p library))) |
| 116 | library | 118 | library |
| @@ -119,7 +121,12 @@ If VARIABLE-P is nil, `find-function-regexp' is used, otherwise | |||
| 119 | (setq library (substring library 0 | 121 | (setq library (substring library 0 |
| 120 | (match-beginning 1)))) | 122 | (match-beginning 1)))) |
| 121 | (or (locate-library (concat library ".el") t path) | 123 | (or (locate-library (concat library ".el") t path) |
| 122 | (locate-library library t path))))) | 124 | (locate-library library t path) |
| 125 | (if compression | ||
| 126 | (or (locate-library (concat library ".el.gz") | ||
| 127 | t path) | ||
| 128 | (locate-library (concat library ".gz") | ||
| 129 | t path))))))) | ||
| 123 | (if (not filename) | 130 | (if (not filename) |
| 124 | (error "The library \"%s\" is not in the path." library)) | 131 | (error "The library \"%s\" is not in the path." library)) |
| 125 | (with-current-buffer (find-file-noselect filename) | 132 | (with-current-buffer (find-file-noselect filename) |