unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: "Daniel Martín" <mardani29@yahoo.es>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Poll: Change xref-show-definitions-function's default?
Date: Fri, 1 Jan 2021 15:33:27 +0200	[thread overview]
Message-ID: <c593ad08-4c84-10e6-512a-e80b207d9e6c@yandex.ru> (raw)
In-Reply-To: <m11rf6nmz0.fsf@yahoo.es>

On 31.12.2020 15:06, Daniel Martín wrote:

> I've given a spin to the new options and I think I'd prefer the
> transient option first, followed by choosing the definition from a
> buffer (like it is now).  The completing-read option feels a little bit
> akward to me because you first have to press TAB to see your options,
> and then have to TAB complete on the "artificial" syntax that xref uses
> for definitions (eg. "compile.el:(defun compile)").  The "transient"
> option feels more natural.

That's a fair criticism: the completing-read one works best when at 
least either icomplete-mode is on (preferably with 
icomplete-show-matches-on-no-input=t) so you see the options right away, 
or with Ivy completion (then you can easily choose among the options 
with C-n and C-p).

I'm fine with the "transient" version if we'll have some consensus on 
that, but I wonder what can be done to make 
xref-show-definitions-completing-read "friendlier" even with stock 
completing-read.

If we showed the default in the prompt, it would be easier to see what's 
going on. These can be pretty long lines, though, so the result might 
turn out to be clunkier, since the prompt will still be showing it even 
after you start typing, press TAB, etc.



  parent reply	other threads:[~2021-01-01 13:33 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-29 18:28 Poll: Change xref-show-definitions-function's default? Dmitry Gutov
2020-12-30  3:17 ` Lars Ingebrigtsen
2020-12-31 13:06 ` Daniel Martín
2021-01-01 12:25   ` Zhiwei Chen
2021-01-01 12:46     ` Dmitry Gutov
2021-01-01 13:33   ` Dmitry Gutov [this message]
2021-01-02 21:09   ` João Távora
2021-01-03 23:54     ` Daniel Martín via "Emacs development discussions.
2021-01-03 23:58       ` João Távora
2021-01-04  0:07         ` Dmitry Gutov
2021-01-04  8:48           ` João Távora
2021-01-04 11:16             ` Dmitry Gutov
2021-01-04 11:24               ` João Távora
2021-01-04 11:42                 ` Dmitry Gutov
2021-01-01  7:59 ` martin rudalics
2021-01-01 12:17   ` Dmitry Gutov
2021-01-02 10:26   ` Philip K.
2021-01-02 15:43     ` martin rudalics
2021-01-02 17:25       ` Dmitry Gutov
2021-01-03  8:39         ` martin rudalics
2021-01-03 17:43           ` Dmitry Gutov
2021-01-02 10:24 ` Philip K.
2021-01-02 11:08   ` Dmitry Gutov
2021-01-04 12:12 ` Philip K.
2021-01-04 12:22   ` Dmitry Gutov
2021-01-04 14:21     ` Philip K.
2021-01-04 16:14       ` Dmitry Gutov
2021-01-04 17:42 ` Juri Linkov
2021-01-04 18:41   ` Dmitry Gutov
2021-01-06 18:30     ` Juri Linkov
2021-01-06 20:55       ` Dmitry Gutov
2021-01-07 17:47         ` Juri Linkov
2021-01-09  0:35           ` 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=c593ad08-4c84-10e6-512a-e80b207d9e6c@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    --cc=mardani29@yahoo.es \
    /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).