Add '.rej' files to matcher of tmp files. Optimize regex by switching to shy
--- a/.emacs-my Fri Apr 29 19:14:46 2011 +0300
+++ b/.emacs-my Tue May 17 16:35:48 2011 +0300
@@ -612,7 +612,7 @@
)
(defun my-file-name-tmp-p (file)
- (string-match "\\(^#.*#\\|~\\|\\.orig\\|\\.log\\|^.?\\.diff\\|.stackdump\\)\\'" (file-name-nondirectory file)))
+ (string-match "\\(?:^#.*#\\|~\\|\\.orig\\|\\.log\\|^.?\\.diff\\|\\.stackdump\\|\\.rej\\)\\'" (file-name-nondirectory file)))
(defun my-dired-flag-tmp-files ()
"Flag all temporary files for deletion."