From f9292d698d22581fcf0c1120c856c9f48a018aed Mon Sep 17 00:00:00 2001 From: tfheen Date: Fri, 16 May 2008 07:40:51 +0000 Subject: [PATCH] Add cw/for-emacs-22-and-later macro git-svn-id: file:///svn/tfheen/trunk/dotfiles@1233 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- emacs-standard | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/emacs-standard b/emacs-standard index ccacc3d..cccb704 100644 --- a/emacs-standard +++ b/emacs-standard @@ -22,6 +22,11 @@ (not (string-match "Lucid" emacs-version))) ,@body)) +(defmacro cw/for-emacs-22-and-later (&rest body) + `(when (and (>= emacs-major-version 22) + (not (string-match "Lucid" emacs-version))) + ,@body)) + (defmacro cw/for-emacs (&rest body) `(when (not (string-match "Lucid" emacs-version)) ,@body)) -- 2.39.5