From: morioka Date: Wed, 25 Aug 1999 06:58:12 +0000 (+0000) Subject: Don't require `emu'. X-Git-Tag: of-tm-8_5~5 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21551f1897f94df67161170391aadb99d87ff506;p=elisp%2Fapel.git Don't require `emu'. (emacs-major-version): New variable [for old emacsen]. (emacs-minor-version): New variable [for old emacsen]. --- diff --git a/install.el b/install.el index 8c3f49b..04bc553 100644 --- a/install.el +++ b/install.el @@ -28,9 +28,21 @@ ;; for historical reason, we do (require 'emu) in this file. ;; but you should do (require 'emu) explicitly if you use functions and/or ;; variables defined in emu module. -(require 'emu) +;;(require 'emu) (require 'path-util) ; default-load-path +(defvar emacs-major-version (string-to-int emacs-version) + "Major version number of this version of Emacs. +This variable first existed in version 19.23.") + +(defvar emacs-minor-version + (string-to-int + (substring emacs-version + (string-match (format "%d\\." emacs-major-version) + emacs-version))) + "Minor version number of this version of Emacs. +This variable first existed in version 19.23.") + ;; verbatim copy of `defun-maybe' from poe.el, and ;; `make-directory-internal' and `make-directory' from poe-18.el (defmacro defun-maybe (name &rest everything-else)