unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Arthur Miller <arthur.miller@live.com>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: emacs-devel@gnu.org
Subject: Re: Question about xref and adding "find all references" button to built-in help
Date: Mon, 20 Sep 2021 07:47:13 +0200	[thread overview]
Message-ID: <AM9PR09MB497715ED4F0B19E18473881996A09@AM9PR09MB4977.eurprd09.prod.outlook.com> (raw)
In-Reply-To: <d4513ef0-4a12-3d2c-9429-cdf356b806f5@yandex.ru> (Dmitry Gutov's message of "Mon, 20 Sep 2021 02:32:42 +0300")

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

Dmitry Gutov <dgutov@yandex.ru> writes:

> Hi!
>
> On 19.09.2021 23:17, Arthur Miller wrote:
>> If I would like to add a link as there is one in Helpful, to find all references
>> for a current symbol in help-mode buffer; which xref functionality should I look
>> at? Is there a ready made function already, or do I have to write something?
>
> We have functionality to searching for references in the current project (also
> works when inside an Emacs sources checkout) and throughout the load-path.

As extensive as helpful's help-ref? He searches through each and every source
file found in the load-path. Where do I look, can you give me some pointer I can
start playing with? Or should I do build my own search?

> But you probably want this to work in installed Emacs as well?

What do you mean by "installed Emacs"? Emacs without sources? Sorry, I just woke
up, have to get that coffein going up :).

What about to just have a keyboard shortcuts; say 'R', instead of link. With
source code displayed it already looks a bit crouded. I think helpfuls buffer
looks a bit busy with all the links.

I could imagine living with just a shortcut and maybe a context menu item.

I attached a screeshots of helpful and built-in help with my yserdays patch both
showing source code for the comparison.


[-- Attachment #2: helpful.png --]
[-- Type: image/png, Size: 177508 bytes --]

[-- Attachment #3: built-in-help.png --]
[-- Type: image/png, Size: 154371 bytes --]

  reply	other threads:[~2021-09-20  5:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-19 20:17 Question about xref and adding "find all references" button to built-in help Arthur Miller
2021-09-19 23:32 ` Dmitry Gutov
2021-09-20  5:47   ` Arthur Miller [this message]
2021-09-20 12:49     ` Dmitry Gutov
2021-09-20 20:52       ` Arthur Miller
2021-09-20 23:37         ` Dmitry Gutov
2021-09-21 10:32           ` Arthur Miller
2021-09-21 14:02             ` Dmitry Gutov

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=AM9PR09MB497715ED4F0B19E18473881996A09@AM9PR09MB4977.eurprd09.prod.outlook.com \
    --to=arthur.miller@live.com \
    --cc=dgutov@yandex.ru \
    --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).