]> git.eshelyaron.com Git - emacs.git/commitdiff
`emacs-version' checking now handles Lucid's version change to 19.xx.
authorThien-Thi Nguyen <ttn@gnuvola.org>
Tue, 14 Mar 1995 16:29:27 +0000 (16:29 +0000)
committerThien-Thi Nguyen <ttn@gnuvola.org>
Tue, 14 Mar 1995 16:29:27 +0000 (16:29 +0000)
lisp/progmodes/hideshow.el

index 262543818b42a0d144b034d8586bb5772879ca43..4f638dc2f75103e0a44442fc555d35cf390934f0 100644 (file)
@@ -158,11 +158,11 @@ is necessary.")
   "Used to support both FSF Emacs and Xemacs.")
 
 (eval-when-compile
-  (if (string-match "^19" emacs-version)
-      nil
-    (defvar current-menubar nil "")
-    (defun set-buffer-menubar (arg1))
-    (defun add-menu (arg1 arg2 arg3))))
+  (if (string-match "xemacs\\|lucid" emacs-version)
+      (progn
+       (defvar current-menubar nil "")
+       (defun set-buffer-menubar (arg1))
+       (defun add-menu (arg1 arg2 arg3)))))
 
 
 ;;;----------------------------------------------------------------------------
@@ -428,9 +428,9 @@ variables to default values and disables the hideshow commands."
 
 ;; which emacs being used?
 (setq hs-emacs-type
-      (if (string-match "^19" emacs-version)
-         'fsf
-       'lucid))
+      (if (string-match "xemacs\\|lucid" emacs-version)
+         'lucid
+       'fsf))
 
 ;; keymaps and menus
 (if (not hs-minor-mode-map)