From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: Re: eww and bookmarks Date: Mon, 08 Jun 2020 16:49:55 +0200 Message-ID: <87pna9wr1o.fsf@web.de> References: <87k1163jz5.fsf@gmail.com> <87tv0a5k5b.fsf@web.de> <87mu5ec3pf.fsf@web.de> <87mu5e3ncg.fsf@tcd.ie> <87img2c0rv.fsf@web.de> <87img220r7.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="66420"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , emacs-devel@gnu.org To: "Basil L. Contovounesios" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jun 08 16:53:27 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 1jiJ9S-000HAG-LO for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Jun 2020 16:53:26 +0200 Original-Received: from localhost ([::1]:35758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jiJ9Q-00060q-TU for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Jun 2020 10:53:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jiJ68-00055k-Fo for emacs-devel@gnu.org; Mon, 08 Jun 2020 10:50:00 -0400 Original-Received: from mout.web.de ([212.227.17.11]:56201) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jiJ67-00018p-An for emacs-devel@gnu.org; Mon, 08 Jun 2020 10:50:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1591627796; bh=fz/9uhZTXoCBEaltHoYEOYBcrWG1qAd3xibsllTtolU=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=DRNJ9haDzFrMlMAsgwCXTRoXp+n1DkQcyBYM+xrWebJJAg7cNRap7VKfkn6j/HABI mVHZIXin3gYYhivXG0SBml3R/VQHzzJGvXlihMM8CtKTDNy8AC91+w2cFkpfNW35jl wCJmJ+t8oH/q8bHL3gf0vDxOXWFLO83Yf2pBPsKM= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([94.217.119.187]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MRF3W-1jL7wG0zci-00NN6p; Mon, 08 Jun 2020 16:49:56 +0200 In-Reply-To: <87img220r7.fsf@tcd.ie> (Basil L. Contovounesios's message of "Sun, 07 Jun 2020 19:23:40 +0100") X-Provags-ID: V03:K1:9fbt5JvknTtRoERMV8ihnowZS3Q9Z687aIGJO9lzPB+wPI7Isf9 7bv6cfs4WRprQ4Xo+ojI3fGurNuy74TErusIlasBHAjT4K7abM6k60xPX1iYK2GskQHGmVJ ruP4sE3ygYH0xt2xLR383zet74f5ke3sacYMbG/V579UONOMqXyJIwdeNamwwOtUtHm0Sme 4rX1yiXPVAUfa1BTKbdsQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:XxyD0NGeO2E=:sf3epT4vN7jdZ0Be4sM9ca QPGkYjYhq5FcQfUIGq7WP9r8/MRwh5C0S11AmWe1IB+FYR7YUyPmjGq3rpl++ujKpITQF+ZJF piBraNROdmf2T7kiRK35Ff8lPgI4Pt5UEXmaVn/W1hjX8JSruyipIn205ypWzNjvTkwWkGDxQ py4VPOMyG/c90w0AjDgBM9Br8fcyef/IhksiLsJlalkkg6o9TWHdbFzDnklpEECShXg+SdzGo xoVhEFRoELaR0S/6FK8lqrjvbMz0ThZYWokA7V5A7UE9SCkLo0g5+RfPUcZTGDFs/mXeoC1lh l7xNGcuTfLW3JVJYHB1hykJ7WSjEZ19jvXUK6DcV0btn1kLPDsCSXrxfOfKfYiadiUFS7ck4c kp2wpGeeUuT62F8xfYzreuR3gQieOQ9wtcPX0Q6PvKwhItKNKW7I3O74OQneWEEC3BTbB4Eo9 1rVgBaX3enFKjlGGUrHzXeyHKK9Fbp1undTK5nKwaU7wz5jocZPx9nx4ZU2DYS4Sq6noiD7iF rrkifCRtDisksSgb9o0kI1U794Wuk07YaF7tjUNaWHZKEEeP/Sz/wJm7h6WCPMIFB6w4lLMzG rCjEN6UjCMYt1LDdeuGUOCFVrom1Z8x54y2vLiXNAL8oehOFhoBMh5bh7GXO58qCiYPYe4iOn akrkjmvbkZ3pfGuSj5b41MJfnNtwomdqACjHA/qyTzWQh4hqIfZS2ewqqcKiUcM0ODgGleI7s p8DtqZ+MayAAJ2A+m5PZGEOyblwcbU+CzIBAyngNjHqQy/Bisn1Nw3r+KPppO/84TVmrvfCK Received-SPF: pass client-ip=212.227.17.11; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/08 10:49:57 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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:252045 Archived-At: "Basil L. Contovounesios" writes: > > Yes, I know about the hook. But just binding it will not be enough > > because the binding will be gone when it is consulted. We would have to > > add a self-removing function at least to the local binding of the hook. > > That's what I would call a hack. > > Why? It's what minibuffer-with-setup-hook does, for example. That can use `unwind-protect' because it has not to wait an undefined period of time (until the page has been retrieved asynchronously). So we would have to consider what could happen if the user aborts loading the page, the url can't be retrieved, there is an intermediate error, and such. That's why I think using the callback of `url-retrieve' would be better/cleaner. Michael.