From: Nick Helm <nick@tenpoint.co.nz>
To: Drew Adams <drew.adams@oracle.com>
Cc: help-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Double-click opens the wrong file
Date: Wed, 01 Nov 2017 20:53:50 +1300 [thread overview]
Message-ID: <m27evabfjl.fsf@tenpoint.co.nz> (raw)
In-Reply-To: <688645e4-144e-4247-953b-7c9476f56d32@default>
On Wed, 1 Nov 2017 at 16:26:56 +1300, Drew Adams wrote:
>> Occasionally, when I double click a file to edit it, Emacs will visit
>> a different file instead.
>
> One place to start is to use `C-h k' and then double-click wherever
> you notice the problem. That should at least tell you what Emacs
> command is being invoked by that double-click.
That's good advice. I had no idea C-h k could capture incoming events
from the OS...
Priming C-h k and double clicking a file on the desktop points me toward
`ns-open-file-select-line' which is bound to <ns-open-file-line>. I
guess the latter is the incoming event.
The docstring also mentions `ns-input-file', which looks like it
contains the name of the file from the incoming event. The next time the
issue occurs, this will be one to watch.
Thanks.
next prev parent reply other threads:[~2017-11-01 7:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-01 3:07 Double-click opens the wrong file Nick Helm
2017-11-01 3:26 ` Drew Adams
2017-11-01 7:53 ` Nick Helm [this message]
2017-11-01 3:49 ` Eli Zaretskii
2017-11-01 7:27 ` Nick Helm
2017-11-01 19:38 ` 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=m27evabfjl.fsf@tenpoint.co.nz \
--to=nick@tenpoint.co.nz \
--cc=drew.adams@oracle.com \
--cc=help-gnu-emacs@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 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.