]> code.delx.au - gnu-emacs-elpa/commitdiff
Set next-error-function in major mode, too
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 30 Apr 2012 06:20:27 +0000 (10:20 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 30 Apr 2012 06:20:27 +0000 (10:20 +0400)
js2-mode.el

index 612f447efda78fd95490c809920c03456216c9cc..1f8634b73ca39ef3b94a47851d0dce1382517c53 100644 (file)
@@ -10230,6 +10230,7 @@ highlighting features of `js2-mode'."
   (add-hook 'change-major-mode-hook #'js2-mode-exit nil t)
   (add-hook 'after-change-functions #'js2-mode-edit nil t)
   (setq imenu-create-index-function #'js2-mode-create-imenu-index)
+  (setq next-error-function #'js2-next-error)
   (imenu-add-to-menubar (concat "IM-" mode-name))
   (add-to-invisibility-spec '(js2-outline . t))
   (set (make-local-variable 'line-move-ignore-invisible) t)
@@ -10252,6 +10253,7 @@ highlighting features of `js2-mode'."
     (delete-overlay js2-mode-node-overlay)
     (setq js2-mode-node-overlay nil))
   (js2-remove-overlays)
+  (setq next-error-function nil)
   (setq js2-mode-ast nil)
   (remove-hook 'change-major-mode-hook #'js2-mode-exit t)
   (remove-from-invisibility-spec '(js2-outline . t))