]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix a byte compilation warning on Emacs 25
authorPhilipp Stephani <phst@google.com>
Fri, 8 Apr 2016 14:02:13 +0000 (16:02 +0200)
committerPhilipp Stephani <phst@google.com>
Sat, 9 Apr 2016 18:09:55 +0000 (20:09 +0200)
js2-mode.el

index c999e481aa47709b57e54e5987b219d82df6133d..292af25f4740ac088dec0cb8111d570573c23154 100644 (file)
@@ -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))