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: Eli Zaretskii
Subject: Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...]
Date: Thu, 18 Feb 2021 22:24:26 +0200

> Date: Thu, 18 Feb 2021 20:14:18 +0000
> From: Alan Mackenzie <acm@muc.de>
> Cc: emacs-devel@gnu.org
> 
> > AFAIR those modes derive from c-mode, right? It that is so, the
> > commands are automatically applicable to them.
> 
> Not in the sense of define-derived-mode, no.

Then you could put the 'completion-predicate' property on the symbols
of relevant CC mode commands, and write a predicate that would DTRT
with CC mode commands in modes like java-mode.



reply via email to

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