Add '.rej' files to matcher of tmp files. Optimize regex by switching to shy
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 17 May 2011 16:35:48 +0300
changeset 633 3c123591132b
parent 632 e808f4d0f3f8
child 635 7ae2454d55a6
Add '.rej' files to matcher of tmp files. Optimize regex by switching to shy
.emacs-my
--- 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."