comparison lisp/dired-aux.el @ 17199:91cf1da75ccd

Allow a dired-no-confirm of t
author Simon Marshall <simon@gnu.org>
date Thu, 20 Mar 1997 12:39:57 +0000
parents 99de1dc68184
children a886f419a946
comparison
equal deleted inserted replaced
17198:471ce207330c 17199:91cf1da75ccd
590 ;; Request confirmation from the user that the operation described 590 ;; Request confirmation from the user that the operation described
591 ;; by OP-SYMBOL is to be performed on the marked files. 591 ;; by OP-SYMBOL is to be performed on the marked files.
592 ;; Confirmation consists in a y-or-n question with a file list 592 ;; Confirmation consists in a y-or-n question with a file list
593 ;; pop-up unless OP-SYMBOL is a member of `dired-no-confirm'. 593 ;; pop-up unless OP-SYMBOL is a member of `dired-no-confirm'.
594 ;; The files used are determined by ARG (as in dired-get-marked-files). 594 ;; The files used are determined by ARG (as in dired-get-marked-files).
595 (or (memq op-symbol dired-no-confirm) 595 (or (eq dired-no-confirm t)
596 (memq op-symbol dired-no-confirm)
596 (let ((files (dired-get-marked-files t arg)) 597 (let ((files (dired-get-marked-files t arg))
597 (string (if (eq op-symbol 'compress) "Compress or uncompress" 598 (string (if (eq op-symbol 'compress) "Compress or uncompress"
598 (capitalize (symbol-name op-symbol))))) 599 (capitalize (symbol-name op-symbol)))))
599 (dired-mark-pop-up nil op-symbol files (function y-or-n-p) 600 (dired-mark-pop-up nil op-symbol files (function y-or-n-p)
600 (concat string " " 601 (concat string " "