sh-mode function broken (ill-defined)

Didier Verna didier
Wed Oct 18 11:17:37 EDT 2006


        Hi !


I have not checked precisely, but probably at least since:

2005-10-12  J?r?me Marant  <jmarant at free.fr>

	* sh-script.el: Sync with GNU Emacs 21.4


the function sh-mode doesn't work in XEmacs. It is defined with
define-derived-mode and nil as the parent. This makes the resulting function
try to call (nil) as a function. I'm puzzled that this hasn't been spotted
earlier.

A quick fix is to make fundamental-mode the parent of sh-mode, but I fail to
see the point of defining a _derived_ mode if there is no parent... I suspect
the semantics of define-derived-mode in GNU Emacs is a bit different ?


-- 
Check out my new jazz CD on http://www.didierverna.com/ !

Didier Verna	EPITA / LRDE, 14-16 rue Voltaire   Tel.+33 (1) 44 08 01 85
             	94276 Le Kremlin-Bic?tre, France   Fax.+33 (1) 53 14 59 22



More information about the XEmacs-Beta mailing list