all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#32389: Default behaviour of xref-find-references is inconsistent with the documentation
@ 2018-08-07  8:55 Shitikanth
  2018-08-07 16:20 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Shitikanth @ 2018-08-07  8:55 UTC (permalink / raw)
  To: 32389

[-- Attachment #1: Type: text/plain, Size: 835 bytes --]

Related to bug#29619.

The function documentation of xref-find-references says:

    Find references to the identifier at point. With prefix argument,
prompt for
    the identifier.

The Emacs manual (Node: Identifier Search) says:

    ‘M-?’ finds all the references for the identifier at point. If there’s
no
    identifier at point, or when invoked with a prefix argument, the command
    prompts for the identifier, with completion.


Inconsistent to both, the actual behaviour of xref-find-references and M-?
is to
*always* prompt for the identifier from the user (irrespective of whether
it is
invoked with or without the prefix-arg). The only way to get the documented
behaviour is by customizing xref-prompt-for-identifier, and there is no way
of
discovering this without reading the source code.

[-- Attachment #2: Type: text/html, Size: 2271 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-08-07 18:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-07  8:55 bug#32389: Default behaviour of xref-find-references is inconsistent with the documentation Shitikanth
2018-08-07 16:20 ` Eli Zaretskii
     [not found]   ` <CALjXJSQ_ns0NN6XeZLswB1NX6tucBM5GtEnVz1voHnOa_iRPhQ@mail.gmail.com>
     [not found]     ` <83va8mp0hv.fsf@gnu.org>
     [not found]       ` <CALjXJSSdVW7Z3rbK9v64GLa=Wtv4tvDa0f4f1RTXxuFPFPYQ1A@mail.gmail.com>
     [not found]         ` <83pnyuozvf.fsf@gnu.org>
     [not found]           ` <CALjXJSSu+jXdoMFNqpnOga5BpmGZkzUBNQ2PEnJzqDsWMQN2Rw@mail.gmail.com>
2018-08-07 18:26             ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.