Hi,
I stumbled on this code fragment with keymaps in GNU Emacs lisp and I
wonder how it should be implemented properly. As Googling didn't
answer this I turned to the list.
Gnu version:
(use-local-map (append (make-sparse-keymap) (current-local-map)))
As I get it keymaps are objects in XEmacs so appending them doesn't
work. GNU Emacs also have functions for dealing with keymaps so even
there maybe appending keymaps isn't the best thing!? Maybe use
inheritance there as well?
Is this the proper XEmacs implementation of the code above?
(use-local-map (let ((map (make-sparse-keymap)))
(set-keymap-parent map (current-local-map))
map))
Finally - Does this code make sense?
Yours
--
%% Mats
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta