* lisp/initz-globals.el (toplevel): Require `static'.
[elisp/initz.git] / lisp / initz-globals.el
1 ;;; initz-globals.el --- Global variables and constants.
2
3 ;; Copyright (C) 2002 OHASHI Akira <bg66@koka-in.org>
4
5 ;; Author: OHASHI Akira <bg66@koka-in.org>
6 ;; Keywords: startup, init
7
8 ;; This file is part of Initz.
9
10 ;; This program is free software; you can redistribute it and/or modify
11 ;; it under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 2, or (at your option)
13 ;; any later version.
14
15 ;; This program is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 ;; GNU General Public License for more details.
19
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs; see the file COPYING.  If not, write to the
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 ;; Boston, MA 02111-1307, USA.
24
25
26 ;;; Commentary:
27 ;;
28
29 ;;; Code:
30
31 (require 'static)
32
33 (defconst initz-null-string "")
34
35 (defconst initz-separator-string "-")
36
37 (defconst initz-module-regexp "[-.a-zA-Z0-9]+")
38
39 (defconst initz-flavor
40   (if (featurep 'xemacs)
41       (concat "xemacs" (number-to-string emacs-major-version))
42     (static-if (featurep 'meadow)
43         (concat "meadow"
44                 (let ((mver (Meadow-version)))
45                   (if (string-match "Meadow-\\([0-9]+\\.[0-9]+\\)"
46                                     mver)
47                       (match-string 1 mver))))
48       (concat "emacs" (number-to-string emacs-major-version)))))
49
50 (defconst initz-load-module-ask-message-format
51   "Load init file for %s? ")
52
53 (defconst initz-load-module-message-format
54   "Loading init file for %s...")
55
56 (defconst initz-unload-module-message-format
57   "Unloading init file for %s...")
58
59 (defvar initz-compile-error-files nil)
60
61 (defvar initz-load-error-files nil)
62
63 (defvar initz-load-list-internal nil)
64
65 (defvar initz-ignore-list-internal nil)
66
67 (provide 'initz-globals)
68
69 ;;; initz-globals.el ends here