From: "Ville Skyttä" Date: 2002-04-09T18:01:13+09:00 Subject: Re: [patch] update to (X)Emacs modes On Tue, 2002-04-09 at 05:39, Nobuyoshi Nakada wrote: > I found the announce of defcustom and defgroup in NEWS of Emacs > 20.1, but couldn't about add-to-list. A quick "grep -r" in Emacs sources reveals that 'add-to-list' was already in 19.34. Anyway, if you want to be completely sure, you could use setq instead of add-to-list, and do something like this (from p4.el in XEmacs prog-modes): ;; For flavors of Emacs which don't define `defgroup' and `defcustom'. (eval-when-compile (if (not (fboundp 'defgroup)) (defmacro defgroup (sym memb doc &rest args) "Null macro for defgroup in all versions of Emacs that don't define defgroup" t)) (if (not (fboundp 'defcustom)) (defmacro defcustom (sym val doc &rest args) "Macro to alias defcustom to defvar in all versions of Emacs that don't define defcustom" `(defvar ,sym ,val ,doc)))) Cheers, -- Ville Skytt� ville.skytta@xemacs.org