# HG changeset patch # User Richard M. Stallman # Date 739302110 0 # Node ID 8e53a39c0e7ea76efca4992473095114f66c936f # Parent c2b4a5b9c8d544acc3a17b2975a57ccccb424239 (dired-flag-backup-files): Handle `*' made by `ls -F'. diff -r c2b4a5b9c8d5 -r 8e53a39c0e7e lisp/dired.el --- 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))))