[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Double-click opens the wrong file

From: Nick Helm
Subject: Re: Double-click opens the wrong file
Date: Wed, 01 Nov 2017 20:53:50 +1300
User-agent: mu4e 0.9.18; emacs 26.0.90

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]