Mercurial > emacs
comparison lisp/dired.el @ 17198:471ce207330c
Doc dired-no-confirm and allow t value.
author | Simon Marshall <simon@gnu.org> |
---|---|
date | Thu, 20 Mar 1997 12:37:06 +0000 |
parents | 7f8981eca2f7 |
children | 30a9faea2a54 |
comparison
equal
deleted
inserted
replaced
17197:7689ab3937cc | 17198:471ce207330c |
---|---|
1808 (enlarge-window (- target-lines (1- (window-height w2)))))) | 1808 (enlarge-window (- target-lines (1- (window-height w2)))))) |
1809 (set-window-start w2 1) | 1809 (set-window-start w2 1) |
1810 ))) | 1810 ))) |
1811 | 1811 |
1812 (defvar dired-no-confirm nil | 1812 (defvar dired-no-confirm nil |
1813 ;; "If non-nil, list of symbols for commands dired should not confirm. | 1813 "A list of symbols for commands dired should not confirm. |
1814 ;;It can be a sublist of | 1814 Command symbols are `byte-compile', `chgrp', `chmod', `chown', `compress', |
1815 ;; | 1815 `copy', `delete', `hardlink', `load', `move', `print', `shell', `symlink' and |
1816 ;; '(byte-compile chgrp chmod chown compress copy delete hardlink load | 1816 `uncompress'.") |
1817 ;; move print shell symlink uncompress)" | |
1818 ) | |
1819 | 1817 |
1820 (defun dired-mark-pop-up (bufname op-symbol files function &rest args) | 1818 (defun dired-mark-pop-up (bufname op-symbol files function &rest args) |
1821 ;;"Args BUFNAME OP-SYMBOL FILES FUNCTION &rest ARGS. | 1819 ;;"Args BUFNAME OP-SYMBOL FILES FUNCTION &rest ARGS. |
1822 ;;Return FUNCTION's result on ARGS after popping up a window (in a buffer | 1820 ;;Return FUNCTION's result on ARGS after popping up a window (in a buffer |
1823 ;;named BUFNAME, nil gives \" *Marked Files*\") showing the marked | 1821 ;;named BUFNAME, nil gives \" *Marked Files*\") showing the marked |
1826 ;; It should only read input (an argument or confirmation). | 1824 ;; It should only read input (an argument or confirmation). |
1827 ;;The window is not shown if there is just one file or | 1825 ;;The window is not shown if there is just one file or |
1828 ;; OP-SYMBOL is a member of the list in `dired-no-confirm'. | 1826 ;; OP-SYMBOL is a member of the list in `dired-no-confirm'. |
1829 ;;FILES is the list of marked files." | 1827 ;;FILES is the list of marked files." |
1830 (or bufname (setq bufname " *Marked Files*")) | 1828 (or bufname (setq bufname " *Marked Files*")) |
1831 (if (or (memq op-symbol dired-no-confirm) | 1829 (if (or (eq dired-no-confirm t) |
1830 (memq op-symbol dired-no-confirm) | |
1832 (= (length files) 1)) | 1831 (= (length files) 1)) |
1833 (apply function args) | 1832 (apply function args) |
1834 (save-excursion | 1833 (save-excursion |
1835 (set-buffer (get-buffer-create bufname)) | 1834 (set-buffer (get-buffer-create bufname)) |
1836 (erase-buffer) | 1835 (erase-buffer) |