emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master e265b69 090/110: Fix a byte compilation warning on Emacs 2


From: Dmitry Gutov
Subject: [elpa] master e265b69 090/110: Fix a byte compilation warning on Emacs 25
Date: Thu, 23 Jun 2016 01:13:02 +0000 (UTC)

branch: master
commit e265b693872bca5f8cf50c9c93a0301b0de48763
Author: Philipp Stephani <address@hidden>
Commit: Philipp Stephani <address@hidden>

    Fix a byte compilation warning on Emacs 25
---
 js2-mode.el |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/js2-mode.el b/js2-mode.el
index c999e48..292af25 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -12569,7 +12569,9 @@ it marks the next defun after the ones already marked."
 (defun js2-jump-to-definition (&optional arg)
   "Jump to the definition of an object's property, variable or function."
   (interactive "P")
-  (ring-insert find-tag-marker-ring (point-marker))
+  (if (eval-when-compile (fboundp 'xref-push-marker-stack))
+      (xref-push-marker-stack)
+    (ring-insert find-tag-marker-ring (point-marker)))
   (js2-reparse)
   (let* ((node (js2-node-at-point))
          (parent (js2-node-parent node))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]