all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: Tassilo Horn <tsdh@gnu.org>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: eww - multiple buffers
Date: Thu, 9 Jun 2016 16:24:33 +0200	[thread overview]
Message-ID: <57597C21.2000409@easy-emacs.de> (raw)
In-Reply-To: <87twh2abnw.fsf@gnu.org>



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




  parent reply	other threads:[~2016-06-09 14:24 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 [this message]
2016-06-09 14:31     ` Kaushal Modi
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=57597C21.2000409@easy-emacs.de \
    --to=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.