From: tfheen Date: Fri, 16 May 2008 07:40:51 +0000 (+0000) Subject: Add cw/for-emacs-22-and-later macro X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9292d698d22581fcf0c1120c856c9f48a018aed;p=dotfiles Add cw/for-emacs-22-and-later macro git-svn-id: file:///svn/tfheen/trunk/dotfiles@1233 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- 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))