]> git.eshelyaron.com Git - emacs.git/commitdiff
Make dired-do-compress-to require format-spec
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 14 Nov 2019 05:31:50 +0000 (06:31 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 14 Nov 2019 05:31:50 +0000 (06:31 +0100)
* lisp/dired-aux.el (dired-do-compress-to): Require format-spec
runtime (bug#38189).

lisp/dired-aux.el

index 9f34b2afe999e35343495153e65a16cef4f84833..6fcb074f6a15955ab78a96573a25a43a19bea00f 100644 (file)
@@ -1061,6 +1061,7 @@ Prompt for the archive file name.
 Choose the archiving command based on the archive file-name extension
 and `dired-compress-files-alist'."
   (interactive)
+  (require 'format-spec)
   (let* ((in-files (dired-get-marked-files nil nil nil nil t))
          (out-file (expand-file-name (read-file-name "Compress to: ")))
          (rule (cl-find-if