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

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

Re: eww - multiple buffers


From: Kaushal Modi
Subject: Re: eww - multiple buffers
Date: Thu, 09 Jun 2016 14:31:47 +0000

I have been using this snippet from ergoemacs,org and it has been working
great for me:

    ;; Auto-rename new eww buffers
    ;; http://ergoemacs.org/emacs/emacs_eww_web_browser.html
    (defun xah-rename-eww-hook ()
      "Rename eww browser's buffer so sites open in new page."
      (rename-buffer "eww" t))
    (add-hook 'eww-mode-hook #'xah-rename-eww-hook)


On Thu, Jun 9, 2016 at 10:22 AM Andreas Röhler <
address@hidden> wrote:

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

-- 
Kaushal Modi


reply via email to

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