From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: eww and bookmarks Date: Mon, 25 May 2020 08:51:23 -0400 Message-ID: References: <87k1163jz5.fsf@gmail.com> <87zha21i17.fsf@gmail.com> <87pnau45wp.fsf@web.de> <87pnatlo1h.fsf@gmail.com> <87zh9wljig.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="48166"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: "Alfred M. Szmidt" , Matthias Meulien , 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 14:52:03 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 1jdCaI-000COr-UL for ged-emacs-devel@m.gmane-mx.org; Mon, 25 May 2020 14:52:02 +0200 Original-Received: from localhost ([::1]:50622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdCaI-000481-0j for ged-emacs-devel@m.gmane-mx.org; Mon, 25 May 2020 08:52:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39010) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdCZn-0003at-5U for emacs-devel@gnu.org; Mon, 25 May 2020 08:51:31 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:10379) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdCZl-0007Nw-MF; Mon, 25 May 2020 08:51:30 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 6025E4408A6; Mon, 25 May 2020 08:51:27 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id DB85F440819; Mon, 25 May 2020 08:51:25 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1590411085; bh=H3U9J3qZPWqz8PkNNBDcS4ukt05hEBqZrJaJ/Bqjxzk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=A+HnXjbKrSl8IVDG75hdxYCUK2FRJCPZ9Q91YamN0upytjbu1EdFYEI1EjWk66XiI Zlz/sEgAOE2eQu3BWGiBU7pFxweu7EnoHXe7fT0G1Iz1+d1E17dHTcaNl531fcD9nj hGZbbTLdhHD5nRssUOrdT8A24XX9KVliTVAidCOzPIXguUFUrej4sR+b8mGaOIgbAe QRauWJw3VBrpBqT7aqDBiIyLjK14tmC3V3Mv3tXxjgMG+Qv0u5XR0IO+61fM0Betrc 5NNT13ohVkkGeB0R5AV2DLeY5tx9UCzr/PDPcVa30y1RwnVCYDGHITOzVzWgzJazPE sy3JMZsjQg8Jw== Original-Received: from alfajor (unknown [216.154.27.250]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 75DF112065C; Mon, 25 May 2020 08:51:25 -0400 (EDT) In-Reply-To: <87zh9wljig.fsf@web.de> (Michael Heerdegen's message of "Mon, 25 May 2020 06:35:03 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/25 08:51:27 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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:251358 Archived-At: >> Those that like EWW would already be doing: >> (setq browse-url-browser-function 'eww-browse-url) > Ok, so you would make the handler call `browse-url-browser-function', > and not eww unconditionally. I think I would prefer that behavior, too. FWIW, I would like to use bookmarks for EWW, and I'd like those bookmarks to *always* use EWW, and my `browse-url-browser-function` is definitely not EWW but Firefox. Emacs bookmarks don't just refer to a particular "page" but also remember the place within that page (by remembering surrounding text) and I think this part can only work if we go back with EWW. Since the page was originally viewed in EWW the corresponding bookmark *by default* should use EWW as well. We can add a configuration option to make it obey `browse-url-browser-function` if you want, but it should not be the default behavior: a bookmark is supposed to bring you back to where it was created, so if it was created in EWW it shouldn't send you to Firefox. Stefan