From unknown Wed Aug 20 01:18:23 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#18010 <18010@debbugs.gnu.org> To: bug#18010 <18010@debbugs.gnu.org> Subject: Status: eww: desktop support Reply-To: bug#18010 <18010@debbugs.gnu.org> Date: Wed, 20 Aug 2025 08:18:23 +0000 retitle 18010 eww: desktop support=20 reassign 18010 emacs submitter 18010 Ivan Shmakov severity 18010 wishlist tag 18010 fixed patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 13 08:19:18 2014 Received: (at submit) by debbugs.gnu.org; 13 Jul 2014 12:19:18 +0000 Received: from localhost ([127.0.0.1]:53552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X6IkP-0007eJ-BN for submit@debbugs.gnu.org; Sun, 13 Jul 2014 08:19:17 -0400 Received: from fely.am-1.org ([78.47.74.50]:46944) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X6IkM-0007eB-Ag for submit@debbugs.gnu.org; Sun, 13 Jul 2014 08:19:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Type:MIME-Version:Message-ID:Date:Sender:Subject:To:From; bh=X+iRDD/ZTYVik1zoiTeO8f8ol+kkliDVVQReLNOJ+/E=; b=gh84CEh5hLR5ARUmU9cyiGxRO2H5yeUZJZGIwdXhvF8sKjb4mE1v9l+lKTeRCbgAisan5Sux6nhMIGbOUw294Hf/Rtdu52/3Nal6ATmLH42nGw69df6+ozogJidY6LpquOtb3RhPozPWS2qXdODa86vFS8W+Gd4NLGLlvgEfNfA=; Received: from host-46-241-38-202.bbcustomer.zsttk.net ([46.241.38.202] helo=waterlily.siamics.net) by fely.am-1.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1X6IkK-0003v8-S2 for submit@debbugs.gnu.org; Sun, 13 Jul 2014 12:19:13 +0000 Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by waterlily.siamics.net with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1X6Ik8-0002lQ-LH for submit@debbugs.gnu.org; Sun, 13 Jul 2014 19:19:00 +0700 Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtp (Exim 4.80) (envelope-from ) id 1X6Iiy-0007Fd-9w for submit@debbugs.gnu.org; Sun, 13 Jul 2014 19:17:48 +0700 From: Ivan Shmakov To: submit@debbugs.gnu.org Subject: eww: desktop support Date: Sun, 13 Jul 2014 12:17:47 +0000 Message-ID: <87bnst4fmc.fsf@violet.siamics.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Package: emacs Severity: wishlist Tags: patch Control: block -1 by 16211 Control: tags 16211 + patch Assuming that #16211 is resolved, adding desktop support to EWW seems pretty natural. (Why, Info already has one.) One thing to save is, obviously, eww-current-url. The other is eww-history, but that has to be filtered for the overly bulky :text, :dom, and :source properties. The last part poses a problem, as eww-restore-history does /not/ currently handle the case where :text is missing. A possible solution is to use (eww-reload) if :text is nil. As a side effect, eww-current-source and eww-current-dom will also be set. Also, AIUI, for the EWW history facility to work properly, eww-history-position is also to be saved, which is possible via desktop-locals-to-save. For anyone eager to try, the patch I suggest is MIMEd. This change looks quite substantial to be copyrightable, so I=E2=80=99d like to explicitly disclaim copyright on it, as per CC0 Public Domain Dedication [0]. For the most part, eww-desktop-history-1 function is a kind of =E2=80=98reduce=E2=80=99 or =E2=80=98remove-if=E2=80=99 for property lists= . Alas, I didn=E2=80=99t find any existing function for that, so I coded it the explicit way. --=20 FSF associate member #7257 http://boycottsystemd.org/ --=-=-= Content-Type: text/x-diff Content-Disposition: inline diff --git a/lisp/net/eww.el b/lisp/net/eww.el index 02fc575..f6ee185 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -479,6 +495,8 @@ word(s) will be searched for via `eww-search-prefix'." (setq-local eww-history-position 0) (when (boundp 'tool-bar-map) (setq-local tool-bar-map eww-tool-bar-map)) + ;; desktop support + (setq-local desktop-save-buffer 'eww-desktop-misc-data) (buffer-disable-undo) ;;(setq buffer-read-only t) ) @@ -514,15 +533,22 @@ word(s) will be searched for via `eww-search-prefix'." (eww-restore-history (elt eww-history (1- eww-history-position)))) (defun eww-restore-history (elem) - (let ((inhibit-read-only t)) - (erase-buffer) - (insert (plist-get elem :text)) - (setq eww-current-source (plist-get elem :source)) - (setq eww-current-dom (plist-get elem :dom)) - (goto-char (plist-get elem :point)) - (setq eww-current-url (plist-get elem :url) - eww-current-title (plist-get elem :title)) - (eww-update-header-line-format))) + (let ((inhibit-read-only t) + (text (plist-get elem :text)) + (pos (plist-get elem :point))) + (setq eww-current-source (plist-get elem :source) + eww-current-dom (plist-get elem :dom) + eww-current-url (plist-get elem :url)) + (if (null text) + (eww-reload) + (erase-buffer) + (insert text) + (setq eww-current-title + (plist-get elem :title)) + (eww-update-header-line-format)) + ;; FIXME: pos may no longer match the contents if the page gets reloaded + (when pos + (goto-char pos)))) (defun eww-next-url () "Go to the page marked `next'. @@ -1343,6 +1371,48 @@ Differences in #targets are ignored." (setq buffer-read-only t truncate-lines t)) +;;; Desktop support + +(defvar eww-desktop-history-save + '(:url :title :point) + "List of `eww-history' values to preserve in the desktop file.") + +(defun eww-desktop-history-1 (alist) + (let ((acc nil) + (tail alist)) + (while tail + (let ((k (car tail)) + (v (cadr tail))) + (when (memq k eww-desktop-history-save) + (setq acc (cons k (cons v acc))))) + (setq tail (cddr tail))) + acc)) + +(defun eww-desktop-misc-data (directory) + "Return a property list with data used to restore eww buffers. +This list will contain the URI to browse as the :uri property, and, as +:history, a copy of eww-history with the (usually overly large) :dom, +:source and :text properties removed." + (list :history (mapcar 'eww-desktop-history-1 eww-history) + :uri eww-current-url)) + +(defun eww-restore-desktop (file-name buffer-name misc-data) + "Restore an eww buffer from its desktop file record." + (with-current-buffer (get-buffer-create buffer-name) + (eww-mode) + ;; NB: eww-history is buffer-local per (eww-mode) + (setq eww-history (plist-get :history misc-data)) + (unless file-name + (let ((uri (plist-get :uri misc-data))) + (when uri + (eww uri)))) + (current-buffer))) + +(add-to-list 'desktop-locals-to-save + 'eww-history-position) +(add-to-list 'desktop-buffer-mode-handlers + '(eww-mode . eww-restore-desktop)) + (provide 'eww) ;;; eww.el ends here --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 13 08:43:44 2014 Received: (at control) by debbugs.gnu.org; 13 Jul 2014 12:43:44 +0000 Received: from localhost ([127.0.0.1]:53559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X6J83-0008Jr-7O for submit@debbugs.gnu.org; Sun, 13 Jul 2014 08:43:43 -0400 Received: from fely.am-1.org ([78.47.74.50]:46949) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X6J7w-0008Jf-UB for control@debbugs.gnu.org; Sun, 13 Jul 2014 08:43:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Type:MIME-Version:Message-ID:Date:Sender:Subject:To:From; bh=Pn8WhAQuy1sspc06TxMvuH0LNZc545R0qkfJVZgFzyI=; b=RMsUH8CjYni0LDElm2TljsSLVjUTH6yTpLsy6BcZ2BWvHuX/Ws/n8pQOfGP/oseSRucQSYzUa47nH2pnYOPTFFCdbizOf7xsJ8UeJlA/+Luf7kyqDUWaPhGWgyxtshx+T8d8JQvhIj3YIFYTjgAVmVHaNZy3XlrsBTOD3LWSJlk=; Received: from host-46-241-38-202.bbcustomer.zsttk.net ([46.241.38.202] helo=waterlily.siamics.net) by fely.am-1.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1X6J7v-000465-7K for control@debbugs.gnu.org; Sun, 13 Jul 2014 12:43:35 +0000 Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by waterlily.siamics.net with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1X6J7o-0002wU-SC for control@debbugs.gnu.org; Sun, 13 Jul 2014 19:43:28 +0700 Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtp (Exim 4.80) (envelope-from ) id 1X6J7o-0007IL-1v for control@debbugs.gnu.org; Sun, 13 Jul 2014 19:43:28 +0700 From: Ivan Shmakov To: control@debbugs.gnu.org Subject: tweak eww-related bugs Date: Sun, 13 Jul 2014 12:43:27 +0000 Message-ID: <877g3h4efk.fsf@violet.siamics.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) block 18010 by 16211 tags 16211 + patch thanks (Somehow, Control: lines in my #18010 report had no effect.) -- FSF associate member #7257 http://boycottsystemd.org/ From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 04 11:36:08 2014 Received: (at 18010) by debbugs.gnu.org; 4 Nov 2014 16:36:08 +0000 Received: from localhost ([127.0.0.1]:48986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xlh5U-0002Sp-8M for submit@debbugs.gnu.org; Tue, 04 Nov 2014 11:36:08 -0500 Received: from mail-qc0-f176.google.com ([209.85.216.176]:59539) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xlh5R-0002Sf-L4 for 18010@debbugs.gnu.org; Tue, 04 Nov 2014 11:36:06 -0500 Received: by mail-qc0-f176.google.com with SMTP id x3so11297043qcv.35 for <18010@debbugs.gnu.org>; Tue, 04 Nov 2014 08:36:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lifelogs.com; s=google; h=from:to:cc:subject:organization:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=YDc8IP1KBYH3o6lFbOFPAbWE48+cQ6ypxtJvMn8pa4A=; b=YIW9oD3ybFGIN6nmNS6uThq5X3uySBRtdQIvBqkQfsimI9EJwG89iatWM4L7DAGtTC +emaklSlx9SEMPLbZfUXSZMn0iwbzE0GT6Bp80aH2YeqoRCd6NBazyNNQRHTB8On9ElQ B13aI5pfsrYmUG7cXnPVmzpkFIJXIOi982K/0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:organization:references :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=YDc8IP1KBYH3o6lFbOFPAbWE48+cQ6ypxtJvMn8pa4A=; b=epSUYY+KML+8whDUYe2VMeRPXzslsN8FZ8xcOPfJnzv3DCXIRH8snyActSffkeVdRE a1iOvgWEqAYeWW3bannVgh26+fxA84H5RYz4gdF6cYetmDMxBEUHooEXVfXqtCPf1wN7 wiw5bX1wjDetiF5mDvr74N/2FzyoztM8UlthHqAbodFRiPNVXiXFgrsc2UZXGqYMBTuB AUY2wNU4uVIBkavG2ENS8VzJ14FQIdiZ22yQqHVi0b1b5kPXLfNwJxN4lsxFBQeK+dHU VpwmRvpnyCvWlf3OYGkIq74d0xz7qhblR+FuaRnqc18XqWxqmWBcgSmPYOL6LIh0KXza l1Hg== X-Gm-Message-State: ALoCoQm08h8Z06AlQbmfn0ZX6GotBFIlULYRjggz6A7CfNWP40UT04lE0rF7qoEfDPQi0FbbpPZ+ X-Received: by 10.224.97.10 with SMTP id j10mr76990920qan.103.1415118963813; Tue, 04 Nov 2014 08:36:03 -0800 (PST) Received: from flea (c-98-229-61-72.hsd1.ma.comcast.net. [98.229.61.72]) by mx.google.com with ESMTPSA id 11sm752206qgj.34.2014.11.04.08.36.03 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 04 Nov 2014 08:36:03 -0800 (PST) From: Ted Zlatanov To: Ivan Shmakov Subject: Re: bug#18010: eww: desktop support Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos References: <87bnst4fmc.fsf@violet.siamics.net> X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Tue, 04 Nov 2014 11:36:18 -0500 In-Reply-To: <87bnst4fmc.fsf@violet.siamics.net> (Ivan Shmakov's message of "Sun, 13 Jul 2014 12:17:47 +0000") Message-ID: <87mw867wjh.fsf@lifelogs.com> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18010 Cc: 18010@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Sun, 13 Jul 2014 12:17:47 +0000 Ivan Shmakov wrote: IS> Package: emacs IS> Severity: wishlist IS> Tags: patch IS> Control: block -1 by 16211 IS> Control: tags 16211 + patch IS> Assuming that #16211 is resolved, adding desktop support to EWW IS> seems pretty natural. (Why, Info already has one.) I'm OK with this in principle and think it's nicely useful, but the patch is too large so Lars will have to review it. Ted From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 10 16:24:28 2014 Received: (at 18010) by debbugs.gnu.org; 10 Nov 2014 21:24:29 +0000 Received: from localhost ([127.0.0.1]:56372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnwRo-0002IS-E8 for submit@debbugs.gnu.org; Mon, 10 Nov 2014 16:24:28 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:37951) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnwRm-0002IH-0w for 18010@debbugs.gnu.org; Mon, 10 Nov 2014 16:24:26 -0500 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1XnwRU-0001cR-CU; Mon, 10 Nov 2014 22:24:08 +0100 From: Lars Magne Ingebrigtsen To: Ivan Shmakov Subject: Re: bug#18010: eww: desktop support References: <87bnst4fmc.fsf@violet.siamics.net> X-Now-Playing: The Cure's _Kiss Me, Kiss Me, Kiss Me_ X-Hashcash: 1:23:141110:ivan@siamics.net::r1qBftaox/YI0d5K:0447t X-Hashcash: 1:23:141110:18010@debbugs.gnu.org::xO22SZ7IX+4AhpVf:0000000000000000000000000000000000000000E6nc Date: Mon, 10 Nov 2014 22:24:07 +0100 In-Reply-To: <87bnst4fmc.fsf@violet.siamics.net> (Ivan Shmakov's message of "Sun, 13 Jul 2014 12:17:47 +0000") Message-ID: User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-MailScanner-ID: 1XnwRU-0001cR-CU X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1416259448.54923@bifGLtzREUuimwOBKYrkWQ X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18010 Cc: 18010@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Ivan Shmakov writes: > Also, AIUI, for the EWW history facility to work properly, > eww-history-position is also to be saved, which is possible via > desktop-locals-to-save. > > For anyone eager to try, the patch I suggest is MIMEd. This looks very nice, but the history saving has changed a bit (earlier today :-), so the patch won't apply now.=20=20 > This change looks quite substantial to be copyrightable, so I=92d > like to explicitly disclaim copyright on it, as per > CC0 Public Domain Dedication [0]. But I've never applied a patch of this size that I haven't had paperwork for. Could someone advise here? Would this disclaimal (that should be a word) suffice? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 10 16:32:31 2014 Received: (at 18010) by debbugs.gnu.org; 10 Nov 2014 21:32:31 +0000 Received: from localhost ([127.0.0.1]:56387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnwZb-0003v2-34 for submit@debbugs.gnu.org; Mon, 10 Nov 2014 16:32:31 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:38774) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnwZZ-0003uv-Le for 18010@debbugs.gnu.org; Mon, 10 Nov 2014 16:32:30 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1XnwZX-00086m-SD; Mon, 10 Nov 2014 16:32:27 -0500 From: Glenn Morris To: Lars Magne Ingebrigtsen Subject: Re: bug#18010: eww: desktop support References: <87bnst4fmc.fsf@violet.siamics.net> X-Spook: undercover CISU Defcon M-14 Qaddafi Leitrim brigand X-Ran: blF5D^g%/0u3z.cV*c8,3qf*Op\r~"&+z_gmUuV3;L*PBk*Ve8"Ifs@D,R2>Uz"dg6$B~( X-Hue: white X-Debbugs-No-Ack: yes X-Attribution: GM Date: Mon, 10 Nov 2014 16:32:27 -0500 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Mon, 10 Nov 2014 22:24:07 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: 18010 Cc: 18010@debbugs.gnu.org, Ivan Shmakov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) Lars Magne Ingebrigtsen wrote: >> This change looks quite substantial to be copyrightable, so I'd >> like to explicitly disclaim copyright on it, as per >> CC0 Public Domain Dedication [0]. > > But I've never applied a patch of this size that I haven't had paperwork > for. Could someone advise here? Would this disclaimal (that should be > a word) suffice? No, it doesn't suffice. But the OP has an assignment on file now, so just go ahead. From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 10 16:36:44 2014 Received: (at 18010) by debbugs.gnu.org; 10 Nov 2014 21:36:44 +0000 Received: from localhost ([127.0.0.1]:56413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xnwdg-00046L-H6 for submit@debbugs.gnu.org; Mon, 10 Nov 2014 16:36:44 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:40715) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xnwde-00046C-M1 for 18010@debbugs.gnu.org; Mon, 10 Nov 2014 16:36:43 -0500 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1XnwdN-0001n1-8z; Mon, 10 Nov 2014 22:36:25 +0100 From: Lars Magne Ingebrigtsen To: Glenn Morris Subject: Re: bug#18010: eww: desktop support References: <87bnst4fmc.fsf@violet.siamics.net> X-Now-Playing: The Cure's _Kiss Me, Kiss Me, Kiss Me_ X-Hashcash: 1:23:141110:18010@debbugs.gnu.org::ooOMRahrRVcKztsf:00000000000000000000000000000000000000005LG6 X-Hashcash: 1:23:141110:ivan@siamics.net::djW/HMjmkWARxKGn:0BxsA X-Hashcash: 1:23:141110:rgm@gnu.org::maC+mfZ33m+nqPLL:000000M636 Date: Mon, 10 Nov 2014 22:36:24 +0100 In-Reply-To: (Glenn Morris's message of "Mon, 10 Nov 2014 16:32:27 -0500") Message-ID: User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1XnwdN-0001n1-8z X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1416260185.44752@pLvLXeceSXtDDhbn9KIvkw X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18010 Cc: 18010@debbugs.gnu.org, Ivan Shmakov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Glenn Morris writes: > But the OP has an assignment on file now, so just go ahead. Great. Ivan, if you could respin this patch to apply to eww now, I'll apply it. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 19 05:24:44 2014 Received: (at 18010) by debbugs.gnu.org; 19 Nov 2014 10:24:44 +0000 Received: from localhost ([127.0.0.1]:37852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xr2RE-00060a-MD for submit@debbugs.gnu.org; Wed, 19 Nov 2014 05:24:44 -0500 Received: from fely.am-1.org ([78.47.74.50]:41364) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xr2R9-00060N-1Z for 18010@debbugs.gnu.org; Wed, 19 Nov 2014 05:24:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=OvmiPaIFcd2QXWr34DvNLDAx9I0H5whdkSjseZ5NWXU=; b=edxhhHaeZmH9LKppTiFhUuyIsQkQc2dUXuU6wwiFZ0A5gpAQ0Bo6pQ4nd+js3O8L/TWwo0RX4oQmf+nPLezLKKZNDamE+Jk4s9XuHfMRdAvxIr4Z08kQ1xH/yAEYDWF64q8DzMXDvZLh14SL1zieiR5pvbqT1Pz4xv9E1hyvlhY=; Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1Xr2R7-0002uY-Tv for 18010@debbugs.gnu.org; Wed, 19 Nov 2014 10:24:34 +0000 Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1Xr2R0-0005i9-V6 for 18010@debbugs.gnu.org; Wed, 19 Nov 2014 17:24:27 +0700 From: Ivan Shmakov To: 18010@debbugs.gnu.org Subject: Re: bug#18010: eww: desktop support References: <87bnst4fmc.fsf@violet.siamics.net> Date: Wed, 19 Nov 2014 10:24:26 +0000 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Mon, 10 Nov 2014 22:36:24 +0100") Message-ID: <87d28j7ajp.fsf@violet.siamics.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 18010 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable >>>>> Lars Magne Ingebrigtsen writes: > Ivan, if you could respin this patch to apply to eww now, I'll apply > it. Please consider the patch MIMEd. Albeit I=E2=80=99ve tested it only somewhat superficially, it does seem to work as intended. Beware of the line numbers being slightly offset, for I also have other patches applied to eww.el locally. --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A --=-=-= Content-Type: text/plain Content-Disposition: inline --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -65,6 +65,36 @@ :group 'eww :type 'string) +(defcustom eww-desktop-remove-duplicates t + "Whether to remove duplicates from the history when saving desktop data. +If non-nil, repetitive EWW history entries (comprising of the URI, the +title, and the point position) will not be saved as part of the Emacs +desktop. Otherwise, such entries will be retained." + :version "24.4" + :group 'eww + :type 'boolean) + +(defcustom eww-restore-desktop nil + "How to restore EWW buffers on `desktop-restore'. +If t or 'auto, the buffers will be reloaded automatically. +If nil, buffers will require manual reload, and will contain the text +specified in `eww-restore-reload-prompt' instead of the actual Web +page contents." + :version "24.4" + :group 'eww + :type '(choice (const :tag "Restore all automatically" t) + (const :tag "Require manual reload" nil))) + +(defcustom eww-restore-reload-prompt + "\n\n *** Use \\[eww-reload] to reload this buffer. ***\n" + "The string to put in the buffers not reloaded on `desktop-restore'. +This prompt will be used if `eww-restore-desktop' is nil. + +The string will be passed through `substitute-command-keys'." + :version "24.4" + :group 'eww + :type 'string) + (defcustom eww-use-external-browser-for-content-type "\\`\\(video/\\|audio/\\|application/ogg\\)" "Always use external browser for specified content-type." @@ -583,6 +633,8 @@ define-derived-mode eww-mode nil "eww" (setq-local eww-history-position 0) (when (boundp 'tool-bar-map) (setq-local tool-bar-map eww-tool-bar-map)) + ;; desktop support + (setq-local desktop-save-buffer 'eww-desktop-misc-data) (buffer-disable-undo) (setq buffer-read-only t)) @@ -611,12 +660,15 @@ (eww-restore-history (elt eww-history (1- eww-history-position)))) (defun eww-restore-history (elem) - (let ((inhibit-read-only t)) - (erase-buffer) - (insert (plist-get elem :text)) - (goto-char (plist-get elem :point)) + (let ((inhibit-read-only t) + (text (plist-get elem :text))) (setq eww-data elem) - (eww-update-header-line-format))) + (if (null text) + (eww-reload) ; FIXME: restore :point? + (erase-buffer) + (insert text) + (goto-char (plist-get elem :point)) + (eww-update-header-line-format)))) (defun eww-next-url () "Go to the page marked `next'. @@ -1518,6 +1585,82 @@ (setq buffer-read-only t truncate-lines t)) +;;; Desktop support + +(defvar eww-desktop-data-save + '(:url :title :point) + "List of `eww-data' properties to preserve in the desktop file. +Also used when saving `eww-history'.") + +(defun eww-desktop-data-1 (alist) + (let ((acc nil) + (tail alist)) + (while tail + (let ((k (car tail)) + (v (cadr tail))) + (when (memq k eww-desktop-data-save) + (setq acc (cons k (cons v acc))))) + (setq tail (cddr tail))) + acc)) + +(defun eww-desktop-history-duplicate (a b) + (let ((tail a) (r t)) + (while tail + (if (or (memq (car tail) '(:point)) ; ignore :point + (equal (cadr tail) + (plist-get b (car tail)))) + (setq tail (cddr tail)) + (setq tail nil + r nil))) + ;; . + r)) + +(defun eww-desktop-misc-data (directory) + "Return a property list with data used to restore eww buffers. +This list will contain, as :history, the list, whose first element is +the value of `eww-data', and the tail is `eww-history'. + +If `eww-desktop-remove-duplicates' is non-nil, duplicate +entries (if any) will be removed from the list. + +Only the properties listed in `eww-desktop-data-save' are included. +Generally, the list should not include the (usually overly large) +:dom, :source and :text properties." + (let ((history (mapcar 'eww-desktop-data-1 + (cons eww-data eww-history)))) + (list :history (if eww-desktop-remove-duplicates + (remove-duplicates + history :test 'eww-desktop-history-duplicate) + history)))) + +(defun eww-restore-desktop (file-name buffer-name misc-data) + "Restore an eww buffer from its desktop file record. +If `eww-restore-desktop' is t or 'auto, this function will also +initiate the retrieval of the respective URI in the background. +Otherwise, the restored buffer will contain a prompt to do so by using +\\[eww-reload]." + (with-current-buffer (get-buffer-create buffer-name) + (eww-mode) + ;; NB: eww-history, eww-data are buffer-local per (eww-mode) + (setq eww-history (cdr (plist-get misc-data :history)) + eww-data (or (car (plist-get misc-data :history)) + ;; backwards compatibility + (list :url (plist-get misc-data :uri)))) + (unless file-name + (when (plist-get eww-data :url) + (case eww-restore-desktop + ((t auto) (eww (plist-get eww-data :url))) + ((zerop (buffer-size)) + (insert (substitute-command-keys + eww-restore-reload-prompt)))))) + ;; . + (current-buffer))) + +(add-to-list 'desktop-locals-to-save + 'eww-history-position) +(add-to-list 'desktop-buffer-mode-handlers + '(eww-mode . eww-restore-desktop)) + (provide 'eww) ;;; eww.el ends here --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 19 12:24:20 2014 Received: (at 18010) by debbugs.gnu.org; 19 Nov 2014 17:24:20 +0000 Received: from localhost ([127.0.0.1]:38517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xr8zI-0002NN-Br for submit@debbugs.gnu.org; Wed, 19 Nov 2014 12:24:20 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:55415) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xr8zD-0002N8-4o for 18010@debbugs.gnu.org; Wed, 19 Nov 2014 12:24:14 -0500 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Xr8yr-0002bD-EW; Wed, 19 Nov 2014 18:23:49 +0100 From: Lars Magne Ingebrigtsen To: Ivan Shmakov Subject: Re: bug#18010: eww: desktop support References: <87bnst4fmc.fsf@violet.siamics.net> <87d28j7ajp.fsf@violet.siamics.net> X-Now-Playing: Mapstation's _Distance Told Me Things To Be Said_: "The Way Things Change" X-Hashcash: 1:23:141119:18010@debbugs.gnu.org::U1/rbP6vviU4Dcd5:0000000000000000000000000000000000000000VMbZ X-Hashcash: 1:23:141119:ivan@siamics.net::oUSmJsEHhXMbW4y4:0qJBj Date: Wed, 19 Nov 2014 18:23:48 +0100 In-Reply-To: <87d28j7ajp.fsf@violet.siamics.net> (Ivan Shmakov's message of "Wed, 19 Nov 2014 10:24:26 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-MailScanner-ID: 1Xr8yr-0002bD-EW X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1417022629.70038@QB8H+kSYDsFaG1Hoq8i6sg X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18010 Cc: 18010@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Ivan Shmakov writes: >>>>>> Lars Magne Ingebrigtsen writes: > > > Ivan, if you could respin this patch to apply to eww now, I'll apply > > it. > > Please consider the patch MIMEd. Albeit I=92ve tested it only > somewhat superficially, it does seem to work as intended. > > Beware of the line numbers being slightly offset, for I also > have other patches applied to eww.el locally. Applied now. Could you also write a NEWS entry and possibly write documentation for this? Either in the eww manual or somewhere in the desktop manual, I guess. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 19 15:19:08 2014 Received: (at 18010) by debbugs.gnu.org; 19 Nov 2014 20:19:08 +0000 Received: from localhost ([127.0.0.1]:38689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XrBiS-0003jX-BH for submit@debbugs.gnu.org; Wed, 19 Nov 2014 15:19:08 -0500 Received: from fely.am-1.org ([78.47.74.50]:41473) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XrBiM-0003j4-2z for 18010@debbugs.gnu.org; Wed, 19 Nov 2014 15:19:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=URNC/pu1aojHU3mlYGEyS9v7PVjcV7O7HjzufM7cEd0=; b=EC+QexCDgndr1xDlDAjQNp7YFVVUGYvwSwisMko/xl5rarTrPvEPq/ijtGCj7cN5bXVmZnIKUl17/KeuVY4XKytbInZCWiVZy6NShHTMCi7CbAMrw7yEVF0Y60l4/p0O67rOB3WEIG/mML00DuD8SObnpy36ALKRDAQNd4cUEvA=; Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1XrBiL-000795-0d for 18010@debbugs.gnu.org; Wed, 19 Nov 2014 20:18:57 +0000 Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1XrBhE-0007Ch-Jw for 18010@debbugs.gnu.org; Thu, 20 Nov 2014 03:17:48 +0700 From: Ivan Shmakov To: 18010@debbugs.gnu.org Subject: Re: bug#18010: eww: desktop support References: <87bnst4fmc.fsf@violet.siamics.net> <87d28j7ajp.fsf@violet.siamics.net> Date: Wed, 19 Nov 2014 20:17:48 +0000 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Wed, 19 Nov 2014 18:23:48 +0100") Message-ID: <87a93n2bdf.fsf@violet.siamics.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 18010 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) >>>>> Lars Magne Ingebrigtsen writes: [=E2=80=A6] > Could you also write a NEWS entry and possibly write documentation > for this? I=E2=80=99ll try to get to it within the next few days. > Either in the eww manual or somewhere in the desktop manual, I guess. As it seems, the =E2=80=9CSaving Emacs Sessions=E2=80=9D (emacs/misc.texi) section is only concerned with the facilities of desktop.el proper. Thus the documentation for eww-desktop-* belongs to misc/eww.texi. --=20 FSF associate member #7257 np. Isle of Avalon =E2=80=94 Iron Maiden =E2= =80=A6 230E 334A From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 23 10:10:47 2014 Received: (at 18010) by debbugs.gnu.org; 23 Nov 2014 15:10:47 +0000 Received: from localhost ([127.0.0.1]:42740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XsYoF-0008Ez-0F for submit@debbugs.gnu.org; Sun, 23 Nov 2014 10:10:47 -0500 Received: from fely.am-1.org ([78.47.74.50]:42012) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XsYo9-0008Em-DZ for 18010@debbugs.gnu.org; Sun, 23 Nov 2014 10:10:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=u2SjRQnJrftL52KytMoXrITN+TmHi/ow9RvfPmf51Ms=; b=T8wrBeJbVORoO7Ese5pZFAhEEE82i03Jjdzgl0zQT1KBhXFNRcmz9qHYkZW4e8yzH70PrVJb1JN/18glj5yZWDc5pJ0qGNaKwRSVoQrmQyVGLql2u/uaciTMBpprvGa3JYO7GDpqDUCPa+IAqsd55zPdOIL4ycwDudF4VALdW8c=; Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1XsYo6-0006wf-5f for 18010@debbugs.gnu.org; Sun, 23 Nov 2014 15:10:34 +0000 Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1XsYny-00055V-Uj for 18010@debbugs.gnu.org; Sun, 23 Nov 2014 22:10:27 +0700 From: Ivan Shmakov To: 18010@debbugs.gnu.org Subject: Re: bug#18010: eww: desktop support References: <87bnst4fmc.fsf@violet.siamics.net> <87d28j7ajp.fsf@violet.siamics.net> Date: Sun, 23 Nov 2014 15:10:26 +0000 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Wed, 19 Nov 2014 18:23:48 +0100") Message-ID: <87h9xquf4t.fsf@violet.siamics.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 18010 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable >>>>> Lars Magne Ingebrigtsen writes: [=E2=80=A6] > Could you also write a NEWS entry and possibly write documentation > for this? Either in the eww manual or somewhere in the desktop > manual, I guess. Please consider the patch MIMEd. I was unsure where to put the details of the EWW desktop support in eww.texi, so I=E2=80=99ve added them to the end of the =E2=80=9CAdvance= d=E2=80=9D section, as they=E2=80=99re somewhat obscure and unlikely to require much of the user=E2=80=99s attention. What may require such attention is, however, the possible use of (setq desktop-save-buffer nil) to disable this new feature. --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A --=-=-= Content-Type: text/diff Content-Disposition: inline --- a/doc/misc/eww.texi 2014-11-23 10:57:19 +0000 +++ b/doc/misc/eww.texi 2014-11-23 14:57:43 +0000 @@ -219,6 +219,40 @@ variables @code{shr-color-visible-distance-min} and @code{shr-color-visible-luminance-min} to get a better contrast. +@cindex Desktop Support +@cindex Saving Sessions + In addition to maintaining the history at run-time, EWW will also +save the partial state of its buffers (the URIs and the titles of the +pages visited) in the desktop file if one is used. @xref{Saving Emacs +Sessions, , emacs, The GNU Emacs Manual} + +@vindex eww-desktop-remove-duplicates + EWW history may sensibly contain multiple entries for the same page +URI. At run-time, these entries may still have different associated +point positions or the actual Web page contents. +The latter, however, tend to be overly large to preserve in the +desktop file, so they get omitted, thus rendering the respective +entries entirely equivalent. By default, such duplicate entries are +not saved. Setting @code{eww-desktop-remove-duplicates} to nil will +force EWW to save them anyway. + +@vindex eww-restore-desktop + Restoring EWW buffers' contents may prove to take too long to +finish. When the @code{eww-restore-desktop} variable is set to +@code{nil} (the default), EWW will not try to reload the last visited +Web page when the buffer is restored from the desktop file, thus +allowing for faster Emacs start-up times. When set to @code{t}, +restoring the buffers will also initiate the reloading of such pages. + +@vindex eww-restore-reload-prompt + The EWW buffer restored from the desktop file but not yet reloaded +will contain a prompt, as specified by the +@code{eww-restore-reload-prompt} variable. The value of this variable +will be passed through @code{substitute-command-keys} upon each use, +thus allowing for the use of the usual substitutions, such as +@code{\[eww-reload]} for the current key binding of the +@code{eww-reload} command. + @node History and Acknowledgments @appendix History and Acknowledgments --- a/etc/NEWS 2014-11-23 10:57:19 +0000 +++ b/etc/NEWS 2014-11-22 19:35:16 +0000 @@ -177,6 +177,9 @@ *** You can now use several eww buffers in parallel by renaming eww buffers you want to keep separate. +*** Partial state of the eww buffers (the URIs and the titles of the +pages visited) is now preserved in the desktop file. + *** `eww-after-render-hook' is now called after eww has rendered the data in the buffer. --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 23 10:45:01 2014 Received: (at 18010) by debbugs.gnu.org; 23 Nov 2014 15:45:01 +0000 Received: from localhost ([127.0.0.1]:42794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XsZLQ-0000fc-Mz for submit@debbugs.gnu.org; Sun, 23 Nov 2014 10:45:00 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:52746) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XsZLO-0000fU-Uy for 18010@debbugs.gnu.org; Sun, 23 Nov 2014 10:44:59 -0500 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1XsZL7-0005mT-5B; Sun, 23 Nov 2014 16:44:41 +0100 From: Lars Magne Ingebrigtsen To: Ivan Shmakov Subject: Re: bug#18010: eww: desktop support References: <87bnst4fmc.fsf@violet.siamics.net> <87d28j7ajp.fsf@violet.siamics.net> <87h9xquf4t.fsf@violet.siamics.net> X-Now-Playing: Missy "Misdemeanor" Elliott's _Miss E ...So Addictive_: "Lick Shots" X-Hashcash: 1:23:141123:18010@debbugs.gnu.org::ZGE6bcUtQqp+H+Gr:0000000000000000000000000000000000000000Ekm4 X-Hashcash: 1:23:141123:ivan@siamics.net::kGQHkjRM/RtkxvAk:0n2g+ Date: Sun, 23 Nov 2014 16:44:40 +0100 In-Reply-To: <87h9xquf4t.fsf@violet.siamics.net> (Ivan Shmakov's message of "Sun, 23 Nov 2014 15:10:26 +0000") Message-ID: User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-MailScanner-ID: 1XsZL7-0005mT-5B X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1417362281.33969@LpylD5bjoJt+GmQ48O+Xnw X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18010 Cc: 18010@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Ivan Shmakov writes: > I was unsure where to put the details of the EWW desktop support > in eww.texi, so I=92ve added them to the end of the =93Advanced=94 > section, as they=92re somewhat obscure and unlikely to require > much of the user=92s attention. > > What may require such attention is, however, the possible use of > (setq desktop-save-buffer nil) to disable this new feature. Thanks; applied. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 23 10:45:08 2014 Received: (at control) by debbugs.gnu.org; 23 Nov 2014 15:45:08 +0000 Received: from localhost ([127.0.0.1]:42798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XsZLY-0000li-2T for submit@debbugs.gnu.org; Sun, 23 Nov 2014 10:45:08 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:52752) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XsZLT-0000gq-AE for control@debbugs.gnu.org; Sun, 23 Nov 2014 10:45:03 -0500 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1XsZLC-0005ma-4g for control@debbugs.gnu.org; Sun, 23 Nov 2014 16:44:46 +0100 Date: Sun, 23 Nov 2014 16:44:45 +0100 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #18010 X-MailScanner-ID: 1XsZLC-0005ma-4g X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1417362286.34033@VcBnBfnYRLVkkqt/ADa+Bw X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) tags 18010 fixed close 18010 25.1 From unknown Wed Aug 20 01:18:23 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 22 Dec 2014 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator