embrace.el icon indicating copy to clipboard operation
embrace.el copied to clipboard

Set expand-region-smart-cursor to nil before expansion

Open SpringerJack opened this issue 10 months ago • 0 comments

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

SpringerJack avatar Mar 29 '24 17:03 SpringerJack