From 21551f1897f94df67161170391aadb99d87ff506 Mon Sep 17 00:00:00 2001 From: morioka Date: Wed, 25 Aug 1999 06:58:12 +0000 Subject: [PATCH] Don't require `emu'. (emacs-major-version): New variable [for old emacsen]. (emacs-minor-version): New variable [for old emacsen]. --- install.el | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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) -- 1.7.10.4