aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiang Wang2012-03-22 10:46:05 -0400
committerStefan Monnier2012-03-22 10:46:05 -0400
commit126f3d39bba8e2f1e30dfb63fff45de541a9d46f (patch)
tree97df8944815550cdc6cfd3095da4f926ee1fe4b5
parent64fee3118aed82c404193c6ef23aad65bc5994a9 (diff)
downloademacs-126f3d39bba8e2f1e30dfb63fff45de541a9d46f.tar.gz
emacs-126f3d39bba8e2f1e30dfb63fff45de541a9d46f.zip
* lisp/progmodes/etags.el (etags-list-tags): Only use tags which goto-func
understands. Fixes: debbugs:9942
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/etags.el4
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f844f3f8f32..8ac8b4d94b6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12012-03-22 Liang Wang <netcasper@gmail.com> (tiny change)
2
3 * progmodes/etags.el (etags-list-tags): Only use tags which goto-func
4 understands (bug#9942).
5
12012-03-22 Chong Yidong <cyd@gnu.org> 62012-03-22 Chong Yidong <cyd@gnu.org>
2 7
3 * simple.el (end-of-visible-line): Handle return value of 8 * simple.el (end-of-visible-line): Handle return value of
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index 4b337e1c15c..6bb86738df0 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -1410,7 +1410,9 @@ hits the start of file."
1410 tag tag-info pt) 1410 tag tag-info pt)
1411 (forward-line 1) 1411 (forward-line 1)
1412 (while (not (or (eobp) (looking-at "\f"))) 1412 (while (not (or (eobp) (looking-at "\f")))
1413 (setq tag-info (save-excursion (funcall snarf-tag-function t)) 1413 ;; We used to use explicit tags when available, but the current goto-func
1414 ;; can only handle implicit tags.
1415 (setq tag-info (save-excursion (funcall snarf-tag-function nil))
1414 tag (car tag-info) 1416 tag (car tag-info)
1415 pt (with-current-buffer standard-output (point))) 1417 pt (with-current-buffer standard-output (point)))
1416 (princ tag) 1418 (princ tag)