From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akira Kyle Newsgroups: gmane.emacs.bugs Subject: bug#44936: [PATCH] eww-make-unique-file-name: wrong suffix returned Date: Sat, 28 Nov 2020 15:49:45 -0700 Message-ID: <86czzx14hi.fsf@data.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11852"; mail-complaints-to="usenet@ciao.gmane.io" To: 44936@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 29 00:47:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kj9vt-0002zo-5X for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 Nov 2020 00:47:13 +0100 Original-Received: from localhost ([::1]:42082 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kj9vs-0004mi-83 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Nov 2020 18:47:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kj9vj-0004mJ-Kh for bug-gnu-emacs@gnu.org; Sat, 28 Nov 2020 18:47:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37808) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kj9vi-0004RA-L0 for bug-gnu-emacs@gnu.org; Sat, 28 Nov 2020 18:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kj9vi-0007oY-IG for bug-gnu-emacs@gnu.org; Sat, 28 Nov 2020 18:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Akira Kyle Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Nov 2020 23:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44936 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160660720630014 (code B ref -1); Sat, 28 Nov 2020 23:47:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Nov 2020 23:46:46 +0000 Original-Received: from localhost ([127.0.0.1]:49354 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kj9vP-0007ny-3o for submit@debbugs.gnu.org; Sat, 28 Nov 2020 18:46:46 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:51094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kj92S-0006NZ-Dz for submit@debbugs.gnu.org; Sat, 28 Nov 2020 17:50:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44584) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kj92Q-00008W-Gb for bug-gnu-emacs@gnu.org; Sat, 28 Nov 2020 17:49:56 -0500 Original-Received: from mail-ot1-f47.google.com ([209.85.210.47]:37227) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kj92O-00064Z-GR for bug-gnu-emacs@gnu.org; Sat, 28 Nov 2020 17:49:53 -0500 Original-Received: by mail-ot1-f47.google.com with SMTP id l36so7898554ota.4 for ; Sat, 28 Nov 2020 14:49:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=eaLuAHkuuXM4TmALkpnl9QjfJGxyS7EUb9HXNdTruYA=; b=tNLita/gLN0YlESYYWVL/0/EqXLS0bbbzHvb6rlWsbHR/iJkfwHMddjfxsb0ncEupP qzuCdnI7okMjOU8FPmd2TWiPXiTMqKSxtQS2+6F5NtD/L503StYMp3UhLpkpfSgQ5+KK Lgl7EYmkSZxQpJXWoREVL/8kVK4zFYg1usE82icIEBDpmbgPBqFwWeVM8jS56m03STBY z+PwBGOGfkSWiqPjdDrut/CbhBodAmM/2Jxo7+zCsLpzuN5CDcXfhrXSb70qmKwdQKDm zypoLzw1LXmWtf0Ta6QQ+I6gYNYF1Y/7IhSJ8Ln02tmh9lMPfA1StIeaIEtCFchMvTkX bXrg== X-Gm-Message-State: AOAM532NWQ02aILDc4R6zhjP29et8EoysYSLGIXHrlqWnK+ubIOKR6S3 vERWx1SrZcN5rIj0U5k1IAZkQsbYOhw2nw== X-Google-Smtp-Source: ABdhPJzEpiWf3Cp1QF5CtrfLpThM0JQguRnJWU/tnbTbZKxcKdYtA9OLIOQdvJv2oG9oNs3eH2etxA== X-Received: by 2002:a05:6830:1358:: with SMTP id r24mr8434753otq.125.1606603787398; Sat, 28 Nov 2020 14:49:47 -0800 (PST) Original-Received: from data (c-67-162-131-131.hsd1.co.comcast.net. [67.162.131.131]) by smtp.gmail.com with ESMTPSA id c190sm7741633oig.34.2020.11.28.14.49.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Nov 2020 14:49:46 -0800 (PST) Received-SPF: pass client-ip=209.85.210.47; envelope-from=aikokyle@gmail.com; helo=mail-ot1-f47.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 28 Nov 2020 18:46:42 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:194517 Archived-At: --=-=-= Content-Type: text/plain See attached patch --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-lisp-net-eww.el-eww-make-unique-file-name-fix-suffix.patch >From 9e577e64199e417cf5045edcef42779911dec955 Mon Sep 17 00:00:00 2001 From: Akira Kyle Date: Sat, 28 Nov 2020 15:44:42 -0700 Subject: [PATCH] ; * lisp/net/eww.el (eww-make-unique-file-name): fix suffix match --- lisp/net/eww.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/net/eww.el b/lisp/net/eww.el index 597ce95c67..ffcfeeae02 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -1832,7 +1832,7 @@ eww-make-unique-file-name (suffix "")) (when (string-match "\\`\\(.*\\)\\([.][^.]+\\)" file) (setq stem (match-string 1 file) - suffix (match-string 2))) + suffix (match-string 2 file))) (while (file-exists-p (expand-file-name file directory)) (setq file (format "%s(%d)%s" stem count suffix)) (setq count (1+ count))) -- 2.29.0 --=-=-=--