From: <tomas@tuxteam.de>
To: help-gnu-emacs@gnu.org
Subject: Re: [External] : What is the difference between (deactivate-mark) and (setq deactivate-mark t)?
Date: Wed, 7 Apr 2021 09:25:38 +0200 [thread overview]
Message-ID: <20210407072538.GB13640@tuxteam.de> (raw)
In-Reply-To: <87v98ybrrn.fsf@mbork.pl>
[-- Attachment #1: Type: text/plain, Size: 743 bytes --]
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 #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2021-04-07 7:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-03 3:42 What is the difference between (deactivate-mark) and (setq deactivate-mark t)? Marcin Borkowski
2021-04-03 4:11 ` [External] : " Drew Adams
2021-04-03 4:13 ` Drew Adams
2021-04-03 4:24 ` Drew Adams
2021-04-07 5:14 ` Marcin Borkowski
2021-04-07 7:25 ` tomas [this message]
2021-04-07 14:58 ` Drew Adams
2021-04-07 15:30 ` tomas
2021-04-07 14:54 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210407072538.GB13640@tuxteam.de \
--to=tomas@tuxteam.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.