From f732f824ad4fcea0c567e5ae3b14531425f9bc8f Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Mon, 9 Sep 2002 22:44:44 +0000 Subject: [PATCH] (apply-macro-to-region-lines): Let-bind mark-active to nil while executing macro to avoid triggering delete-selection-mode. --- lisp/macros.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/macros.el b/lisp/macros.el index 0857dd3c2db..11fa2223a4e 100644 --- a/lisp/macros.el +++ b/lisp/macros.el @@ -299,7 +299,8 @@ and then select the region of un-tablified names and use (forward-line 1) (set-marker next-line-marker (point))) (save-excursion - (execute-kbd-macro (or macro last-kbd-macro)))) + (let ((mark-active nil)) + (execute-kbd-macro (or macro last-kbd-macro))))) (set-marker end-marker nil) (set-marker next-line-marker nil)))) -- 2.39.5