mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-22 18:35:09 +00:00
Always save eww history
* eww.el (eww-setup-buffer): Always save history, even when called from outside the eww buffer (bug#19638).
This commit is contained in:
parent
9e089ec8a3
commit
2a0f18d9b6
@ -274,17 +274,13 @@ word(s) will be searched for via `eww-search-prefix'."
|
||||
(setq url (concat url "/"))))
|
||||
(setq url (concat eww-search-prefix
|
||||
(replace-regexp-in-string " " "+" url))))))
|
||||
(if (eq major-mode 'eww-mode)
|
||||
(when (or (plist-get eww-data :url)
|
||||
(plist-get eww-data :dom))
|
||||
(eww-save-history))
|
||||
(eww-setup-buffer)
|
||||
(plist-put eww-data :url url)
|
||||
(plist-put eww-data :title "")
|
||||
(eww-update-header-line-format)
|
||||
(let ((inhibit-read-only t))
|
||||
(insert (format "Loading %s..." url))
|
||||
(goto-char (point-min))))
|
||||
(eww-setup-buffer)
|
||||
(plist-put eww-data :url url)
|
||||
(plist-put eww-data :title "")
|
||||
(eww-update-header-line-format)
|
||||
(let ((inhibit-read-only t))
|
||||
(insert (format "Loading %s..." url))
|
||||
(goto-char (point-min)))
|
||||
(url-retrieve url 'eww-render
|
||||
(list url nil (current-buffer))))
|
||||
|
||||
@ -540,6 +536,9 @@ Currently this means either text/html or application/xhtml+xml."
|
||||
|
||||
(defun eww-setup-buffer ()
|
||||
(switch-to-buffer (get-buffer-create "*eww*"))
|
||||
(when (or (plist-get eww-data :url)
|
||||
(plist-get eww-data :dom))
|
||||
(eww-save-history))
|
||||
(let ((inhibit-read-only t))
|
||||
(remove-overlays)
|
||||
(erase-buffer))
|
||||
|
Loading…
Reference in New Issue
Block a user