[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:27:08 +1300 |
User-agent: |
mu4e 0.9.18; emacs 26.0.90 |
On Wed, 1 Nov 2017, Eli Zaretskii wrote:
>> Occasionally, when I double click a file to edit it, Emacs will visit
>> a different file instead.
>
> Please tell how you set this up, and in what application do you
> double-click on a file to have it visited in Emacs.
>
> Also, is the file actually visited displayed near the name you clicked
> on, or is it entirely unrelated?
>
> IOW, please add details.
Sorry, I should have been much clearer.
The issue occurs when I double click a file on my desktop or in a file
browser window. That is, I click on a file within the OS and rely on the
OS's file association mechanism to visit the file in Emacs.
I can reproduce the issue with this generalised recipe:
+ Launch Emacs using the GUI bundle Emacs.app
+ Within Emacs, find-file ~/work/file1.org. Edit, save, kill.
+ Within Emacs, find-file ~/config/file2.txt. Edit, save, kill.
+ With the mouse, click on the OS desktop. Emacs loses focus.
+ On the desktop, double click file3.el (~/Desktop/file3.el).
+ Focus returns to Emacs. Emacs visits file1.org.
+ Return to the desktop and again double click file3.el.
+ Emacs gains focus and visits file2.txt.
+ Double click file3.el a third time.
+ Emacs gains focus and opens file3.el as expected.
The file that actually opens following the double click is not logically
or physically close to (in file-system or GUI terms) the clicked file.
They are chronologically linked, however – that is, they are visited in
the same order as my original edits.
Thanks.
- Re: Double-click opens the wrong file,
Nick Helm <=