Skip to content

Commit 8a421fc

Browse files
author
Thierry Volpiatto
committed
Use helm-read-answer in query-replace fnames
* helm-files.el (helm-ff-query-replace-on-filenames): Do it.
1 parent 5e9e0ce commit 8a421fc

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

helm-files.el

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,17 +1277,10 @@ This doesn't replace inside the files, only modify filenames."
12771277
(format "(%s)" count)
12781278
(file-name-extension new t))))
12791279
(unless (string= query "!")
1280-
(while (not (member
1281-
(setq query
1282-
(string
1283-
(read-key
1284-
(propertize
1285-
(format
1286-
"Replace `%s' by `%s' [!,y,n,q]"
1287-
old new)
1288-
'face 'minibuffer-prompt))))
1289-
'("y" "!" "n" "q")))
1290-
(message "Please answer by y,n,! or q") (sit-for 1)))
1280+
(setq query (helm-read-answer (format
1281+
"Replace `%s' by `%s' [!,y,n,q]"
1282+
old new)
1283+
'("y" "n" "!" "q"))))
12911284
(when (string= query "q")
12921285
(cl-return (message "Operation aborted")))
12931286
(unless (string= query "n")

0 commit comments

Comments
 (0)