From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.help Subject: Re: eww - multiple buffers Date: Thu, 09 Jun 2016 14:31:47 +0000 Message-ID: References: <57591A53.8060900@easy-emacs.de> <87twh2abnw.fsf@gnu.org> <57597C21.2000409@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1465482815 21892 80.91.229.3 (9 Jun 2016 14:33:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jun 2016 14:33:35 +0000 (UTC) Cc: Help Gnu Emacs mailing list To: =?UTF-8?Q?Andreas_R=C3=B6hler?= , Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 09 16:33:33 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bB11U-0000gA-DU for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Jun 2016 16:33:28 +0200 Original-Received: from localhost ([::1]:34919 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB11T-0004lU-OB for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Jun 2016 10:33:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB10B-0003zK-6n for help-gnu-emacs@gnu.org; Thu, 09 Jun 2016 10:32:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bB105-0006FJ-Ub for help-gnu-emacs@gnu.org; Thu, 09 Jun 2016 10:32:06 -0400 Original-Received: from mail-oi0-x22f.google.com ([2607:f8b0:4003:c06::22f]:34178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB103-0006E7-EB; Thu, 09 Jun 2016 10:31:59 -0400 Original-Received: by mail-oi0-x22f.google.com with SMTP id e72so65952048oib.1; Thu, 09 Jun 2016 07:31:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cUo2oOUSFteC61KFDLAyuA4QBVEayZZdkNwyrANg6aE=; b=HyPJ8poPEVsg0IW41Dq4NoFCuVfAlLhv6yIJwc1VwkLkp8pcQN7hOKYCw9sz1jummg b5r2Ep5Dz18fc4lDZ9dzYMHfmIjoNGUmWwRHvOVrSPwWrvzEjCf19t2asJm4g91xZsXW 2xnvOwHkxAXZ3QXA+6K/xe4yqC/N3wLiG+wzY3F4KNjvn1eX0SnZcGUfS8WvCnLFMaes P+8ISEkbZfoz8dphbQWBMHayi5tw5Dz3jna3+hZv71egYpJieNH9x86cyJpn+X3u3gNR 7DbHPrSTy0Y1rWyJx8ZbsreHtJSmZkl27Zas4T0cruTwV3VAGm3E2nK4Oi++Nv0Crpsf 66Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cUo2oOUSFteC61KFDLAyuA4QBVEayZZdkNwyrANg6aE=; b=SRjM8LJ5s8NIXqNaua/ZxXCofTmENSm+pnI9BcudjVyY0hc4X6eHWX+2topyHBg7FF 73zt4S0vWGMbJ3dJqnumpf/nqMKu5QGtMXZyDyC+8uNB7cCoUTdh48VlmzLiQAruZj+b eMj3TXk8oQU46WYX4fReMa8ARJJbPe/HhulnPqtCC6KHIbnCaLptcxlhuSbRiv2v2flf fn8g/0S43345AN6T1lopuF0AicePHaIieg5yhvcRPZaRuOH1tXO0N2l8lw4Nr+m+eXq5 B76jSaBAzwGh6LgLIU0F38RTNsqKKNE5Ie3NnBlhaMDEGeDU6f9EJ7F3Mgbmm4YA49tP 72AQ== X-Gm-Message-State: ALyK8tJtiCU/dbb474pKM+mkVBbMTI4CGRBE4UmE4DKM/sX+q2uZM6N1PzxpQkRIy1Yd49vPdyhFWadVnSszXQ== X-Received: by 10.202.98.214 with SMTP id w205mr5059545oib.107.1465482718405; Thu, 09 Jun 2016 07:31:58 -0700 (PDT) In-Reply-To: <57597C21.2000409@easy-emacs.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::22f X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110397 Archived-At: 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=C3=B6hler < andreas.roehler@easy-emacs.de> wrote: > > > On 09.06.2016 12:39, Tassilo Horn wrote: > > Andreas R=C3=B6hler 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 =E2=80=98ew= w.el=E2=80=99. > > | > > | (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 =E2=80=98= eww.el=E2=80=99. > > | > > | (eww-follow-link &optional EXTERNAL MOUSE-EVENT) > > | > > | Browse the URL under point. > > | If EXTERNAL is single prefix, browse the URL using > =E2=80=98shr-external-browser=E2=80=99. > > | 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 > > > -- --=20 Kaushal Modi