]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix compilation warning in viper-exp involving tags
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 20 Jun 2019 12:02:22 +0000 (14:02 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 20 Jun 2019 12:02:22 +0000 (14:02 +0200)
* lisp/emulation/viper-ex.el (ex-tag): Use xref/next-error instead
of the deprecated tags functions.

lisp/emulation/viper-ex.el

index f64960dd75374c9ac903558bdb384b13d7193237..26bca686cb35a137455b0e56a6ab2c19df784a08 100644 (file)
@@ -2013,8 +2013,10 @@ Please contact your system administrator. "))))))
     (condition-case conds
        (progn
          (if (string= tag "")
-             (find-tag ex-tag t)
-           (find-tag-other-window ex-tag))
+              ;; If we have an *xref* window, `next-error' will take
+              ;; us to the next definition.
+             (next-error)
+           (xref-find-definitions-other-window ex-tag))
          (viper-change-state-to-vi))
       (error
        (viper-change-state-to-vi)