Re: [Python-mode] simplifying beginning-of-defun

2009-09-27 Thread Andreas Roehler
Stefan Monnier wrote: >> simplifying forms as below should ease maintenance and speed up execution. > > To what extent does it preserve compatibility? Don't see anything incompatible for the moment. OTOH it will take some feasible bugs from progmodes. It underlines a paradigm change, which was

[Python-mode] simplifying beginning-of-defun (2)

2009-09-27 Thread Andreas Roehler
Below again the code, as end-of-defun-raw had a bug last times ;; GNU's lisp.el ;; unhappily sets this var globally, ignoring its use for progmodes (when (featurep 'emacs) (setq end-of-defun-function nil)) (setq defun-searchform '(if defun-prompt-regexp (concat "^\\

Re: [Python-mode] simplifying beginning-of-defun

2009-09-27 Thread Stefan Monnier
>>> simplifying forms as below should ease maintenance and speed up execution. >> To what extent does it preserve compatibility? > Don't see anything incompatible for the moment. I actually mentionned obvious incompatibilities in the email to which you reply. > With `beginning-of-defun-function',