sh-mode function broken (ill-defined)

Jérôme Marant jmarant
Wed Oct 18 10:34:13 EDT 2006


Le mercredi 18 octobre 2006 10:24, Didier Verna a ?crit?:
> 
>         Hi !

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.

It surely was working at the time the patch was committed.

> 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 ?

I have no idea.

Regards,

-- 
J?r?me Marant



More information about the XEmacs-Beta mailing list