narrow-to-region后怎么取消选中?

选中一块区域后,narrow-to-region,进入到 Narrow 状态,但是整个区域还是选中的,每次都要再按一下 C-g 退出选中状态。

打补丁:

(defun narrow-to-region-pop-mark (_ _) (pop-mark))
(advice-add #'narrow-to-region :after #'narrow-to-region-pop-mark)
1 个赞

有作用,多谢!