all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Tobias Gerdin <tgerdin@gmail.com>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: bug#32029: [PATCH] xref-find-definitions-at-mouse
Date: Thu, 5 Jul 2018 17:00:54 +0300	[thread overview]
Message-ID: <5b9cd106-18f2-c466-d884-4a31abb05042@yandex.ru> (raw)
In-Reply-To: <528d74b1-c346-006f-2005-6ad78390ce1d@gmail.com>

On 7/4/18 4:02 PM, Tobias Gerdin wrote:

> Well, if we want the pushed mark to correspond to only the location of 
> the actual identifier it's easy, just call `mouse-set-point` and then 
> xref-find-definitions interactively and you're good. But then we throw 
> away the users actual location before the click which I don't think is 
> nice, but just my opinion.

I'm not sure we want that. What's more, capturing the previous state 
will become more difficult, as it will include window configuration (a 
different window, or frame, may have been selected before the mouse click).

>>
>> Regarding the patch, I'm fine with it, but I'd like someone else to 
>> confirm that the name of the new function makes sense.
> The name was chosen to match `ffap-at-mouse`. Would be good to have a 
> second opinion on that.
> 
> Would you like me to draft a NEWS entry? In particular I think it should 
> draw attention to the need for the user to bind a mouse event to the 
> command in order to work.

Yes, please. Also, please keep the mailing list in Cc.

> Personally I would like to have a default 
> binding for this. For comparison `ffap-bindings` binds `ffap-at-mouse` 
> to S-mouse-3. I could initiate a discussion on emacs-devel about it. In 
> the best of worlds we would have a function bound to some key which 
> unifies ffap and xref (invoking the former if the thing at point looks 
> like a file or URL) which would expose both functionalities by default.

If you feel the need, please go ahead and start the discussion.

> Btw, in previous Emacsen one used to be able to hit M-v in order to 
> focus the completions buffer window to select completion (if there is 
> more than one matching completion). This no longer seems to work for me 
> in recent Emacs, is that by design? (I suspect this was the 
> `switch-to-completions` command.)

It might be a regression. Try reporting it as a bug.



  parent reply	other threads:[~2018-07-05 14:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-01 23:18 bug#32029: PATCH: xref-find-definitions-at-mouse Tobias Gerdin
2018-07-03 13:15 ` Dmitry Gutov
2018-07-03 21:37   ` bug#32029: [PATCH] xref-find-definitions-at-mouse Tobias Gerdin
2018-07-04  8:03     ` Tobias Gerdin
2018-07-04 12:24       ` Dmitry Gutov
2018-07-04 15:17         ` Eli Zaretskii
     [not found]         ` <528d74b1-c346-006f-2005-6ad78390ce1d@gmail.com>
2018-07-05 14:00           ` Dmitry Gutov [this message]
2018-07-06  8:55     ` Eli Zaretskii
2018-07-06  9:03       ` Dmitry Gutov
2018-07-06 20:23         ` Tobias Gerdin
2018-07-07  9:04           ` Eli Zaretskii
2018-07-07  9:02     ` Eli Zaretskii

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=5b9cd106-18f2-c466-d884-4a31abb05042@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    --cc=tgerdin@gmail.com \
    /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.