diff options
| author | John Wiegley | 2016-03-03 23:53:26 -0800 |
|---|---|---|
| committer | John Wiegley | 2016-03-03 23:53:26 -0800 |
| commit | 68ce800e9200724d36a0b1bf1923401682bce96d (patch) | |
| tree | c78b2d85b6ea672e92ac3446da088ae0542ad359 | |
| parent | 5ab243f40e4db91586ff74b01a775a5218a1d5be (diff) | |
| parent | aae436e2d898a8c8cc243c73d6cec5a8c566a061 (diff) | |
| download | emacs-68ce800e9200724d36a0b1bf1923401682bce96d.tar.gz emacs-68ce800e9200724d36a0b1bf1923401682bce96d.zip | |
Merge from origin/emacs-25
aae436e Uncomment the next-error-function integration in xref
5f0d096 Remove the word "valid", to avoid ambiguity
| -rw-r--r-- | doc/emacs/maintaining.texi | 4 | ||||
| -rw-r--r-- | lisp/progmodes/xref.el | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi index 72d428af8fb..e81a190170c 100644 --- a/doc/emacs/maintaining.texi +++ b/doc/emacs/maintaining.texi | |||
| @@ -1806,7 +1806,7 @@ Go back to where you previously invoked @kbd{M-.} and friends | |||
| 1806 | @findex xref-find-definitions | 1806 | @findex xref-find-definitions |
| 1807 | @kbd{M-.}@: (@code{xref-find-definitions}) shows the definitions of | 1807 | @kbd{M-.}@: (@code{xref-find-definitions}) shows the definitions of |
| 1808 | the identifier at point. With a prefix argument, or if there's no | 1808 | the identifier at point. With a prefix argument, or if there's no |
| 1809 | valid identifier at point, it prompts for the identifier. If the | 1809 | identifier at point, it prompts for the identifier. If the |
| 1810 | identifier has only one definition, the command jumps to it. If the | 1810 | identifier has only one definition, the command jumps to it. If the |
| 1811 | identifier has more than one possible definition (e.g., in an | 1811 | identifier has more than one possible definition (e.g., in an |
| 1812 | object-oriented language, or if there's a function and a variable by | 1812 | 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. | |||
| 1923 | @kindex M-? | 1923 | @kindex M-? |
| 1924 | @findex xref-find-references | 1924 | @findex xref-find-references |
| 1925 | @kbd{M-?} finds all the references for the identifier at point. If | 1925 | @kbd{M-?} finds all the references for the identifier at point. If |
| 1926 | there's no valid identifier at point, or when invoked with a prefix | 1926 | there's no identifier at point, or when invoked with a prefix |
| 1927 | argument, the command prompts for the identifier, with completion. It | 1927 | argument, the command prompts for the identifier, with completion. It |
| 1928 | then presents a @file{*xref*} buffer with all the references to the | 1928 | then presents a @file{*xref*} buffer with all the references to the |
| 1929 | identifier, showing the file name and the line where the identifier is | 1929 | identifier, showing the file name and the line where the identifier is |
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index f983525e928..1e6a69fc3be 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el | |||
| @@ -608,10 +608,8 @@ references displayed in the current *xref* buffer." | |||
| 608 | (define-derived-mode xref--xref-buffer-mode special-mode "XREF" | 608 | (define-derived-mode xref--xref-buffer-mode special-mode "XREF" |
| 609 | "Mode for displaying cross-references." | 609 | "Mode for displaying cross-references." |
| 610 | (setq buffer-read-only t) | 610 | (setq buffer-read-only t) |
| 611 | ;; FIXME: http://debbugs.gnu.org/20489 | 611 | (setq next-error-function #'xref--next-error-function) |
| 612 | ;; (setq next-error-function #'xref--next-error-function) | 612 | (setq next-error-last-buffer (current-buffer))) |
| 613 | ;; (setq next-error-last-buffer (current-buffer)) | ||
| 614 | ) | ||
| 615 | 613 | ||
| 616 | (defun xref--next-error-function (n reset?) | 614 | (defun xref--next-error-function (n reset?) |
| 617 | (when reset? | 615 | (when reset? |