From unknown Tue Jun 17 01:33:02 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#51613 <51613@debbugs.gnu.org> To: bug#51613 <51613@debbugs.gnu.org> Subject: Status: Eww buffer creation Reply-To: bug#51613 <51613@debbugs.gnu.org> Date: Tue, 17 Jun 2025 08:33:02 +0000 retitle 51613 Eww buffer creation reassign 51613 emacs submitter 51613 Andr=C3=A9 A. Gomes severity 51613 wishlist tag 51613 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 05 11:46:13 2021 Received: (at submit) by debbugs.gnu.org; 5 Nov 2021 15:46:13 +0000 Received: from localhost ([127.0.0.1]:46861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mj1Px-0003id-AR for submit@debbugs.gnu.org; Fri, 05 Nov 2021 11:46:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:37548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mj1Pv-0003iV-QK for submit@debbugs.gnu.org; Fri, 05 Nov 2021 11:46:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mj1Pv-0002LJ-AW for bug-gnu-emacs@gnu.org; Fri, 05 Nov 2021 11:46:11 -0400 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]:39597) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mj1Pt-0002Ly-Fr for bug-gnu-emacs@gnu.org; Fri, 05 Nov 2021 11:46:11 -0400 Received: by mail-lf1-x12d.google.com with SMTP id d12so16016177lfv.6 for ; Fri, 05 Nov 2021 08:46:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:user-agent:mime-version; bh=loTAMUOvObHPtHpSPLeN6Mnf6ui9Pv43kwU0I7C/4M8=; b=kF20LuqrtLuNkbUyf9PtjJrRGcKcR28Ok+qxCKt19FXpoBL0oYQ9tx57XjCj7lXRqs b2imQfPdAfeOwuThlidLo05ieSZfhr1hOllN71mT+PcoA8nP2h+ukM51HdybLRmQpCtV 3g1HjNyr0AV/s16g1g8pQIR/m2sZdPS7+T4W2KG2xHhXsbQMgm/eKGayULXzvFYn8WyR DLbfrvIf+1tT+MdFg6osBzenCpdXpoLhgGx/8qDESsYrukM5wWTGpo1QRtKZgLuEmfYX YGmyDHf+F5jMQQwUsb2pViLPM55YHXY+cAI/XSxxDiMriGKzy468GLwB79ULIgZ/4Hiy SDxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=loTAMUOvObHPtHpSPLeN6Mnf6ui9Pv43kwU0I7C/4M8=; b=GP7yfaXdT+OdImOYuieNufVwgwIg5ke8nS0mxhlJNnGLhdewaSGZSuq30PorwONNRM YgSVfmPrmt4pog8ovRSABZZ+WeqgFrDqIn61dxwUF7udOrh3mOgCoIK6wDTIbBJayrPj 1Sk9jmtUFmDYk/lDmhu4BGpsFrKBTrVDPCYFgJWAPYC7clRVvhSgxp+8usQfoW4NI3PN ui36Vn6OK6GiQs60ZBdZ7AEQ8CM/xNRlR0nvhR9c3SGzlKiGDUpvsxykDTlQ9Y68b8WA 2yywqSGa3+8+aDEzXLws3J3ARmCkNExZwzIuTo5LBC/y0LRnjYl+nWBtGIwif4PFfm8v YMbw== X-Gm-Message-State: AOAM530Te3uLM2U884wLiK8uZE1hEJhRYRdeYyDYtLjN2h8pf5F7na9a DV+uLWsXZLHD2TrFqWtpmjnt+eyXKAY= X-Google-Smtp-Source: ABdhPJwbQqqxFupZzRacIzOa0uWXJpPMB6lJ/bMxUAe0WaXpwv9/1UjS68ctgZ/jMhF1C8H8aXTHjw== X-Received: by 2002:a05:6512:3502:: with SMTP id h2mr56640917lfs.314.1636127166457; Fri, 05 Nov 2021 08:46:06 -0700 (PDT) Received: from guix-xps13 (95-29-46-27.broadband.corbina.ru. [95.29.46.27]) by smtp.gmail.com with ESMTPSA id c21sm319648lfv.29.2021.11.05.08.46.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Nov 2021 08:46:05 -0700 (PDT) From: =?utf-8?Q?Andr=C3=A9_A=2E_Gomes?= To: bug-gnu-emacs@gnu.org Subject: Eww buffer creation Date: Fri, 05 Nov 2021 18:46:04 +0300 Message-ID: <87fssafvwj.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=andremegafone@gmail.com; helo=mail-lf1-x12d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Emacs, I noticed that in order to open url-foo in a new buffer, I'd need to call `(eww "url-foo" 4)`. I understand that 4 is the universal argument, but it looks cryptic (unless used interactively).=20=20 Find my suggestion attached. I took the opportunity to simplify the underlying logic. --=20 Andr=C3=A9 A. Gomes "Free Thought, Free World" --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Fix-creation-of-eww-buffers.patch >From dd07c5b564effc5efd0ca2b1581694e32f5b9f14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20A=2E=20Gomes?= Date: Fri, 5 Nov 2021 18:36:07 +0300 Subject: [PATCH] Fix creation of eww buffers. --- lisp/net/eww.el | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lisp/net/eww.el b/lisp/net/eww.el index 74d3788116..3397b253e1 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -364,13 +364,9 @@ killed after rendering." (prefix-numeric-value current-prefix-arg)))) (setq url (eww--dwim-expand-url url)) (pop-to-buffer-same-window - (cond - ((eq arg 4) - (generate-new-buffer "*eww*")) - ((eq major-mode 'eww-mode) - (current-buffer)) - (t - (get-buffer-create "*eww*")))) + (if (and (eq major-mode 'eww-mode) (null arg)) + (current-buffer) + (generate-new-buffer "*eww*"))) (eww-setup-buffer) ;; Check whether the domain only uses "Highly Restricted" Unicode ;; IDNA characters. If not, transform to punycode to indicate that -- 2.33.1 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 05 17:02:19 2021 Received: (at control) by debbugs.gnu.org; 5 Nov 2021 21:02:19 +0000 Received: from localhost ([127.0.0.1]:47452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mj6Lm-0001WK-Sp for submit@debbugs.gnu.org; Fri, 05 Nov 2021 17:02:19 -0400 Received: from mail-pj1-f47.google.com ([209.85.216.47]:55967) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mj6Ll-0001Vu-BN for control@debbugs.gnu.org; Fri, 05 Nov 2021 17:02:13 -0400 Received: by mail-pj1-f47.google.com with SMTP id v23so1908945pjr.5 for ; Fri, 05 Nov 2021 14:02:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=xflv3zYB1nSIGznvGnGj840Y7jNm7J2mgkaaY3PPeGc=; b=vcQI4Q4DHZD9fY1SydEw2aFfFNFe2Sens28/Npqb36Chi1FM3C3ATjCaUjPfg/LMyY 0f7Gty1oBnBCja3vMyp6X1grxdDP1O2UxIIY2oq0CTbiKFldKyVeAagPN6J2VR3DL07W ZwIX/cTH4VNMq66y1OqlhtP48iP5vEEslaDM3T4eJZ5H7cAhfXEx2vOtLMtEPMYxH2wW /PyisIDToC/iuvlZMFj6BxMvCtGZ1Gip90RgcHFzWp/czfzkZaj6q3v3Sdd4eDjiiwF9 d/V1fJyJcdj5buN9LtaO0QRJBmW3en/ZYr1YptcU19gQ/sm8ZJwSktOvIsTCeohhJWmv H3Tg== X-Gm-Message-State: AOAM530qatncSWpCBsfqdDG3mD+t+uI8dYr/0FNgjDnqUbYCX9dhZ4f7 rkbIVC5basDMNmJ1d1aLNCZEAvNjdLPviA/wo0dTqgYS X-Google-Smtp-Source: ABdhPJyXs1kbqCg8QUC6E/hGbpZf8Idn/Rz3nsLohBOL5CpyUQNDSk01fzO1CRsMq2dR6thnaMa3eb1LOFg0uNLxYeI= X-Received: by 2002:a17:90a:be10:: with SMTP id a16mr32284457pjs.133.1636146127719; Fri, 05 Nov 2021 14:02:07 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 5 Nov 2021 14:02:07 -0700 From: Stefan Kangas MIME-Version: 1.0 Date: Fri, 5 Nov 2021 14:02:07 -0700 Message-ID: Subject: control message for bug #51613 To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) severity 51613 wishlist tags 51613 + patch quit From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 05 19:17:43 2021 Received: (at 51613) by debbugs.gnu.org; 5 Nov 2021 23:17:43 +0000 Received: from localhost ([127.0.0.1]:47562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mj8Ss-00070G-Vt for submit@debbugs.gnu.org; Fri, 05 Nov 2021 19:17:43 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mj8Sq-000700-Su for 51613@debbugs.gnu.org; Fri, 05 Nov 2021 19:17:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=JYlkvkMaFWle6jNVjqMW8SArjVkpxD32se38eF/bj1w=; b=cN8hDifhAoHUcUDUiotC+5VB4C tkn7hsGwAoug1/qVuofs33/oWMZmrIW21q1oMeQbK8u6zPId4CEzRL1oX4bl6MvS7pKu+zgUWZ+qt z2aBHSKvTMT1w30/6KKUEhPUA+u/lwWrxUN1t5SS/aT9qrS+10XI7jiPA252kxD8I2o0=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mj8Sg-0000ei-Sd; Sat, 06 Nov 2021 00:17:33 +0100 From: Lars Ingebrigtsen To: =?utf-8?Q?Andr=C3=A9?= A. Gomes Subject: Re: bug#51613: Eww buffer creation References: <87fssafvwj.fsf@gmail.com> X-Now-Playing: PJ Harvey's _Stories From The City, Stories From The Sea (Demos)_: "A Place Called Home (demo)" Date: Sat, 06 Nov 2021 00:17:28 +0100 In-Reply-To: <87fssafvwj.fsf@gmail.com> (=?utf-8?Q?=22Andr=C3=A9?= A. Gomes"'s message of "Fri, 05 Nov 2021 18:46:04 +0300") Message-ID: <875yt6gpkn.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: André A. Gomes writes: > Find my suggestion attached. I took the opportunity to simplify the > underlying logic. [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51613 Cc: 51613@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Andr=C3=A9 A. Gomes writes: > Find my suggestion attached. I took the opportunity to simplify the > underlying logic. [...] > + (if (and (eq major-mode 'eww-mode) (null arg)) > + (current-buffer) > + (generate-new-buffer "*eww*"))) I don't think that's correct? Then `M-x eww' in a different buffer will generate a new name. So I've now fixed this in a different way in Emacs 29 (and renamed the arguments to be more sensible). --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 05 19:17:46 2021 Received: (at control) by debbugs.gnu.org; 5 Nov 2021 23:17:46 +0000 Received: from localhost ([127.0.0.1]:47565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mj8Sw-00070W-69 for submit@debbugs.gnu.org; Fri, 05 Nov 2021 19:17:46 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mj8Su-000705-BT for control@debbugs.gnu.org; Fri, 05 Nov 2021 19:17:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=aoacJev9SGC11Nfhz0vvGUEIzychikrtOIRLX5jZNiY=; b=cemu6Eov0Ub2LlIamv+PHNelvw L16xyD4cgqjBBUob2eAGEQQ+krVy3p2K34T0KvWNK3cOqga6Ocy55RHLJboNQ7Bh4BdjCoBs5eOWE vBF0sHHrHAut+iDIOSkQ8QmOSz+wUQifR6xE+Yhoh1Oe/zan6UHwlkuzoJq3/7z7NV/c=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mj8Sm-0000eq-GN for control@debbugs.gnu.org; Sat, 06 Nov 2021 00:17:38 +0100 Date: Sat, 06 Nov 2021 00:17:36 +0100 Message-Id: <874k8qgpkf.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #51613 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 51613 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 51613 29.1 quit From unknown Tue Jun 17 01:33:02 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 04 Dec 2021 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator