* lisp/progmodes/etags.el (etags-list-tags): Only use tags which goto-func
authorLiang Wang <netcasper@gmail.com>
Thu, 22 Mar 2012 14:46:05 +0000 (10:46 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 22 Mar 2012 14:46:05 +0000 (10:46 -0400)
understands.

Fixes: debbugs:9942

lisp/ChangeLog
lisp/progmodes/etags.el

index f844f3f..8ac8b4d 100644 (file)
@@ -1,3 +1,8 @@
+2012-03-22  Liang Wang  <netcasper@gmail.com>  (tiny change)
+
+       * progmodes/etags.el (etags-list-tags): Only use tags which goto-func
+       understands (bug#9942).
+
 2012-03-22  Chong Yidong  <cyd@gnu.org>
 
        * simple.el (end-of-visible-line): Handle return value of
index 4b337e1..6bb8673 100644 (file)
@@ -1410,7 +1410,9 @@ hits the start of file."
          tag tag-info pt)
     (forward-line 1)
     (while (not (or (eobp) (looking-at "\f")))
-      (setq tag-info (save-excursion (funcall snarf-tag-function t))
+      ;; We used to use explicit tags when available, but the current goto-func
+      ;; can only handle implicit tags.
+      (setq tag-info (save-excursion (funcall snarf-tag-function nil))
            tag (car tag-info)
            pt (with-current-buffer standard-output (point)))
       (princ tag)