unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ivan Shmakov <ivan@siamics.net>
To: 16211@debbugs.gnu.org
Subject: bug#16211: eww should support multiple *eww* buffers
Date: Wed, 19 Nov 2014 06:47:12 +0000	[thread overview]
Message-ID: <87d28j8z67.fsf@violet.siamics.net> (raw)
In-Reply-To: <m37fz2iwk1.fsf@stories.gnus.org> (Lars Magne Ingebrigtsen's message of "Mon, 10 Nov 2014 22:18:38 +0100")

[-- Attachment #1: Type: text/plain, Size: 597 bytes --]

>>>>> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>>>>> Ivan Shmakov <ivan@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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/diff, Size: 331 bytes --]

--- 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.
 

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: Type: text/diff, Size: 704 bytes --]

--- 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))

  reply	other threads:[~2014-11-19  6:47 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-21 11:24 bug#16211: eww should support multiple *eww* buffers Ivan Shmakov
2013-12-21 20:22 ` Ted Zlatanov
2013-12-21 21:51   ` Ivan Shmakov
2013-12-22 22:36     ` Ted Zlatanov
2014-07-06 19:05       ` Ivan Shmakov
2014-11-04 16:42         ` Ted Zlatanov
2013-12-23  3:21   ` Stefan Monnier
2013-12-23 13:11     ` Ted Zlatanov
2013-12-23 18:19       ` Ivan Shmakov
2013-12-23 19:01         ` Glenn Morris
2013-12-24  8:05       ` Lars Ingebrigtsen
2013-12-24  8:49         ` Ivan Shmakov
2014-11-10 21:18           ` Lars Magne Ingebrigtsen
2014-11-19  6:47             ` Ivan Shmakov [this message]
2014-11-19  8:36               ` Ivan Shmakov
2014-11-19 17:41                 ` Lars Magne Ingebrigtsen
2014-11-30  9:59                   ` bug#19225: eww-render: runs eww-after-render-hook in the (temporary) data buffer Ivan Shmakov
2014-11-30 10:45                     ` Ivan Shmakov
2014-12-01 17:56                       ` Lars Magne Ingebrigtsen
2014-11-19 17:38               ` bug#16211: eww should support multiple *eww* buffers Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d28j8z67.fsf@violet.siamics.net \
    --to=ivan@siamics.net \
    --cc=16211@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).