embrace.el
embrace.el copied to clipboard
Set expand-region-smart-cursor to nil before expansion
If expand-region-smart-cursor
is set to t
the point may end up at the end of the region. In that case embrace--expand-region-research
will fail to identify the matching pair leading to the use of embrace--fallback-re-search
. This leads to unexpected behaviour e.g. when deleting a pair of parentheses:
(defun example () | nil) => (defun example ) | nil