[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] org-src.el: add option `org-src-native-defun-movements'
From: |
Sébastien Miquel |
Subject: |
[PATCH] org-src.el: add option `org-src-native-defun-movements' |
Date: |
Fri, 3 Dec 2021 19:01:04 +0000 |
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
0001-org-src.el-add-option-org-src-native-defun-movements.patch
Description: Text Data
- [PATCH] org-src.el: add option `org-src-native-defun-movements',
Sébastien Miquel <=