From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Smarter M-x that filters on major-mode Date: Sun, 14 Feb 2021 19:00:25 +0100 Message-ID: <87im6ubkcm.fsf@gnus.org> References: <8ed9b43502ae1480e06b@heytings.org> <87v9aydg3f.fsf@gnus.org> <83y2fuheph.fsf@gnu.org> <87im6yd4sz.fsf@gnus.org> <8735y2y44f.fsf@gnus.org> <87mtwajua4.fsf@telefonica.net> <87eehmwfeg.fsf@gnus.org> <87blcqjq45.fsf@telefonica.net> <875z2ywbvm.fsf@gnus.org> <87pn16mehu.fsf@gnus.jao.io> <87o8gpvdfd.fsf@gnus.org> <87a6s9mf87.fsf@gnus.jao.io> <87o8goryuj.fsf@gnus.org> <87y2fqepza.fsf_-_@gnus.org> <87pn12u3x8.fsf@tcd.ie> <87h7meenj0.fsf@gnus.org> <87blcmr1dv.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="527"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: "Basil L. Contovounesios" , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Feb 14 19:10:08 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 1lBLqS-000AXV-2e for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Feb 2021 19:10:08 +0100 Original-Received: from localhost ([::1]:33426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBLqR-0001si-14 for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Feb 2021 13:10:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBLhJ-0007fR-UX for emacs-devel@gnu.org; Sun, 14 Feb 2021 13:00:44 -0500 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:51302) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBLhB-0004Ur-U6 for emacs-devel@gnu.org; Sun, 14 Feb 2021 13:00:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=dGItDvKPSP6FO/4vjzMk2sCkU8FaL4ryRowr1V+2fcs=; b=Jrys8L+KQxuobR7rjkliY4nfsK jA/5eCoTyUk3zTZ3rWaScWoXuDzYjahHS9QVn/GPB2a7x349HjHe3c7086m0PV4iZBqmfSvZbsN20 5aj4jusOYsLqVrnnCQ1Wwc6pbdWIGy2hTj8ul3pblO38LIwkepuZk1zYhgKFhPCDOSQU=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lBLh5-0002Pq-2Q; Sun, 14 Feb 2021 19:00:29 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAM1BMVEX95ij97DT98Dn8 7UP98kny1iimkyfOtSfh0kP94h799VL+7VD/9COMeB7Et0NnVxn///881TY2AAAAAWJLR0QQlbIN LAAAAAd0SU1FB+UCDhE0FdtR2pkAAAE9SURBVEjHrZKLksIgDEVjgUB4yP//rTwFtrRCZ+84ymA5 JwkF+J0XvFLuH7rK9T+nHCmw69kwZM0t+0wLJT0x1IFl4s2EYt+7hq2xpsH+PTDMsp9A3V43HCsX N7nFZcOxbxh7meLCb0PnsC0DZEOGJdpQ7SSMbRqgN9yzC3/bENKX39rotjo6Y5wDCJQ1AsIXtmXI zKBa2pqxshPplR8V+z3kg4lxdKRpOOePDQvhOSD+wcALrXK/9GSgbUM52VPu8tywFK31vmELv2Cg 0wOmQxRICG+LfjsZCGyk2NO7HzaJzgUYg+6t304apVcCIB1K4clLW4umBKZvRoN+e9QYPm6s9dJA Aj2is+hthNEsYw9aKxfwQbLWAwlCFF44OacXB3U9hCFphWszSjedEJZ+pRqUVMZcv0Cme41izAcm uRkcB4tMLgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0wMi0xNFQxNzo1MjoyMSswMDowME0bFJ8A AAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDItMTRUMTc6NTI6MjErMDA6MDA8RqwjAAAAAElFTkSu QmCC X-Now-Playing: Masada String Trio's _50: 1_: "Malkut" In-Reply-To: <87blcmr1dv.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 14 Feb 2021 19:43:24 +0200") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org 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, 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:264749 Archived-At: Juri Linkov writes: > Such changes as below are not less line noise, and not less Java. > Instead of this, more Lisp-like solution would be like > removing redundant :group args from defcustom when there is > a defgroup before them. The same way a package would declare > its group, then defuns of all package commands could either > add a corresponding 'declare' form, or put a command symbol's > property to the defgroup mode name. Having a "all the rest of the commands in this file belongs to this mode" is fragile and awkward, in my opinion. And since you seem to think that (interactive "p" foo-mode) is too much noise, and Dmitry thinks that it's not enough, then it seems like I've arrived at the ideal compromise. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no