Subject: bug#19226: closed (Re: bug#19226: eww.el desktop support fixes: autoload eww-mode, use inhibit-read-only )

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 16 Feb 2015 19:13:03 +0000

Your bug report

#19226: eww.el desktop support fixes: autoload eww-mode, use inhibit-read-only 

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
19226: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19226
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#19226: eww.el desktop support fixes: autoload eww-mode, use inhibit-read-only
From: Ivan Shmakov <[email-masked]>
To: [email-masked]
Date: Mon, 16 Feb 2015 19:12:09 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

>>>>> Ivan Shmakov <[email-masked]> writes:

[…]

 > Would there be any objections against me pushing the (updated) fix
 > sometime within the next two days, /as well as/ a couple of unrelated
 > minor changes (both MIMEd)?

	Pushed, as there were no objections; closing.

[…]

 > (eww-list-histories): Do not pad the rightmost (URIs) column.

	… Except for this padding change, as the same change should
	probably be applied to eww-list-buffers at the same time.

[…]

commit 8b36bfafeecf5f0578c64129be1d2017483b00f7
CommitDate: 2015-02-16 19:01:50 +0000

    Add autoload cookie for the eww-suggest-uris variable.
    
    * lisp/net/eww.el (eww-suggest-uris): Add autoload cookie, so that
    add-hook works correctly even if the file is not yet loaded.

commit 2ea5364ca8d1a8dc3f8ac4c9a5ba5c7f03666258
CommitDate: 2015-02-16 18:55:02 +0000

    Fix eww.el desktop support.
    
    * lisp/net/eww.el (eww-mode): Add autoload cookie.
    (eww-restore-desktop): Use inhibit-read-only.
    
    Fixes: debbugs:19226

-- 
FSF associate member #7257  http://boycottsystemd.org/  … 3013 B6A0 230E 334A

Subject: eww.el desktop support fixes: autoload eww-mode, use inhibit-read-only
From: Ivan Shmakov <[email-masked]>
To: [email-masked]
Date: Sun, 30 Nov 2014 11:04:04 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Package:  emacs
Tags:     patch

	Please consider the patch MIMEd.

	* eww.el (eww-mode): Autoload, as expected by desktop.el.
	(eww-restore-desktop): Use inhibit-read-only when inserting
	eww-restore-reload-prompt.

-- 
FSF associate member #7257  np. Your Leaving — Jami Sieber   … B6A0 230E 334A
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -662,6 +662,8 @@
     map)
   "Tool bar for `eww-mode'.")
 
+;; autoload cookie needed by desktop.el
+;;;###autoload
 (define-derived-mode eww-mode nil "eww"
   "Mode for browsing the web.
 
@@ -1710,8 +1712,9 @@ defun eww-restore-desktop (file-name buffer-name misc-data)
 	(case eww-restore-desktop
 	  ((t auto) (eww (plist-get eww-data :url)))
 	  ((zerop (buffer-size))
-	   (insert (substitute-command-keys
-		    eww-restore-reload-prompt))))))
+	   (let ((inhibit-read-only t))
+	     (insert (substitute-command-keys
+		      eww-restore-reload-prompt)))))))
     ;; .
     (current-buffer)))