* epa-file.el (epa-file-name-regexp): Accept backup filenames.
authorueno <ueno>
Fri, 6 Apr 2007 05:55:44 +0000 (05:55 +0000)
committerueno <ueno>
Fri, 6 Apr 2007 05:55:44 +0000 (05:55 +0000)
Suggested by "[ #10192 ] customizing epa-file-name-regexp fails"

ChangeLog
epa-file.el

index b81242a..a6cec04 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-04-06  Daiki Ueno  <ueno@unixuser.org>
+
+       * epa-file.el (epa-file-name-regexp): Accept backup filenames.
+       Suggested by "[ #10192 ] customizing epa-file-name-regexp fails"
+
 2007-04-04  Daiki Ueno  <ueno@unixuser.org>
 
        * epa-file.el (epa-file--file-name-regexp-set): New Custom :set
index 5c3d1a5..777a1a9 100644 (file)
@@ -34,7 +34,7 @@
   (if (fboundp 'epa-file-name-regexp-update)
       (epa-file-name-regexp-update)))
 
-(defcustom epa-file-name-regexp "\\.gpg\\'"
+(defcustom epa-file-name-regexp "\\.gpg\\(~\\|\\.~[0-9]+~\\)?\\'"
   "Regexp which matches filenames to be encrypted with GnuPG.
 
 If you set this outside Custom while epa-file is already enabled, you