hs-minor-mode, add-to-list

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

hs-minor-mode, add-to-list

Andreas Röhler-2

Hi Mikhail,

intend to propose your patch for XEmacs.

Having a look at it at again, see you removed

-  (unless (assoc 'python-mode hs-special-modes-alist)

remains

  (setq hs-special-modes-alist
        (cons (list

Think it was a useful check, as loading python-mode at
several occasions will cons it again and again.

The best form to avoid that is not `(unless (assoc' IMO, but the use of
add-to-list instead of cons.

If agreed, may you change that so far?

Thanks


Andreas

--
https://code.launchpad.net/s-x-emacs-werkstatt/
http://bazaar.launchpad.net/~a-roehler/python-mode/python-mode.el/

_______________________________________________
Python-mode mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-mode