unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#18132: Time for a smarter dired-guess-shell-alist-default? (dired-x.el)
@ 2014-07-28 18:26 Reuben Thomas
  2014-07-28 18:44 ` bug#18132: Sample code Reuben Thomas
                   ` (2 more replies)
  0 siblings, 3 replies; 52+ messages in thread
From: Reuben Thomas @ 2014-07-28 18:26 UTC (permalink / raw)
  To: 18132

[-- Attachment #1: Type: text/plain, Size: 1264 bytes --]

These days, there are mature programs for launching an arbitrary file with
an appropriate viewer: run-mailcap (which is mature to the point of
obsolescence) and xdg-open on GNU systems; open on Mac OS X; start on MS
Windows).

xdg-open already works reasonably well:
http://lists.gnu.org/archive/html/help-gnu-emacs/2012-01/msg00143.html

(I have a fix for the "multiple files" problem, which I'll be sending to
xdg-utils upstream when I can.)

Hence it would seem sensible to have a new default for
dired-guess-shell-alist-default, which matches any file and returns the
appropriate command for the OS, probably doing some testing to see which
commands are available on a GNU system ("xdg-open", "gvfs-open", "see"…).

The user then only needs to understand and configure one command-launching
system, and the coverage of different filetypes is much more comprehensive
in most such systems than in dired-x.el.

An advantage to Emacs is that this system could then be used elsewhere. For
example, org-mode already has a similar, separate system, org-file-apps,
which might benefit from building on dired-x, and only retaining its own
configuration where it's desirable to open a file "internally" to org-mode.

-- 
http://rrt.sc3d.org

[-- Attachment #2: Type: text/html, Size: 1620 bytes --]

^ permalink raw reply	[flat|nested] 52+ messages in thread

end of thread, other threads:[~2023-12-09 17:13 UTC | newest]

Thread overview: 52+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-28 18:26 bug#18132: Time for a smarter dired-guess-shell-alist-default? (dired-x.el) Reuben Thomas
2014-07-28 18:44 ` bug#18132: Sample code Reuben Thomas
2014-07-29 23:49 ` bug#18132: Time for a smarter dired-guess-shell-alist-default? (dired-x.el) Juri Linkov
2014-07-30  9:12   ` Reuben Thomas
2014-07-30 16:32     ` Juri Linkov
2014-07-30 16:44       ` Reuben Thomas
2014-08-04 23:45         ` Juri Linkov
2014-08-05  9:41           ` Reuben Thomas
2021-10-23  5:25             ` Stefan Kangas
2021-10-23  7:44               ` Eli Zaretskii
2021-10-23  8:16                 ` Stefan Kangas
2021-10-23  8:34                   ` Eli Zaretskii
2021-10-23  9:48                     ` Stefan Kangas
2021-10-23 11:48                       ` Eli Zaretskii
2021-10-23 13:06                       ` Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-23 13:20                         ` Eli Zaretskii
2021-10-23 13:01                   ` Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-23 13:56                     ` Stefan Kangas
2021-10-23 14:03                       ` Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-23 15:45                         ` Stefan Kangas
2021-10-23 17:17                           ` Gregory Heytings
2021-10-23 20:53                           ` Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-24  6:02                             ` Eli Zaretskii
2021-10-24  7:56                               ` Juri Linkov
2023-11-23 17:49                                 ` Juri Linkov
2023-11-23 19:40                                   ` Eli Zaretskii
2023-11-24  7:51                                     ` Juri Linkov
2023-11-24 14:24                                       ` Eli Zaretskii
2023-11-25 18:10                                         ` Juri Linkov
2023-11-26 10:37                                           ` Eli Zaretskii
2023-11-27 17:32                                             ` Juri Linkov
2023-11-28 17:05                                               ` Juri Linkov
2023-11-28 17:35                                                 ` Eli Zaretskii
2023-11-29  7:09                                                   ` Juri Linkov
2023-11-29 13:07                                                     ` Eli Zaretskii
2023-12-02 17:44                                                       ` Juri Linkov
2023-12-02 18:37                                                         ` Drew Adams
2023-12-03 17:04                                                           ` Juri Linkov
2023-12-03 21:16                                                             ` Drew Adams
2023-12-06 17:28                                                               ` Juri Linkov
2023-12-07 17:33                                                                 ` Juri Linkov
2023-12-07 17:48                                                                   ` Eli Zaretskii
2023-12-08  7:37                                                                     ` Juri Linkov
2023-12-08  8:08                                                                       ` Eli Zaretskii
2023-12-09 17:13                                                                         ` Juri Linkov
2021-10-23 17:57                       ` Howard Melman
2021-10-23 18:29                         ` Juri Linkov
2021-10-23 19:22                           ` bug#18132: [External] : " Drew Adams
2021-10-24 16:35                           ` Howard Melman
2021-10-24 19:08                             ` Juri Linkov
2021-10-24  5:10                       ` Thierry Volpiatto
2014-07-30  3:56 ` Eli Zaretskii

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).