From: Karl Fogel <kfogel@red-bean.com>
To: Gabriel <gabriel376@hotmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: On improving Bookmarks
Date: Thu, 17 Nov 2022 15:17:39 -0600 [thread overview]
Message-ID: <87y1s9p9fw.fsf@red-bean.com> (raw)
In-Reply-To: <Y3YK0A8xgrl9o1B8@protected.localdomain> (Jean Louis's message of "Thu, 17 Nov 2022 13:20:00 +0300")
On 17 Nov 2022, Jean Louis wrote:
> * Karl Fogel <kfogel@red-bean.com> [2022-11-16 20:40]:
>> But does Emacs already have a generic mechanism for saying
>> "open things of
>> type X with program Y"? If so, Bookmark should just rely on
>> that mechanism,
>> rather than have some Bookmark-specific mechanism. And if
>> there isn't such
>> a generic mechanism in Emacs, perhaps it be better to create
>> that than to do
>> something special for Bookmark.
>
> I use this variable to open files in Dired, this could be also
> used
> for bookmarks.
>
> dired-guess-shell-alist-user is a variable defined in
> ‘dired.el’.
>
> Value:
> (("\\.gif\\'" "sxiv -a")
> ("\\.mts\\'" "mpv")
> ("\\.pdf\\'" "zathura")
> ("\\.epub\\'" "mupdf")
> ("\\.djvu\\'" "evince")
That's a start -- it covers files at least. But it wouldn't know
what to do if handed (say) a URL, right?
We need something like a generalized MIME-type handler list. And
maybe Emacs has such a thing already? Emacs is so big that I pack
canned goods before I go looking for things in it...
Best regards,
-Karl
next prev parent reply other threads:[~2022-11-17 21:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-16 5:25 On improving Bookmarks Gabriel
2022-11-16 7:23 ` Matthias Meulien
2022-11-16 8:05 ` Stefan Kangas
2022-11-16 17:28 ` bug#59212: " Karl Fogel
2022-11-16 19:33 ` Eli Zaretskii
2022-11-16 19:47 ` Karl Fogel
2022-11-16 17:37 ` Karl Fogel
2022-11-17 10:20 ` Jean Louis
2022-11-17 21:17 ` Karl Fogel [this message]
2022-11-18 3:13 ` Stefan Kangas
2022-11-18 7:58 ` Jean Louis
2022-11-18 7:53 ` Jean Louis
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=87y1s9p9fw.fsf@red-bean.com \
--to=kfogel@red-bean.com \
--cc=emacs-devel@gnu.org \
--cc=gabriel376@hotmail.com \
/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).