bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#70384: [PATCH] 30.0.50; save-mark-and-excursion breaks with tmm disa


From: Eli Zaretskii
Subject: bug#70384: [PATCH] 30.0.50; save-mark-and-excursion breaks with tmm disabled
Date: Thu, 18 Apr 2024 14:04:29 +0300

> From: Paul Nelson <ultrono@gmail.com>
> Date: Sun, 14 Apr 2024 17:52:42 +0200
> 
> Steps to reproduce:
> 
> - Disable transient-mark-mode.
> - Set the mark somewhere (C-SPC), move the point somewhere else.
> - M-: (save-mark-and-excursion (activate-mark))
> 
> This activates the region, but should not.

I'm not sure I agree with your expectations.  activate-mark activates
the mark unconditionally when transient-mark-mode is disabled, unless
you invoke it with a non-nil argument.  And indeed

   (save-mark-and-excursion (activate-mark t))

behaves like you expect.

Stefan, am I missing something?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]