From 03a991931863486436193f3e8edd0fd7d7d271c3 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Wed, 18 Sep 2024 20:37:44 +0300 Subject: [PATCH] Additional fix for kill-region-dwim (bug#69097) * lisp/simple.el (kill-region): Restore the original logic of raising the error unless both 'beg' and 'end' are non-nil since 'end' is always non-nil. --- lisp/simple.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/simple.el b/lisp/simple.el index fcdf644d9d9..4fff24205be 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -5870,7 +5870,7 @@ Supply two arguments, character positions BEG and END indicating the (cond ((and kill-region-dwim (not (use-region-p))) (list beg end kill-region-dwim)) - ((not (or beg end)) + ((not (and beg end)) (user-error "The mark is not set now, so there is no region")) ((list beg end 'region))))))