]> err.no Git - dotfiles/commitdiff
Add cw/for-emacs-22-and-later macro
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Fri, 16 May 2008 07:40:51 +0000 (07:40 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Fri, 16 May 2008 07:40:51 +0000 (07:40 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@1233 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

emacs-standard

index ccacc3d2ba323b1215c16a7b5e77d0018d8a11ec..cccb704c64857116c8f082a7d3f6f8ef078e1b14 100644 (file)
               (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))