From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...] Date: Fri, 19 Feb 2021 14:41:42 +0200 Message-ID: <267bf03a-8c14-76ab-ba87-36c495d23e05@yandex.ru> References: <87tuqbft57.fsf@telefonica.net> <87im6rndo0.fsf@gnus.org> <87v9aqn5eq.fsf@gnus.org> <83h7ma7k5y.fsf@gnu.org> <87tuqa1ogn.fsf@gnus.org> <83tuqa5ug7.fsf@gnu.org> <87eehdy5ie.fsf@gnus.org> <87czwwuukq.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25873"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: ofv@wanadoo.es, Eli Zaretskii , monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Lars Ingebrigtsen , Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 19 13:44:09 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 1lD58j-0006eG-PB for ged-emacs-devel@m.gmane-mx.org; Fri, 19 Feb 2021 13:44:09 +0100 Original-Received: from localhost ([::1]:38862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lD58i-0007oy-Ny for ged-emacs-devel@m.gmane-mx.org; Fri, 19 Feb 2021 07:44:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lD56U-0005lH-Ta for emacs-devel@gnu.org; Fri, 19 Feb 2021 07:41:51 -0500 Original-Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]:40681) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lD56T-0000Zi-2g; Fri, 19 Feb 2021 07:41:50 -0500 Original-Received: by mail-ej1-x629.google.com with SMTP id u20so12191621ejb.7; Fri, 19 Feb 2021 04:41:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=2xIlooFjc3lhN9lAco513WGqF9T8UPblXqJHR/UrNcw=; b=dM1oAhuZvBywcLdZ6qOQ5LZ+M3gRIwQQ7bwaIQU780Y+wZ9Qe4cSNMVa+xnXU7HH0k 23u2S9qWJX7Zbyqew+hzIjTVFF8upXZeWXOA+7gfh1QtFQs3XURC3S/b6WVQkmE071Q1 rsfWzoshUbe69gkVx1PmDrU+M9gzNFurdwz8T/rtavIv4CAmct7N7dDhdnoFI9VSppCg 3N/BmYFduD2fgTl1qcCptagIK1KcciLXvo9QRKXoJUFTvgVMjZUOB+GV1aK5pkuG/rFf aoi90EcKJUVEtSlfZ3/IoqqL1a74IEoncfs3wca3RQqingLbIxvLNf6M/cb2ayB+yp3R AmGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2xIlooFjc3lhN9lAco513WGqF9T8UPblXqJHR/UrNcw=; b=beaJxvYSt3BMxlIgW0UnOZK6QJjJVbcZJO3BEOvTprsMccWcF9cFp6dbUc5zLG2WE0 X0q4u+RFHkPMDt0S53zcvcOZLfVC0Wmwx2af+NvHJFLSrLf1OM56kB4oskLOWgZUQqm0 +GiMwEbYGR6GvLk8P88v4hd1vCNLsrj38AHcGBIvvl7O0AxbUB9CN5x3kZH5Rh6ahmQr 8gtXks6CxCuaJz7TO/E98UUUQi+UFUd8vMPvQMT3/QXWTc5wB7rtkU/7bPi0CuqihM9Y tfKIUap7PxMXmpzcQ3aiG2n/9RDQG3NhAu7qDgYCHMNlglSo/ZXiDUF7Hnl6fDOJmbl5 lFDg== X-Gm-Message-State: AOAM532Wcj+OZ+wyGtzU8sySi5Njh3e/xqOcrNpVXQEcnsvcqh0QVp05 Y+P+y1Cr6fAnH7vHhrFf6twb8gteQtI= X-Google-Smtp-Source: ABdhPJw9TtxKCLBLGt3KyHQIdonJTAvpN3jpaaL/sn+3Yz1k3OL6HBsrYnHxXhTCB/TZ7ejoJpFW/A== X-Received: by 2002:a17:907:a059:: with SMTP id gz25mr8644856ejc.400.1613738506337; Fri, 19 Feb 2021 04:41:46 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id ia25sm2635695ejc.44.2021.02.19.04.41.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Feb 2021 04:41:45 -0800 (PST) In-Reply-To: <87czwwuukq.fsf@gnus.org> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::629; envelope-from=raaahh@gmail.com; helo=mail-ej1-x629.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:265236 Archived-At: On 19.02.2021 14:10, Lars Ingebrigtsen wrote: > Did you have any examples in mind here? > > But if such commands exist, then they do not sound like they should be > tagged as mode-specific. Alan mentioned c-toggle-comment-style, which should work in any CC major mode. But the list of those modes is not known in advance when c-toggle-comment-style is defined, and they don't "derive" from a particular major mode either.