From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...] Date: Thu, 18 Feb 2021 22:24:26 +0200 Message-ID: <83mtw13z0l.fsf@gnu.org> References: <83tuqa5ug7.fsf@gnu.org> <87eehdy5ie.fsf@gnus.org> <87tuq98gdl.fsf@telefonica.net> <87pn0x8f8l.fsf@telefonica.net> <87mtw1s1jk.fsf@gmail.com> <87lfbl894v.fsf@telefonica.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6422"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ofv@wanadoo.es, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 18 21:28:13 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lCpuH-0001Zq-Ph for ged-emacs-devel@m.gmane-mx.org; Thu, 18 Feb 2021 21:28:13 +0100 Original-Received: from localhost ([::1]:40794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCpuG-000800-NS for ged-emacs-devel@m.gmane-mx.org; Thu, 18 Feb 2021 15:28:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCpqR-0004PV-Sh for emacs-devel@gnu.org; Thu, 18 Feb 2021 15:24:15 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49636) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCpqQ-0003t0-Fo; Thu, 18 Feb 2021 15:24:14 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2552 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lCpqP-00053R-Nw; Thu, 18 Feb 2021 15:24:14 -0500 In-Reply-To: (message from Alan Mackenzie on Thu, 18 Feb 2021 20:14:18 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:265193 Archived-At: > Date: Thu, 18 Feb 2021 20:14:18 +0000 > From: Alan Mackenzie > 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.