From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...] Date: Tue, 16 Feb 2021 21:39:26 -0500 Message-ID: <51D30679-D420-48D7-A169-DC87F8AF209D@gmail.com> References: <87wnv7spji.fsf@gnus.org> <875z2rslqk.fsf@gnus.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23844"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" , Stefan Monnier , "dgutov@yandex.ru" , Eli Zaretskii , Drew Adams , "stefankangas@gmail.com" To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 17 03:40:38 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 1lCClZ-00066O-Vq for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Feb 2021 03:40:37 +0100 Original-Received: from localhost ([::1]:54402 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCClZ-0003es-0d for ged-emacs-devel@m.gmane-mx.org; Tue, 16 Feb 2021 21:40:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53406) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCCkV-0003Bd-Ri for emacs-devel@gnu.org; Tue, 16 Feb 2021 21:39:31 -0500 Original-Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]:37576) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCCkU-0005CC-2D; Tue, 16 Feb 2021 21:39:31 -0500 Original-Received: by mail-qt1-x82d.google.com with SMTP id v3so8601320qtw.4; Tue, 16 Feb 2021 18:39:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=y8Mi1sZBV7XPsGQqJx0i1pRLOaYmGrTeT91K52Udiyo=; b=rZaPnzDeku5ggtDCK1MemOXE1Bc1fTVBqu8l7D5op4ZkT2x6l1I3eJZSRSzYWldRaq iwhU5ur7waGEBLiISjJrfvlK9xqiQL5JKa9+YOxjunbTg0coi+9gyOwi2caGg71X0y0K 4UY1gW98jSDmEfnr5Y8ZPqAmGriTIiRzXAKjUwQTQBOaOiQunSZALX3kkhNCFW4gj2PU 3TSFr2qggcnV+AO1KwHLB4l0TTcvm86gWR4622V6g8mBDZhK44Wh14fapdmAogi5r+T+ /UkknY8LnYLjHZhtROgT3+ZeA5O2ejdBvdF+o4z6v9O0e3H3DpxuthK2+TuVBFCeUkEA 0RAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=y8Mi1sZBV7XPsGQqJx0i1pRLOaYmGrTeT91K52Udiyo=; b=QRb6SHI2IJdoJdF5tA7rQOdrLuL6lCQTzuXReYUD62vV7mZ/542T0kE6r3KAjSk7M6 E0Oxdsg7AfgiezggnxrmjyMLKGmIgLi8SLL8oEeUf1oD03HRvYFk1DhKsSt0aHU7pfgI X7DwMqeEp1tgVNOHmN55zNBtOJ4u1iVVYwanrPtiXgALyk889m63tYmpRNDTeFftmBLv nWc/vnQJ/TU0PUScDHdrUe/XwkfPQ2P+nykq/xug445KXnCsI2PI2tcL+uCynFnTCYTF lWetxxizQfqwjXRwjqATT8Gyz4NUtdfefmZlmlLjrxvdAgHMQgl+8OUc9RQWtLZ6XNR3 wckw== X-Gm-Message-State: AOAM5333jr/yTtjq/8dsRB23sYEoxpkAyYDflaRHYh1A/mzBa9fMJmH2 9q1kDZ1e7o12wqUmd8J8EbE= X-Google-Smtp-Source: ABdhPJx5bIBvLCD8QW+Bra6f+Brox6QhhUYB4p+ui0pvFhZgrIKT8+ThMo+GslqOukRlwegy6mKZ1g== X-Received: by 2002:ac8:1115:: with SMTP id c21mr21722024qtj.389.1613529568443; Tue, 16 Feb 2021 18:39:28 -0800 (PST) Original-Received: from ?IPv6:2601:98a:4102:3d80:34cb:b7d5:1fb1:291a? ([2601:98a:4102:3d80:34cb:b7d5:1fb1:291a]) by smtp.gmail.com with ESMTPSA id w14sm340980qto.46.2021.02.16.18.39.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Feb 2021 18:39:28 -0800 (PST) In-Reply-To: <875z2rslqk.fsf@gnus.org> X-Mailer: Apple Mail (2.3654.60.0.2.21) Received-SPF: pass client-ip=2607:f8b0:4864:20::82d; envelope-from=casouri@gmail.com; helo=mail-qt1-x82d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:264973 Archived-At: > On Feb 16, 2021, at 5:15 PM, Lars Ingebrigtsen wrote: >=20 > Drew Adams writes: >=20 >> I won't bother to try counting my other libraries. >> My code might not be typical, of course. But I >> still am curious about the general case. Can you >> provide more than a sample of just 2 libraries? >=20 > 5x5.el: 21 commands, 6 non-mode-specific ones. >=20 > --=20 > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no >=20 My understanding is that, because gnus, eww and 5x5 are self-contained = =E2=80=9Capplications=E2=80=9D, it makes sense that most of their = commands only make sense in the corresponding major mode. Likewise for = org-mode, python-mode, etc. General text editing commands and other = utility commands would makes sense regardless of the major mode, for = example, bookmark, help, debug-on-entry, load-theme, fill-paragraph. So it all comes down to how many commands are from standalone = applications and major modes and how many from generic utility packages. Yuan=