Commit 2ea5364c authored by Ivan Shmakov's avatar Ivan Shmakov
Browse files

Fix eww.el desktop support.

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

Fixes: debbugs:19226
parent c4e2be45
2015-02-16 Ivan Shmakov <ivan@siamics.net>
* net/eww.el: Fix desktop support. (Bug#19226)
(eww-mode): Add autoload cookie.
(eww-restore-desktop): Use inhibit-read-only.
2015-02-16 Stefan Monnier <monnier@iro.umontreal.ca>
 
* emacs-lisp/eieio.el (defclass): Use make-instance rather than
......
......@@ -686,6 +686,8 @@ the like."
map)
"Tool bar for `eww-mode'.")
;; Autoload cookie needed by desktop.el.
;;;###autoload
(define-derived-mode eww-mode special-mode "eww"
"Mode for browsing the web."
(setq-local eww-data (list :title ""))
......@@ -1877,8 +1879,9 @@ Otherwise, the restored buffer will contain a prompt to do so by using
(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)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment