diff lisp/modes/hideshow.el @ 74:54cc21c15cbb r20-0b32

Import from CVS: tag r20-0b32
author cvs
date Mon, 13 Aug 2007 09:04:33 +0200
parents ac2d302a0011
children 43dd3413c7c7
line wrap: on
line diff
--- a/lisp/modes/hideshow.el	Mon Aug 13 09:03:47 2007 +0200
+++ b/lisp/modes/hideshow.el	Mon Aug 13 09:04:33 2007 +0200
@@ -159,15 +159,16 @@
 `forward-sexp'.  For other modes such as simula, a more specialized function
 is necessary.")
 
-(defvar hs-emacs-type 'fsf
+(defvar hs-emacs-type 'lucid
   "Used to support both FSF Emacs and Xemacs.")
 
-(eval-when-compile
-  (if (string-match "xemacs\\|lucid" emacs-version)
-      (progn
-	(defvar current-menubar nil "")
-	(defun set-buffer-menubar (arg1))
-	(defun add-menu (arg1 arg2 arg3)))))
+;; This doesn't work
+;(eval-when-compile
+;  (if (string-match "XEmacs\\|Lucid" emacs-version)
+;      (progn
+;	(defvar current-menubar nil "")
+;	(defun set-buffer-menubar (arg1))
+;	(defmacro add-menu (arg1 arg2 arg3)))))
 
 
 ;;;----------------------------------------------------------------------------
@@ -417,7 +418,7 @@
  	(if (eq hs-emacs-type 'lucid)
 	    (progn
 	      (set-buffer-menubar (copy-sequence current-menubar))
-	      (add-menu nil (car hs-menu-bar) (cdr hs-menu-bar))))
+	      (add-submenu (car hs-menu-bar) hs-menu-bar)))
 	(setq selective-display t
 	      selective-display-ellipses t)
 	(hs-grok-mode-type)