all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nick Helm <nick@tenpoint.co.nz>
To: help-gnu-emacs@gnu.org
Subject: Re: Double-click opens the wrong file
Date: Wed, 01 Nov 2017 20:27:08 +1300	[thread overview]
Message-ID: <m28tfqbgs3.fsf@tenpoint.co.nz> (raw)
In-Reply-To: <83efpislo8.fsf@gnu.org>

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.



  reply	other threads:[~2017-11-01  7:27 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
2017-11-01  3:49 ` Eli Zaretskii
2017-11-01  7:27   ` Nick Helm [this message]
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=m28tfqbgs3.fsf@tenpoint.co.nz \
    --to=nick@tenpoint.co.nz \
    --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.