unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: 14110@debbugs.gnu.org
Subject: 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	[thread overview]
Message-ID: <87fvz5fr8w.fsf@gmail.com> (raw)
In-Reply-To: <87zjxi4u15.fsf@gmail.com>

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Jambunathan K <kjambunathan@gmail.com>
>> Date: Thu, 04 Apr 2013 23:22:37 +0530
>> Cc: 14110@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 






  parent reply	other threads:[~2013-04-05  6:03 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-01  6:57 bug#14110: 24.3.50; Add command to open files outside of Emacs (use xdg-open, open etc) Jambunathan K
2002-01-01  0:28 ` Jambunathan K
2013-04-01  7:42 ` Leo Liu
2013-04-01  8:06   ` Jambunathan K
2013-04-01 13:31     ` Leo Liu
2013-04-01 20:23       ` Jambunathan K
2013-04-04  1:08 ` Stefan Monnier
2013-04-04  3:25   ` Jambunathan K
2013-04-04 12:22     ` Stefan Monnier
2013-04-04 14:34       ` Jambunathan K
2013-04-04 16:24         ` Stefan Monnier
2013-04-04 17:52           ` Jambunathan K
2013-04-04 18:20             ` Eli Zaretskii
2013-04-05  4:58               ` Jambunathan K
2013-04-05  6:03               ` Thierry Volpiatto [this message]
2013-04-10  4:30                 ` Jambunathan K
2013-04-10  5:39                   ` Thierry Volpiatto
2013-04-05  6:53         ` Leo Liu

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fvz5fr8w.fsf@gmail.com \
    --to=thierry.volpiatto@gmail.com \
    --cc=14110@debbugs.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).