From dd5c9c2cc48fb25d6e6df11717b17c2746ac54ae Mon Sep 17 00:00:00 2001 From: Katsumi Yamaoka Date: Thu, 30 Jun 2011 23:26:30 +0000 Subject: [PATCH] Replace string-match-p with string-match for old Emacsen. --- lisp/ChangeLog | 5 +++++ lisp/mml2015.el | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index af728c989..836998681 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2011-06-30 Katsumi Yamaoka + + * mml2015.el (mml2015-use): Replace string-match-p with string-match + for old Emacsen. + 2011-06-30 Daiki Ueno * mml2015.el (mml2015-use): Don't try to load PGG on Emacs 24, when EPG diff --git a/lisp/mml2015.el b/lisp/mml2015.el index d7070effd..7d8a4119c 100644 --- a/lisp/mml2015.el +++ b/lisp/mml2015.el @@ -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)))) -- 2.34.1