[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [External] : Re: command mode-specificity [was: scratch/command 064f
From: |
Stefan Monnier |
Subject: |
Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...] |
Date: |
Wed, 17 Feb 2021 10:20:42 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>>>> Tho things can get murky: e.g. when dealing with multi-language buffers,
>>>> or with commands like `diff-refine-hunk` (which I often use in Gnus's
>>>> article buffers).
>>> That's not a mode-specific command, so tagging it as such would be an
>>> error...
>> The point was that it's not necessarily obvious that it's not mode-specific.
> Indeed -- tagging commands as mode-specific is not a mechanical task (or
> something that can be inferred heuristically), but requires actually
> giving each command some consideration.
I think it would be good to try and clarify what should be the
criterion, and not in terms of "should be listed in M-x" since that
inherently depends on opinions, but rather in more technical terms that
depend on what the command does.
[ A bit like with docstrings: we like docstrings that say what the
function does rather than when/where it's meant to be used. ]
Maybe something like "would inevitably signal an error"?
Stefan
- RE: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...], (continued)
- RE: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...], Drew Adams, 2021/02/17
- RE: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...], Stefan Kangas, 2021/02/17
- RE: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...], Drew Adams, 2021/02/17
- Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...], Yuan Fu, 2021/02/17
- Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...], Lars Ingebrigtsen, 2021/02/17
- Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...], Stefan Monnier, 2021/02/16
- Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...], Óscar Fuentes, 2021/02/16
- Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...], Lars Ingebrigtsen, 2021/02/17
- Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...], Stefan Monnier, 2021/02/17
- Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...], Lars Ingebrigtsen, 2021/02/17
- Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...],
Stefan Monnier <=
- Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...], Lars Ingebrigtsen, 2021/02/17
- Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...], Stefan Monnier, 2021/02/17
- Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...], Lars Ingebrigtsen, 2021/02/17
- RE: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...], Drew Adams, 2021/02/17
- RE: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...], Drew Adams, 2021/02/17
- RE: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...], Drew Adams, 2021/02/17
- Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...], Eli Zaretskii, 2021/02/17
- Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...], Lars Ingebrigtsen, 2021/02/17
- Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...], Eli Zaretskii, 2021/02/17
- Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...], Óscar Fuentes, 2021/02/17