Fix help-form binding in dired-create-files
authorMichael Heerdegen <michael_heerdegen@web.de>
Tue, 4 Sep 2018 20:00:11 +0000 (22:00 +0200)
committerMichael Heerdegen <michael_heerdegen@web.de>
Sat, 20 Oct 2018 16:51:38 +0000 (18:51 +0200)
This fixes Bug#32630: since "dired-aux" moved to lexical binding mode,
the free variable TO in the constructed HELP-FORM got out of scope of
the surrounding 'let'.

* lisp/dired-aux.el (dired-create-files): Make the binding of
HELP-FORM a string.

lisp/dired-aux.el

index e40627309d759d8a5dacf167502be25dc22818c7..eaf5f257012c5256d395ab0a0a4afc071bb6daf4 100644 (file)
@@ -1712,7 +1712,7 @@ or with the current marker character if MARKER-CHAR is t."
           (let* ((overwrite (file-exists-p to))
                  (dired-overwrite-confirmed ; for dired-handle-overwrite
                   (and overwrite
-                       (let ((help-form '(format-message "\
+                       (let ((help-form (format-message "\
 Type SPC or `y' to overwrite file `%s',
 DEL or `n' to skip to next,
 ESC or `q' to not overwrite any of the remaining files,