GNU bug report logs -
#16211
eww should support multiple *eww* buffers
Previous Next
Reported by: Ivan Shmakov <ivan <at> siamics.net>
Date: Sat, 21 Dec 2013 11:26:01 UTC
Severity: wishlist
Tags: fixed, patch
Fixed in version 25.1
Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
>>>>> Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:
>>>>> Ivan Shmakov <ivan <at> siamics.net> writes:
>> The problem is that trying to M-x eww, or to follow a link, in such
>> a renamed buffer, results in the target document still being
>> rendered in the *eww* buffer.
> This has now been fixed on the trunk.
Not quite. Please consider the patch MIMEd.
I’d also prefer for the name of the default EWW buffer to be
customizable (another patch MIMEd), but that’s another story.
--
FSF associate member #7257 np. Čohkka — Apocalyptica … 3013 B6A0 230E 334A
[Message part 2 (text/diff, inline)]
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -664,7 +664,8 @@ defun eww-reload ()
"Reload the current page."
(interactive)
(let ((url (plist-get eww-data :url)))
- (url-retrieve url 'eww-render (list url (point)))))
+ (url-retrieve url 'eww-render
+ (list url (point) (current-buffer)))))
;; Form support.
[Message part 3 (text/diff, inline)]
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -65,6 +65,12 @@
:group 'eww
:type 'string)
+(defcustom eww-buffer-name "*eww*"
+ "Buffer name to use for rendering HTML."
+ :version "25.1"
+ :group 'eww
+ :type 'string)
+
(defcustom eww-use-external-browser-for-content-type
"\\`\\(video/\\|audio/\\|application/ogg\\)"
"Always use external browser for specified content-type."
@@ -422,7 +459,7 @@ See the `eww-search-prefix' variable for the search engine used."
(switch-to-buffer
(if (buffer-live-p buffer)
buffer
- (get-buffer-create "*eww*")))
+ (get-buffer-create eww-buffer-name)))
(let ((inhibit-read-only t))
(remove-overlays)
(erase-buffer))
This bug report was last modified 10 years and 186 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.