Hi,
I noticed today that the function `define-derived-mode' doesn't copy the
property list of the symbol which refers to the command which starts a
mode.
I tried LAML (great stuff) and its Emacs mode. I noticed that
font-locking didn't work (also the mode is derived from scheme-mode).
The reason is that the keywords for font-locking are set in the property
list of the command `scheme-mode'.
I tried a simple
(map-plist #'(lambda (key val)
(put 'laml-mode key val))
(object-plist 'scheme-mode))
and everything was fine.
So shouldn't `define-derived-mode' run something like that also?
Karl
--
Mary had a little lambda,
Its syntax white as snow,
And every program Mary wrote,
She wrote in Lisp, you know.
Show replies by date