help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: eww - multiple buffers


From: Andreas Röhler
Subject: Re: eww - multiple buffers
Date: Thu, 9 Jun 2016 16:24:33 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Icedove/38.8.0



On 09.06.2016 12:39, Tassilo Horn wrote:
Andreas Röhler <address@hidden> writes:

Hi Andreas,

eww comes with a command "eww-list-buffers" - however, seems to exist
only one hard-coded "*eww*" buffer at time.

Is there a way to open different "*eww MY FYLE*" buffers in parallel?
Well, there's

,----[ C-h f eww-browse-url RET ]
| eww-browse-url is an autoloaded compiled Lisp function in ‘eww.el’.
|
| (eww-browse-url URL &optional NEW-WINDOW)
|
| Not documented.
`----

which can open a new buffer.  And that's used by

,----[ C-h f eww-follow-link RET ]
| eww-follow-link is an interactive compiled Lisp function in ‘eww.el’.
|
| (eww-follow-link &optional EXTERNAL MOUSE-EVENT)
|
| Browse the URL under point.
| If EXTERNAL is single prefix, browse the URL using ‘shr-external-browser’.
| If EXTERNAL is double prefix, browse in new buffer.
`----

So you'd usually start with one eww buffer and then follow links with
`C-u C-u RET' which would create a new buffer for the referenced link.

But you're right.  It seems quite strange to me that you can't call
`eww' itself with a prefix arg to make it open a new buffer...

HTH,
Tassilo

Hmm, eww-browse-url isn't designed as command.

When looking at, it seems to use the very same buffer too.

(defun eww-browse-url (url &optional new-window)
  (when new-window
    (pop-to-buffer-same-window (generate-new-buffer "*eww*"))
    (eww-mode))

;;;

Maybe worth a feature request?

Thanks all,

Andreas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]