The following change:

2005-06-13  Kim F. Storm  <[EMAIL PROTECTED]>

        * subr.el (add-to-ordered-list): New defun.

        * emulation/cua-base.el (cua-mode): Use add-to-ordered-list to
        add cua--keymap-alist to emulation-mode-map-alists.


was installed as a preparation for allowing cua-mode and viper-mode
to co-exist and co-operate seamlessly, when viper-mode has been
changed to use emulation-mode-map-alists.

The benefit of the change is that it becomes trivial to ensure that
the viper and cua entries in emulation-mode-map-alists are always in
the proper order (viper first), if future modes need to use the list
too.

The reason why at present only symbol elements can be ordered is a
practical one for the up-coming release -- it is sufficient for the
specific case of emulation-mode-map-alists.

A general solution is non-trivial, as there is a potential risk of memory
leaks, as associating ordering information with arbitrary lisp objects
means that we must store a pointer to such objects somewhere, and thus
may leave references to otherwise unused data.

So IMHO it was better to choose the trivial implementation now and
leave enhancements for after the release.

--
Kim F. Storm <[EMAIL PROTECTED]> http://www.cua.dk



_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to