From e630bc4fd7299e4aad8e20a4d33bb267642dec25 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Wed, 2 Sep 2026 11:23:02 +0100 Subject: [PATCH] ; Fix some recently added docs. --- doc/emacs/maintaining.texi | 12 ++++++------ etc/NEWS | 8 +++++--- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi index 10c15cad07c..6bb7f30392e 100644 --- a/doc/emacs/maintaining.texi +++ b/doc/emacs/maintaining.texi @@ -2802,12 +2802,12 @@ mode binds the command to @kbd{C-mouse-1}. @kindex M-g . @kindex M-g M-. @findex xref-find-by-kind - @kbd{M-'} finds all definitions of a certain kind for the identifier -at point. First it prompts to choose the kind using a key character, -from the available set that is returned by the current backend -(@pxref{Xref}). Then it either uses the identifier at point or prompts -for it if none found or the command was invoked with a prefix argument. -(If you want it to always prompt, customize + @kbd{M-g .} (or @kbd{M-g M-.}) finds all definitions of a certain kind +for the identifier at point. First it prompts to choose the kind using +a key character, from the available set that is returned by the current +backend (@pxref{Xref}). Then it either uses the identifier at point or +prompts for it if none found or the command was invoked with a prefix +argument. (If you want it to always prompt, customize @code{xref-prompt-for-identifier}.) The list of supported kinds depends on the backend, which are advised to use mnemonic keys and common sense. For example, the Emacs Lisp mode has ``variable'', ``function alias'' diff --git a/etc/NEWS b/etc/NEWS index f4ec78a5013..166d661c9d9 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -291,9 +291,11 @@ It is bound to 'M-o'. ** Xref -+++ New command 'xref-find-by-kind'. -It allows you to jump to a specific kind of definition. The available -kinds are defined by the backend. It is bound to 'M-g .' and 'M-g M-.'. ++++ +*** New command 'M-g .'/'M-g M-.' ('xref-find-by-kind'). +This command allows you to jump to a specific kind of definition, such +as a variable definition, instead of the function of the same name. +The xref backend defines what kinds of definition are available. ** CPerl mode