]> code.delx.au - gnu-emacs/commitdiff
Merge from origin/emacs-25
authorJohn Wiegley <johnw@newartisans.com>
Fri, 4 Mar 2016 07:53:26 +0000 (23:53 -0800)
committerJohn Wiegley <johnw@newartisans.com>
Fri, 4 Mar 2016 07:53:26 +0000 (23:53 -0800)
aae436e Uncomment the next-error-function integration in xref
5f0d096 Remove the word "valid", to avoid ambiguity

doc/emacs/maintaining.texi
lisp/progmodes/xref.el

index 72d428af8fbf3fa9187182832134496131f04df8..e81a190170caf4bb79919a9feff786fa49beef2f 100644 (file)
@@ -1806,7 +1806,7 @@ Go back to where you previously invoked @kbd{M-.} and friends
 @findex xref-find-definitions
   @kbd{M-.}@: (@code{xref-find-definitions}) shows the definitions of
 the identifier at point.  With a prefix argument, or if there's no
-valid identifier at point, it prompts for the identifier.  If the
+identifier at point, it prompts for the identifier.  If the
 identifier has only one definition, the command jumps to it.  If the
 identifier has more than one possible definition (e.g., in an
 object-oriented language, or if there's a function and a variable by
@@ -1923,7 +1923,7 @@ Restart one of the last 2 commands above, from the current location of point.
 @kindex M-?
 @findex xref-find-references
   @kbd{M-?} finds all the references for the identifier at point.  If
-there's no valid identifier at point, or when invoked with a prefix
+there's no identifier at point, or when invoked with a prefix
 argument, the command prompts for the identifier, with completion.  It
 then presents a @file{*xref*} buffer with all the references to the
 identifier, showing the file name and the line where the identifier is
index f983525e9281a54800ea8f936d7e638d1fd2ca09..1e6a69fc3bee32b894e314bc9dcf26c23b060433 100644 (file)
@@ -608,10 +608,8 @@ references displayed in the current *xref* buffer."
 (define-derived-mode xref--xref-buffer-mode special-mode "XREF"
   "Mode for displaying cross-references."
   (setq buffer-read-only t)
-  ;; FIXME: http://debbugs.gnu.org/20489
-  ;; (setq next-error-function #'xref--next-error-function)
-  ;; (setq next-error-last-buffer (current-buffer))
-  )
+  (setq next-error-function #'xref--next-error-function)
+  (setq next-error-last-buffer (current-buffer)))
 
 (defun xref--next-error-function (n reset?)
   (when reset?