.emacs-my
changeset 635 7ae2454d55a6
parent 634 97785d982806
parent 633 3c123591132b
child 636 1c47e3a86feb
equal deleted inserted replaced
634:97785d982806 635:7ae2454d55a6
   610   ;; Enable 'a' command.
   610   ;; Enable 'a' command.
   611   (put 'dired-find-alternate-file 'disabled nil)
   611   (put 'dired-find-alternate-file 'disabled nil)
   612   )
   612   )
   613 
   613 
   614 (defun my-file-name-tmp-p (file)
   614 (defun my-file-name-tmp-p (file)
   615   (string-match "\\(^#.*#\\|~\\|\\.orig\\|\\.log\\|^.?\\.diff\\|.stackdump\\)\\'" (file-name-nondirectory file)))
   615   (string-match "\\(?:^#.*#\\|~\\|\\.orig\\|\\.log\\|^.?\\.diff\\|\\.stackdump\\|\\.rej\\)\\'" (file-name-nondirectory file)))
   616 
   616 
   617 (defun my-dired-flag-tmp-files ()
   617 (defun my-dired-flag-tmp-files ()
   618   "Flag all temporary files for deletion."
   618   "Flag all temporary files for deletion."
   619   (interactive)
   619   (interactive)
   620   (dired-mark-if
   620   (dired-mark-if