diff options
| author | Eli Zaretskii | 2015-03-07 11:55:58 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-03-07 11:55:58 +0200 |
| commit | eb62887e97a3be6f4fc8769479a30827163ea775 (patch) | |
| tree | 448a7ca18024457c8107a9dc05a8077cd2171f2e | |
| parent | 69204d5a8ad8c3ea8f99880fdfb634b6109a59fb (diff) | |
| download | emacs-eb62887e97a3be6f4fc8769479a30827163ea775.tar.gz emacs-eb62887e97a3be6f4fc8769479a30827163ea775.zip | |
lisp/dired.el (dired-delete-file): Doc fix. (Bug#20021)
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/dired.el | 15 |
2 files changed, 14 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a1cf2a07dbe..0e4e463e200 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2015-03-07 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * dired.el (dired-delete-file): Doc fix. (Bug#20021) | ||
| 4 | |||
| 1 | 2015-03-03 Agustín Martín Domingo <agustin6martin@gmail.com> | 5 | 2015-03-03 Agustín Martín Domingo <agustin6martin@gmail.com> |
| 2 | 6 | ||
| 3 | * textmodes/ispell.el (ispell-aspell-find-dictionary): Make sure | 7 | * textmodes/ispell.el (ispell-aspell-find-dictionary): Make sure |
diff --git a/lisp/dired.el b/lisp/dired.el index 211f9242e80..1d5a75a2202 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -2850,11 +2850,16 @@ Any other value means to ask for each directory." | |||
| 2850 | ;; to e.g. recursive-delete-file and put it somewhere else. | 2850 | ;; to e.g. recursive-delete-file and put it somewhere else. |
| 2851 | (defun dired-delete-file (file &optional recursive trash) "\ | 2851 | (defun dired-delete-file (file &optional recursive trash) "\ |
| 2852 | Delete FILE or directory (possibly recursively if optional RECURSIVE is true.) | 2852 | Delete FILE or directory (possibly recursively if optional RECURSIVE is true.) |
| 2853 | RECURSIVE determines what to do with a non-empty directory. If RECURSIVE is: | 2853 | RECURSIVE determines what to do with a non-empty directory. The effect of |
| 2854 | nil, do not delete. | 2854 | its possible values is: |
| 2855 | `always', delete recursively without asking. | 2855 | |
| 2856 | `top', ask for each directory at top level. | 2856 | nil -- do not delete. |
| 2857 | Anything else, ask for each sub-directory." | 2857 | `always' -- delete recursively without asking. |
| 2858 | `top' -- ask for each directory at top level. | ||
| 2859 | Anything else -- ask for each sub-directory. | ||
| 2860 | |||
| 2861 | TRASH non-nil means to trash the file instead of deleting, provided | ||
| 2862 | `delete-by-moving-to-trash' (which see) is non-nil." | ||
| 2858 | ;; This test is equivalent to | 2863 | ;; This test is equivalent to |
| 2859 | ;; (and (file-directory-p fn) (not (file-symlink-p fn))) | 2864 | ;; (and (file-directory-p fn) (not (file-symlink-p fn))) |
| 2860 | ;; but more efficient | 2865 | ;; but more efficient |