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. Regards, -- Sébastien Miquel