From: Akira Kyle <akira@akirakyle.com>
To: 44936@debbugs.gnu.org
Subject: bug#44936: [PATCH] eww-make-unique-file-name: wrong suffix returned
Date: Sat, 28 Nov 2020 15:49:45 -0700 [thread overview]
Message-ID: <86czzx14hi.fsf@data.i-did-not-set--mail-host-address--so-tickle-me> (raw)
[-- Attachment #1: Type: text/plain, Size: 20 bytes --]
See attached patch
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-lisp-net-eww.el-eww-make-unique-file-name-fix-suffix.patch --]
[-- Type: text/x-patch, Size: 851 bytes --]
From 9e577e64199e417cf5045edcef42779911dec955 Mon Sep 17 00:00:00 2001
From: Akira Kyle <akira@akirakyle.com>
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
next reply other threads:[~2020-11-28 22:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-28 22:49 Akira Kyle [this message]
2020-11-29 10:41 ` bug#44936: [PATCH] eww-make-unique-file-name: wrong suffix returned Lars Ingebrigtsen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86czzx14hi.fsf@data.i-did-not-set--mail-host-address--so-tickle-me \
--to=akira@akirakyle.com \
--cc=44936@debbugs.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).