Subject: bug#44936: [PATCH] eww-make-unique-file-name: wrong suffix returned

From: Akira Kyle <[email-masked]>
Date: Sat, 28 Nov 2020 15:49:45 -0700

See attached patch

>From 9e577e64199e417cf5045edcef42779911dec955 Mon Sep 17 00:00:00 2001
From: Akira Kyle <[email-masked]>
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