From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Karl Fogel Newsgroups: gmane.emacs.devel Subject: Re: On improving Bookmarks Date: Thu, 17 Nov 2022 15:17:39 -0600 Message-ID: <87y1s9p9fw.fsf@red-bean.com> References: <87bkp66brj.fsf@red-bean.com> Reply-To: Karl Fogel Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17991"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Gabriel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 17 22:18:36 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ovmHK-0004Rx-Vl for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Nov 2022 22:18:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovmGX-0003bs-V4; Thu, 17 Nov 2022 16:17:45 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovmGV-0003b6-Rn for emacs-devel@gnu.org; Thu, 17 Nov 2022 16:17:44 -0500 Original-Received: from sanpietro.red-bean.com ([45.79.25.59]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovmGU-00086J-2f for emacs-devel@gnu.org; Thu, 17 Nov 2022 16:17:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=red-bean.com; s=202005newsp; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:Reply-To:References:In-Reply-To:Subject:Cc:To: From:Sender:Content-ID:Content-Description; bh=AwLZK8H7WJqhrxIbNCFNJN/PsL5QkWVhOoQiZqlISK8=; t=1668719861; x=1669929461; b=Fbjx7MzweTwq0ZpBM03Yttg8zn+WfbQW5AIHfP4NQrg6kH6/b/oRI9t/BYc7kpVjb30nyJzeVy5 tYhrFIJOfI48YwHYv6wU7mH200u72ujkyvzRmFhiVcJHfrFXHQ1kgjPGjDngS3FTkHPjDsHWo3X33 tO/7NWGxWFgWbFbg3cq8Y0BZWW6YhV6mkUp4ziieWkJK/GJrciCMGE6UtSUZKOYCuQVkc3H1E8Y1T sY6D5rXMD49ESsc9ZlduPYG8mslkyJ8cs9A6it8NSvhZ0HXs4QLed0gWRVWgx2nSqwVf2UZZrSGPQ OrvfCZQI8QA3fYLIFh8dI1BzXjNiipKm5dig==; Original-Received: from [12.106.183.66] (port=37427 helo=hummy) by sanpietro.red-bean.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ovmGR-0091L6-Mm; Thu, 17 Nov 2022 21:17:39 +0000 In-Reply-To: (Jean Louis's message of "Thu, 17 Nov 2022 13:20:00 +0300") Received-SPF: pass client-ip=45.79.25.59; envelope-from=kfogel@red-bean.com; helo=sanpietro.red-bean.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300075 Archived-At: On 17 Nov 2022, Jean Louis wrote: > * Karl Fogel [2022-11-16 20:40]: >> But does Emacs already have a generic mechanism for saying=20 >> "open things of >> type X with program Y"? If so, Bookmark should just rely on=20 >> that mechanism, >> rather than have some Bookmark-specific mechanism. And if=20 >> there isn't such >> a generic mechanism in Emacs, perhaps it be better to create=20 >> that than to do >> something special for Bookmark. > > I use this variable to open files in Dired, this could be also=20 > used > for bookmarks. > > dired-guess-shell-alist-user is a variable defined in=20 > =E2=80=98dired.el=E2=80=99. > > 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=20 what to do if handed (say) a URL, right? We need something like a generalized MIME-type handler list. And=20 maybe Emacs has such a thing already? Emacs is so big that I pack=20 canned goods before I go looking for things in it... Best regards, -Karl