all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#44936: [PATCH] eww-make-unique-file-name: wrong suffix returned
@ 2020-11-28 22:49 Akira Kyle
  2020-11-29 10:41 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Akira Kyle @ 2020-11-28 22:49 UTC (permalink / raw)
  To: 44936

[-- 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#44936: [PATCH] eww-make-unique-file-name: wrong suffix returned
  2020-11-28 22:49 bug#44936: [PATCH] eww-make-unique-file-name: wrong suffix returned Akira Kyle
@ 2020-11-29 10:41 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2020-11-29 10:41 UTC (permalink / raw)
  To: Akira Kyle; +Cc: 44936

Akira Kyle <akira@akirakyle.com> writes:

> Subject: [PATCH] ; * lisp/net/eww.el (eww-make-unique-file-name): fix suffix
>  match

Thanks; applied to Emacs 27.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-29 10:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-28 22:49 bug#44936: [PATCH] eww-make-unique-file-name: wrong suffix returned Akira Kyle
2020-11-29 10:41 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.