1 ;; tinycustom.el -- a tiny custom.el for emulating purpose.
3 ;; Copyright (C) 1999 Mikio Nakajima <minakaji@osaka.email.ne.jp>
5 ;; Author: Mikio Nakajima <minakaji@osaka.email.ne.jp>
6 ;; Maintainer: Mikio Nakajima <minakaji@osaka.email.ne.jp>
7 ;; Keywords: emulating, custom
9 ;; This file is part of APEL (A Portable Emacs Library).
11 ;; This program is free software; you can redistribute it and/or
12 ;; modify it under the terms of the GNU General Public License as
13 ;; published by the Free Software Foundation; either version 2, or (at
14 ;; your option) any later version.
16 ;; This program is distributed in the hope that it will be useful, but
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 ;; General Public License for more details.
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with GNU Emacs; see the file COPYING. If not, write to the
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24 ;; Boston, MA 02111-1307, USA.
28 ;; Purpose of this program is emulating for who does not have
30 ;; DEFCUSTOM below has the same effect as the original DEFVAR has.
31 ;; DEFGROUP and DEFFACE below are just nop macro.
37 (defmacro-maybe defgroup (symbol members doc &rest args)
38 "Declare SYMBOL as a customization group containing MEMBERS.
39 SYMBOL does not need to be quoted.
40 Third arg DOC is the group documentation.
42 This is a nop defgroup only for emulating purpose.."
45 (defmacro-maybe defcustom (symbol value doc &rest args)
46 "Declare SYMBOL as a customizable variable that defaults to VALUE.
47 DOC is the variable documentation.
49 This is a defcustom only for emulating purpose.
50 Its effect is just as same as that of defvar."
51 (` (defvar (, symbol) (, value) (, doc))) )
53 (defmacro-maybe defface (symbol value doc &rest args)
54 "Declare FACE as a customizable face that defaults to SPEC.
55 FACE does not need to be quoted.
57 This is a nop defface only for emulating purpose."
63 ;; end of tinycustom.el