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: Wed, 10 Jun 2020 14:01:52 +0200 Message-ID: <87d067i0y7.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> <87pna9wr1o.fsf@web.de> <87mu5d1osn.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="37697"; 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 Wed Jun 10 14:14:52 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 1jizd6-0009fv-PO for ged-emacs-devel@m.gmane-mx.org; Wed, 10 Jun 2020 14:14:52 +0200 Original-Received: from localhost ([::1]:46886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jizd5-0006Ru-Hj for ged-emacs-devel@m.gmane-mx.org; Wed, 10 Jun 2020 08:14:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jizQc-0004ng-Eg for emacs-devel@gnu.org; Wed, 10 Jun 2020 08:01:58 -0400 Original-Received: from mout.web.de ([212.227.15.4]:51477) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jizQa-0003W6-Ms for emacs-devel@gnu.org; Wed, 10 Jun 2020 08:01:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1591790514; bh=JQpUGgdaxx08yrqyurUxivEjS6qcBZbUJNgQOc6Nr88=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=WWA4tE30+p8RABSo4uMhz1sN0mhpw8gcq60Jbz4LAdxDde9tPRv5jJObNgO7iHeFb Q5cbK7rirHgzuaKRs2UAb4a/cmj6CKijivoxytoI0bl/6zhv42VwPfH+DvTASi5jZL VpyXXP0tIJ/GKBTuibh0UI472r6umrXlkSk2kbbA= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([94.217.119.187]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Lo0YS-1jGGJV3cs4-00g2HB; Wed, 10 Jun 2020 14:01:54 +0200 In-Reply-To: <87mu5d1osn.fsf@tcd.ie> (Basil L. Contovounesios's message of "Mon, 08 Jun 2020 17:54:16 +0100") X-Provags-ID: V03:K1:WvuiJ2Z+qReSHCEy7CQ6CgWiH8mntKWnS9LW3v5b0JPLwyt2vj7 ccoJv8JqOHNj0CRgymHykLU9TPkx9G+AwONVCC68m4FUYvZKylbqiMXdXzfRZYuB+fqcOU6 BgIIo6eHPX0ZCbaRZZ7ib6OjYasIkegCeEZlH0wPs+pBQH8MTL4HVGqrHqEFexx5568NPAg agzQ1O8q99o45zSGY7XVw== X-UI-Out-Filterresults: notjunk:1;V03:K0:gOIZFNhdXBc=:sOqmR3kO5weuGf/5GMEkV+ qvc/r3disIk9QzTv2gdPXTLu7zTucpOiBtNSnkepcm4e7yKe/gkwoBJYErK3Y9sfvFwV7OpVH Kg4hsFAXBK0mPw1xWDn2EdWdpyIjzjDtp+ZkLvnEuXsT1ImkmHDSF5QK3clQKWoRGUZPIjaYd Lh7O3hX9i6wsl5sfCp8TcRO6i5DA2806bLcjx74xjCrNNuugk8U/vzAvF7SMAjQ5DM7ANqJeE wDZGueMgMHWLz5yhrBFTtITwFeRtAlnphmYmPhmbMut3CV2ISXzRVv0KXAJN9V5RiVR9oWFbV WXjjV/DncE9ruuPvObqDNQy80HsuiB3r9mJmo+8wmhNAEeHAPOykL8loTQn3XbZxBN3eoPErR WK3XXdBn8NjAltXUsaguu2Mx6p7cgLbd7rTIBSaCLU9bTXUN3noV9pHKdnCQM+P+KJV6cStLq EVfVI2ZeEhTi8MR2wlH2H2BRuf3L9k4RyrjstliAwj8+qcq9UW4gIBSjkfpE5/hbGdyTsF7SE 7psqZIkHtBEnBsAJPzJUrGLf8nyqQ6Y1s6ywF1o7HxExEPP/DgoehqK2aZUzeSwatyG+ZfHyW 5yRCH06ePeCPIEeC+jyW/7RJKHYBrWTOT8NCEqXQaCRSvjFoeRl54bRalLzUvr6z8zqtafadr 7lQdIjyeiG5F6Ai11z4pTccc8nKRlTmOlC8fh6hpmiOjWLKql85p7DLl6s0gRGw9iEut+1r4k 82kHtpNB9SaJg51VrGOEdGpWtj/w9RLFLvFIOj7d9chzQaArcrPGOjgZcDvvD6uJzXKIntOe Received-SPF: pass client-ip=212.227.15.4; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/10 08:01:55 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.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-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:252070 Archived-At: "Basil L. Contovounesios" writes: > > 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. > > Could you store the desired callback or other values in eww-data? I guess. But it's not the solution I would prefer. BTW, `eww-render' already has a POINT argument. Not quite enough for our purpose, though. Another alternative: we could make the callback arg of the `url-retrieve' call in `eww' a closure remembering the value of `eww-after-render-hook'. That would make binding the hook variable work as expected. Michael.