GNU bug report logs - #14110
24.3.50; Add command to open files outside of Emacs (use xdg-open, open etc)

Previous Next

Package: emacs;

Reported by: Jambunathan K <kjambunathan <at> gmail.com>

Date: Mon, 1 Apr 2013 07:02:02 UTC

Severity: wishlist

Found in version 24.3.50

Done: Jambunathan K <kjambunathan <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #44 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#14110: 24.3.50;
	Add command to open files outside of Emacs (use xdg-open, open etc)
Date: Fri, 05 Apr 2013 08:03:59 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Jambunathan K <kjambunathan <at> gmail.com>
>> Date: Thu, 04 Apr 2013 23:22:37 +0530
>> Cc: 14110 <at> debbugs.gnu.org
>> 
>> The alist is already maintained by the user's desktop (likely via
>> Explore->`Open with' -> `Always use this application for these files').
>> Emacs should at no point in time have any knowledge of this association.
>
> Emacs can easily know about the associations, at least on Windows.

Here what I do in helm:

Default action to open a file is always edit the file in emacs with the
right mode.

Use another command to open file externally (async).
This command can use a prefix to choose program to use (with
completion).
Once you choose this program your choice is stored in an alist with
customize. (So no need for user to customize complex alist)
Each time you want to change, you can press C-u to make another choice.
If you answer yes, this new program will replace the precedent in alist,
no will use the new program without storing it.
If you don't press C-u the last program used for this kind of file is
used.
If the command is called with no choice (not C-u) and nothing for this
file extension is found in alist helm looks for mailcap entries.

It is good to be able to change program at any time, e.g for foo.jpg,
you may use sometimes imagemagick, ristretto, or gimp etc....

I also have a command that use default tool with no choice (xdg-open)
but I don't like it.

-- 
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 





This bug report was last modified 11 years and 249 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.