all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Felician Nemeth <felician.nemeth@gmail.com>, 33992@debbugs.gnu.org
Cc: "João Távora" <joaotavora@gmail.com>, "Juri Linkov" <juri@linkov.net>
Subject: bug#33992: 27.0.50; xref-find-definitions wastes too much space
Date: Sat, 6 Apr 2019 02:20:02 +0300	[thread overview]
Message-ID: <a116a808-40e7-398e-9096-ec8465b04cb1@yandex.ru> (raw)
In-Reply-To: <87lg0ou6q7.fsf@ulti.tmit.bme.hu>

On 05.04.2019 12:44, Felician Nemeth wrote:
> (Sorry for replying late, I've just read this bug report.)
> 
> I thought that I didn't need to see the list of the xref results and the
> xrefs' window shrank the view of the code I wanted to study.  So, I came
> up with the defun below.  It presents the xref results without showing
> the xref window.  I think this idea can be further developed.

For instance, by not calling xref--show-xref-buffer right away, and 
instead storing the arguments. And then maybe calling it later if the 
user types 'm'.

You won't be able to use previous/next-error for such an implementation, 
though.

> xref-show--xrefs-buffer could have an 'm' key binding that "minimizes"
> its window by switching to xref-show-xrefs-without-buffer (below) and
> that function can "maximize" back with the same 'm' key.  A customizable
> variable could define the initial behavior.

I'm not a fan of this interface, personally. It's good that it's 
available, though.

We will make xref-show-xrefs-function a defcustom sooner or later, when 
we're sure that it doesn't need to be changed much.

> Also, I think we can enhance xref-pulse-momentarily to use a different
> face if there's only one xref to present.

Yes, but I'm not sure the user will quickly understand the meaning of 
the different face.

Anyway, we can make the exact face name a defcustom (it's currently 
'next-error'), and you'd be able to change it via 'let'.





  reply	other threads:[~2019-04-05 23:20 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-05 23:43 bug#33992: 27.0.50; xref-find-definitions wastes too much space Juri Linkov
2019-01-06 11:03 ` João Távora
2019-03-20 21:37   ` Juri Linkov
2019-03-20 23:23     ` João Távora
2019-04-04  0:02     ` Dmitry Gutov
2019-04-04 20:49       ` Juri Linkov
2019-04-04 23:06         ` Dmitry Gutov
2019-04-05  9:44           ` Felician Nemeth
2019-04-05 23:20             ` Dmitry Gutov [this message]
2019-04-06 21:08             ` Juri Linkov
2019-04-06 21:03           ` Juri Linkov
2019-05-02 23:05             ` Dmitry Gutov
2019-05-15 20:57               ` Juri Linkov
2019-05-15 22:37                 ` Dmitry Gutov
2019-05-28 20:35                   ` Juri Linkov
2019-06-10  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

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

  git send-email \
    --in-reply-to=a116a808-40e7-398e-9096-ec8465b04cb1@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=33992@debbugs.gnu.org \
    --cc=felician.nemeth@gmail.com \
    --cc=joaotavora@gmail.com \
    --cc=juri@linkov.net \
    /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 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.