aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorJoakim Verona2013-01-05 00:04:41 +0100
committerJoakim Verona2013-01-05 00:04:41 +0100
commitb18e01b65e651d3b626b4edcaaa2aa636fe25b69 (patch)
tree2832e227a4c45d3a4d423f972df29fb7f8616b14 /lisp/progmodes
parent55b74b54b179f340bdb311070273f26da3fbd0c9 (diff)
parent1bd71e9fe16541bc48868a00ff372018961380b0 (diff)
downloademacs-b18e01b65e651d3b626b4edcaaa2aa636fe25b69.tar.gz
emacs-b18e01b65e651d3b626b4edcaaa2aa636fe25b69.zip
auto upstream
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/etags.el11
1 files changed, 4 insertions, 7 deletions
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index 0dfc7f27a9c..81dc31792c3 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -67,11 +67,8 @@ Use the `etags' program to make a tags table file."
67;;;###autoload 67;;;###autoload
68(defcustom tags-compression-info-list 68(defcustom tags-compression-info-list
69 (purecopy '("" ".Z" ".bz2" ".gz" ".xz" ".tgz")) 69 (purecopy '("" ".Z" ".bz2" ".gz" ".xz" ".tgz"))
70 "List of extensions tried by etags when jka-compr is used. 70 "List of extensions tried by etags when `auto-compression-mode' is on.
71An empty string means search the non-compressed file. 71An empty string means search the non-compressed file."
72These extensions will be tried only if jka-compr was activated
73\(i.e. via customize of `auto-compression-mode' or by calling the function
74`auto-compression-mode')."
75 :version "24.1" ; added xz 72 :version "24.1" ; added xz
76 :type '(repeat string) 73 :type '(repeat string)
77 :group 'etags) 74 :group 'etags)
@@ -1182,7 +1179,7 @@ error message."
1182 "Find the right line in the specified FILE." 1179 "Find the right line in the specified FILE."
1183 ;; If interested in compressed-files, search files with extensions. 1180 ;; If interested in compressed-files, search files with extensions.
1184 ;; Otherwise, search only the real file. 1181 ;; Otherwise, search only the real file.
1185 (let* ((buffer-search-extensions (if (featurep 'jka-compr) 1182 (let* ((buffer-search-extensions (if auto-compression-mode
1186 tags-compression-info-list 1183 tags-compression-info-list
1187 '(""))) 1184 '("")))
1188 the-buffer 1185 the-buffer
@@ -1206,7 +1203,7 @@ error message."
1206 (setq file-search-extensions (cdr file-search-extensions)) 1203 (setq file-search-extensions (cdr file-search-extensions))
1207 (setq the-buffer (find-file-noselect (concat file (car file-search-extensions)))))) 1204 (setq the-buffer (find-file-noselect (concat file (car file-search-extensions))))))
1208 (if (not the-buffer) 1205 (if (not the-buffer)
1209 (if (featurep 'jka-compr) 1206 (if auto-compression-mode
1210 (error "File %s (with or without extensions %s) not found" file tags-compression-info-list) 1207 (error "File %s (with or without extensions %s) not found" file tags-compression-info-list)
1211 (error "File %s not found" file)) 1208 (error "File %s not found" file))
1212 (set-buffer the-buffer)))) 1209 (set-buffer the-buffer))))