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

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

Re: [External] : What is the difference between (deactivate-mark) and (s


From: tomas
Subject: Re: [External] : What is the difference between (deactivate-mark) and (setq deactivate-mark t)?
Date: Wed, 7 Apr 2021 09:25:38 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Apr 07, 2021 at 07:14:20AM +0200, Marcin Borkowski wrote:
> 
> On 2021-04-03, at 06:11, Drew Adams <drew.adams@oracle.com> wrote:

> > After a command finishes and returns, the command
> > loop normally automatically deactivates the mark.
> > IOW, for the next command the mark is inactive.

[...]

> I think I now know the reason - while experimenting with this and
> studying the docs, I probably found out [...]
>      It seems that its main use is to actually _prevent_ the code
> from deactivating the region _if_ it would do it otherwise, by means of
> _modifying_ the buffer.

In a nutshell: deactivating (i.e. setting to nil) `deactivate-mark'
deactivates the mark-deactivating code. Phew ;-)

Cheers
 - t

Attachment: signature.asc
Description: Digital signature


reply via email to

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