unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] emacs-26 b1aaa72: Improve documentation of Xref
Date: Mon, 12 Mar 2018 22:34:10 +0200	[thread overview]
Message-ID: <e27f1859-ba26-c069-9e83-5d2efa44e231@yandex.ru> (raw)
In-Reply-To: <83o9jts2jj.fsf@gnu.org>

On 3/12/18 6:04 PM, Eli Zaretskii wrote:

> This is not about fairness at all, and I'm surprised, to say the
> least, that you judge the text in these terms.

Just talking about what impression the wording might leave. Your new 
update is better, thank you.

> This is about describing a command whose only raison d'être is to
> provide a "fire escape" when the default method invoked by M-. fails
> to find identifiers, because for some reason they are "out of scope"
> for that default method.

I didn't mean to ascribe any ill intent to the author.

>> More importantly, I think the Reddit user's problem (which has probably resulted in this manual update) was that they thought, for some reason, that xref-find-definitions will always use the tags table. And that them visiting it should affect what xref-find-definitions finds.
> 
> No, I wrote that because it took me some time to find this command,
> although I vaguely remembered something like that should be possible.

Still, there is that scenario from Reddit:

"M-. (bound to xref-find-definitions) can't find any definitions. I 
visit-tags-file, set tags-file-name and tags-table-list manaully, 
generated the file with etags and ctags, everything. No luck"

Basically, there was no reason to expect navigation to those symbols to 
work, except that the user had created and visited a tags table 
containing them. So I think the surprise really was that M-. didn't use 
the current tags table.

>> So if there's some place in the manual that leaves them with that impression, I think it should be updated.
> 
> Feel free to point out such place(s) if you find them.

Upon re-reading, I think the manual is indeed pretty clear. And we can 
ascribe the problem mostly to old habits.

> Irrelevant.  Once again, this command is only for when M-. fails to
> find identifiers, something that shouldn't happen with those more
> powerful facilities.

Nothing is perfect, and I'm sure there will be cases when a user sees a 
search fail using one of these more advanced systems. The right course 
of action there would be to refine their configuration and/or report 
bugs to appropriate places, and only then maybe try etags (which could 
still produce worse results).

Anyway, I don't have any significant improvements to suggest over the 
current wording, in this regard.

> Thanks, but I see no reason to cloud the issue by refraining from
> clearly identifying the situation where this command could be useful.
> So I changed the text to make it more accurate, in the hope that it
> will no longer lend itself to interpretation that prompted your
> reaction.

It's better, thank you.

Also after re-reading, I see some duplication with what's been said 
before about how a backend can implement its capabilities in different 
ways ("built-in means for looking up"), that first item already lists 
the disadvantages. BTW, you mentioned the auto-loaded functions in the 
new description of xref-etags-mode, but not in the aforementioned 
section above, which is arguably more important.

Anyway, these are minor things, and I don't have any concrete proposals 
here.



  reply	other threads:[~2018-03-12 20:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20180311173926.29923.58430@vcs0.savannah.gnu.org>
     [not found] ` <20180311173928.14DD220B54@vcs0.savannah.gnu.org>
2018-03-11 23:15   ` [Emacs-diffs] emacs-26 b1aaa72: Improve documentation of Xref Dmitry Gutov
2018-03-12 16:04     ` Eli Zaretskii
2018-03-12 20:34       ` Dmitry Gutov [this message]
2018-03-12 22:43         ` Stefan Monnier
2018-03-12 23:45           ` Dmitry Gutov
2018-03-13  2:18             ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e27f1859-ba26-c069-9e83-5d2efa44e231@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).