emacs-devel
[Top][All Lists]
Advanced

[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 09:01:32 -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.

> Multi-language buffers are an interesting problem, though.  But...  they
> work by switching `major-mode' around, don't they?  In which case,
> things should pretty much work automatically.  (I'm thinking of
> mhtml-mode.)

That's my hope as well.  There's also org-babel, BTW.

>> IOW when you have one "language's" text in a buffer that's not using the
>> corresponding major mode.
> I'm trying to think of cases where this would be a problem, but I'm
> having problems coming up with an example.

It should only be a problem if some commands are tagged
too optimistically.


        Stefan




reply via email to

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