[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`.
Stefan
- Re: count regexp hits, (continued)
- advice vs hooks in org (was DWIM region), Rusi, 2018/01/08
- Message not available
- Re: DWIM region, Emanuel Berg, 2018/01/04
- Re: DWIM region,
Stefan Monnier <=
- Message not available
- Re: DWIM region, Emanuel Berg, 2018/01/04
- Re: DWIM region, Emanuel Berg, 2018/01/04
- Message not available
- Re: DWIM region, Emanuel Berg, 2018/01/05
- Re: DWIM region, Stefan Monnier, 2018/01/05
- Message not available
- Re: DWIM region, Emanuel Berg, 2018/01/05
- Re: DWIM region, Stefan Monnier, 2018/01/06
- Message not available
- Re: DWIM region, Emanuel Berg, 2018/01/06
- Message not available
- Re: DWIM region, Emanuel Berg, 2018/01/06
- Message not available
- Re: DWIM region, Emanuel Berg, 2018/01/06
- Re: DWIM region, Emanuel Berg, 2018/01/06