[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 2c5a3f4 1/2: Fix compilation warning in viper-exp i
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master 2c5a3f4 1/2: Fix compilation warning in viper-exp involving tags |
Date: |
Thu, 20 Jun 2019 08:06:05 -0400 (EDT) |
branch: master
commit 2c5a3f413b7477544ba8f5b18ed233ea6ab6f2aa
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Fix compilation warning in viper-exp involving tags
* lisp/emulation/viper-ex.el (ex-tag): Use xref/next-error instead
of the deprecated tags functions.
---
lisp/emulation/viper-ex.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lisp/emulation/viper-ex.el b/lisp/emulation/viper-ex.el
index f64960d..26bca68 100644
--- a/lisp/emulation/viper-ex.el
+++ b/lisp/emulation/viper-ex.el
@@ -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)