Sébastien Miquel <sebastien.miq...@posteo.eu> writes:
> Hi, > > The attached patch adds a new option ~org-src-native-defun-movements~ > that makes ~beginning-of-defun~, ~end-of-defun~ and ~eval-defun~ work > natively when called from inside an org src block : those functions > are called from an org src edit buffer, in the appropriate language > mode. Without this patch, calling =eval-defun= on elisp code fails. > > With this option set to t by default, this is a breaking change. To > get to the beginning/end of a src block you'd have to call > ~org-backward-element~ or ~org-forward-element~ directly, instead of > ~beginning-of-defun~. Or you could disable the new behaviour by > setting ~org-src-native-defun-movements~ to nil. > As this is a breaking change, it should not be on by default. This also seems like an edge case and I'm not convinced yet another option is justified. Why have eilisp in org blocks rather than an emacs-lisp block?