[Top][All Lists]

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

Re: DWIM region

From: Stefan Monnier
Subject: Re: DWIM region
Date: Thu, 04 Jan 2018 18:14:40 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> The byte compiler should warn about
> `mark-active' if you aren't allowed to use that
> ever - perhaps difficult to implement if indeed
> OK in other circumstances...?

`mark-active` is a normal variable and you're perfectly allowed to use
it (and modify it if you want).  But in order to decide whether to use
the region or not, `use-region-p` is the canonical way to test it (and
it uses `mark-active` internally).

It'd be very difficult for the byte-compiler to distinguish those uses
of `mark-active` which would be better replaced by `use-region-p`.


reply via email to

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