diff options
| author | Karl Heuer | 1995-12-19 21:39:23 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-12-19 21:39:23 +0000 |
| commit | fdee13ec10514dfe5f96b77f5f836f14f3a93a17 (patch) | |
| tree | 12b6072fd61ce8d17bdad5159aa1e8c010dd56f6 | |
| parent | 066327aee33f053201a83538078bd6f7f0240ce1 (diff) | |
| download | emacs-fdee13ec10514dfe5f96b77f5f836f14f3a93a17.tar.gz emacs-fdee13ec10514dfe5f96b77f5f836f14f3a93a17.zip | |
(dired-flag-backup-files): Undo previous change.
| -rw-r--r-- | lisp/dired.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/dired.el b/lisp/dired.el index 5782e0ab012..541829d9a2d 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -2012,8 +2012,7 @@ A prefix argument says to unflag those files instead." | |||
| 2012 | "Flag all backup files (names ending with `~') for deletion. | 2012 | "Flag all backup files (names ending with `~') for deletion. |
| 2013 | With prefix argument, unflag these files." | 2013 | With prefix argument, unflag these files." |
| 2014 | (interactive "P") | 2014 | (interactive "P") |
| 2015 | (let ((dired-marker-char (if unflag-p ?\ dired-del-marker)) | 2015 | (let ((dired-marker-char (if unflag-p ?\ dired-del-marker))) |
| 2016 | (last-c (if (eq system-type 'ms-dos) ?k ?~))) | ||
| 2017 | (dired-mark-if | 2016 | (dired-mark-if |
| 2018 | ;; Don't call backup-file-name-p unless the last character looks like | 2017 | ;; Don't call backup-file-name-p unless the last character looks like |
| 2019 | ;; it might be the end of a backup file name. This isn't very general, | 2018 | ;; it might be the end of a backup file name. This isn't very general, |
| @@ -2025,7 +2024,7 @@ With prefix argument, unflag these files." | |||
| 2025 | ;; appear on real backup files. | 2024 | ;; appear on real backup files. |
| 2026 | (if (eq (preceding-char) ?*) | 2025 | (if (eq (preceding-char) ?*) |
| 2027 | (forward-char -1)) | 2026 | (forward-char -1)) |
| 2028 | (eq (preceding-char) last-c)) | 2027 | (eq (preceding-char) ?~)) |
| 2029 | (not (looking-at dired-re-dir)) | 2028 | (not (looking-at dired-re-dir)) |
| 2030 | (let ((fn (dired-get-filename t t))) | 2029 | (let ((fn (dired-get-filename t t))) |
| 2031 | (if fn (backup-file-name-p fn)))) | 2030 | (if fn (backup-file-name-p fn)))) |