Mercurial > emacs
changeset 3503:8e53a39c0e7e
(dired-flag-backup-files): Handle `*' made by `ls -F'.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 05 Jun 1993 17:41:50 +0000 |
parents | c2b4a5b9c8d5 |
children | 5fb4eefbd7ac |
files | lisp/dired.el |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/dired.el Sat Jun 05 17:35:21 1993 +0000 +++ b/lisp/dired.el Sat Jun 05 17:41:50 1993 +0000 @@ -1735,7 +1735,16 @@ ;; It is less than general to check for ~ here, ;; but it's the only way this runs fast enough. (and (save-excursion (end-of-line) - (eq (preceding-char) ?~)) + (or + (eq (preceding-char) ?~) + ;; Handle executables in case of -F option. + ;; We need not worry about the other kinds + ;; of markings that -F makes, since they won't + ;; appear on real backup files. + (if (eq (preceding-char) ?*) + (progn + (forward-char -1) + (eq (preceding-char) ?~))))) (not (looking-at dired-re-dir)) (let ((fn (dired-get-filename t t))) (if fn (backup-file-name-p fn))))