all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: "Andreas Röhler" <andreas.roehler@easy-emacs.de>,
	"Tassilo Horn" <tsdh@gnu.org>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: eww - multiple buffers
Date: Thu, 09 Jun 2016 14:31:47 +0000	[thread overview]
Message-ID: <CAFyQvY0Q-d67GYek=2uwHj6CJrMG_jaRg7k5x=3oFSyD8uwMuw@mail.gmail.com> (raw)
In-Reply-To: <57597C21.2000409@easy-emacs.de>

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 <
andreas.roehler@easy-emacs.de> wrote:

>
>
> On 09.06.2016 12:39, Tassilo Horn wrote:
> > Andreas Röhler <andreas.roehler@easy-emacs.de> 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	other threads:[~2016-06-09 14:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-09  7:27 eww - multiple buffers Andreas Röhler
2016-06-09 10:39 ` Tassilo Horn
2016-06-09 10:55   ` Rasmus
2016-06-09 14:24   ` Andreas Röhler
2016-06-09 14:31     ` Kaushal Modi [this message]
2016-06-10 14:57     ` Michael Heerdegen
2016-06-13  8:21       ` Andreas Röhler
2016-06-13  8:55       ` Andreas Röhler

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

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

  git send-email \
    --in-reply-to='CAFyQvY0Q-d67GYek=2uwHj6CJrMG_jaRg7k5x=3oFSyD8uwMuw@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=andreas.roehler@easy-emacs.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tsdh@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.