Replace string-match-p with string-match for old Emacsen.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 30 Jun 2011 23:26:30 +0000 (23:26 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 30 Jun 2011 23:26:30 +0000 (23:26 +0000)
lisp/ChangeLog
lisp/mml2015.el

index af728c9..8369986 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-30  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * mml2015.el (mml2015-use): Replace string-match-p with string-match
+       for old Emacsen.
+
 2011-06-30  Daiki Ueno  <ueno@unixuser.org>
 
        * mml2015.el (mml2015-use): Don't try to load PGG on Emacs 24, when EPG
index d7070ef..7d8a411 100644 (file)
@@ -59,8 +59,8 @@
                         ;; Don't load PGG if it is marked as obsolete
                         ;; (Emacs 24).
                         (when (and abs-file
-                                   (not (string-match-p "/obsolete/[^/]*\\'"
-                                                        abs-file)))
+                                   (not (string-match "/obsolete/[^/]*\\'"
+                                                      abs-file)))
                           (ignore-errors (require 'pgg))
                           (and (fboundp 'pgg-sign-region)
                                'pgg))))