# HG changeset patch # User Oleksandr Gavenko # Date 1305639348 -10800 # Node ID 3c123591132b312de5f60f378494f7de87471ed8 # Parent e808f4d0f3f8f78d6f8135f2ef46a32b2d2fd292 Add '.rej' files to matcher of tmp files. Optimize regex by switching to shy diff -r e808f4d0f3f8 -r 3c123591132b .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."