From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: ams@gnu.org (Alfred M. Szmidt) Newsgroups: gmane.emacs.devel Subject: Re: eww and bookmarks Date: Mon, 25 May 2020 01:26:55 -0400 Message-ID: References: <87k1163jz5.fsf@gmail.com> <87zha21i17.fsf@gmail.com> <87pnau45wp.fsf@web.de> <87pnatlo1h.fsf@gmail.com> <87zh9wljig.fsf@web.de> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="101938"; mail-complaints-to="usenet@ciao.gmane.io" Cc: orontee@gmail.com, npostavs@gmail.com, drew.adams@oracle.com, emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 25 07:27:35 2020 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 1jd5eB-000QQ9-Ib for ged-emacs-devel@m.gmane-mx.org; Mon, 25 May 2020 07:27:35 +0200 Original-Received: from localhost ([::1]:54044 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jd5eA-0000yT-Ev for ged-emacs-devel@m.gmane-mx.org; Mon, 25 May 2020 01:27:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53600) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jd5dZ-0000Xd-6q for emacs-devel@gnu.org; Mon, 25 May 2020 01:26:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43790) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jd5dY-0007MW-4P; Mon, 25 May 2020 01:26:56 -0400 Original-Received: from ams by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1jd5dX-0000hF-OP; Mon, 25 May 2020 01:26:55 -0400 In-reply-to: <87zh9wljig.fsf@web.de> (message from Michael Heerdegen on Mon, 25 May 2020 06:35:03 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:251347 Archived-At: > Isn't this very easily done though, both so that it works for the case No one said it is hard ;-) It's only left to decide how the handler should behave. The most natural behaviour would be to use browse-url-browser-function -- since that is what everything else in GNU Emacs would normally use to browse URL's. > of eww, but also (which I think is important, in the generic case), > simple untested hackery, in .emacs.bmk we have: > > ("The GNU Operating System and the Free Software Movement" > (url . "http://www.gnu.org/") > (handler . browse-url-bookmark-jump)) Is there really a generic case that creates bookmarks with an url field? I'm not sure what you mean generic here? Adding a new entry is possible, and even a supported case by bookmark-make-record. Any web browser that can set a bookmark (i.e. anything in Emacs) would ofcourse need to agree on using that specific entry. > It would be strange if eww implemented its own bookmarking > functionality, when all of this is already simple to add. Just to be clear: this is where we are, eww has it's own bookmarking mechanism, for a long time. That is a pity, but not one that is impossible to change. The bookmarking code in eww, could be replaced with the same functionality as used in rest of Emacs and still I think be compatible with the current way eww does bookmarks from a users point of view. Some sort of hackery maybe to convert existing bookmarks to bookmark.el format might be useful though.