GNU bug report logs - #22692
25.0.91; xref-find-definitions fails to prompt

Previous Next

Package: emacs;

Reported by: Mike Kupfer <m.kupfer <at> acm.org>

Date: Tue, 16 Feb 2016 01:03:01 UTC

Severity: normal

Found in version 25.0.91

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mike Kupfer <m.kupfer <at> acm.org>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 22692 <at> debbugs.gnu.org
Subject: bug#22692: 25.0.91; xref-find-definitions fails to prompt
Date: Tue, 16 Feb 2016 17:55:28 -0800
Dmitry Gutov wrote:

> On 02/16/2016 03:02 AM, Mike Kupfer wrote:
> > If point is on a token that isn't defined in the current tags file,
> > M-. gives me an error (look for "Cygwin" further down in this bug
> > report).  I expect to get a prompt.
> 
> That doesn't sound right to me: "XXX is not found" is a valid piece of
> information. Simply showing a prompt would obscure it.

The Help string for xref-find-definitions says

> With prefix argument or when there’s no identifier at point,
> prompt for it.

I guess you could argue that if point is on a token that's not in the
tags table, it's still on an "identifier".  But "#" is hardly an
identifier.

And the Info page "Xref Commands" says

> With a prefix argument, or if there’s no valid
> identifier at point, it prompts for the identifier.

Does "valid identifier" mean syntatically correct, or does it mean that
the identifier is in the tags table.  Please clarify the documentation.

> If we accept that the command searches for the thing at point by
> default, the current behavior seems appropriate. And whether or not it
> prompts, is customizable.

Yes, I have already have

  (setq xref-prompt-for-identifier t)

in my .emacs.

mike




This bug report was last modified 9 years and 145 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.