If I do M-x hide-ifdef-mode in a C++/C mode buffer, hide-ifdef minor
mode is correctly initialised except for the keymap, which is not bound
in. So C-c @ just says C-c @ not defined, and C-h b errors with "Wrong
type argument: keymapp, hide-ifdef-mode-map".
This is obviously not a great state of affairs in vanilla xemacs.
Cribbing from hideshow.el, it appears that a line of the following form
is required:
(fset 'hide-ifdef-mode-map hide-ifdef-mode-map)
and indeed this cures the problem. The question is, is this the right
way to fix the problem and is it Emacs compatible? If someone can
assure me as to the rightness of this patch, I'll submit it to
xemacs-patches.
Cheers,
Malcolm