From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Smarter M-x that filters on major-mode Date: Sun, 14 Feb 2021 21:49:03 -0500 Message-ID: References: <8ed9b43502ae1480e06b@heytings.org> <87blcrdlqf.fsf@gnus.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17059"; 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: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 15 03:49:48 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 1lBTxL-0004MN-Td for ged-emacs-devel@m.gmane-mx.org; Mon, 15 Feb 2021 03:49:47 +0100 Original-Received: from localhost ([::1]:49390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBTxK-0003Q8-Tp for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Feb 2021 21:49:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBTwo-00030B-0V for emacs-devel@gnu.org; Sun, 14 Feb 2021 21:49:14 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:1260) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBTwl-0004qk-OO for emacs-devel@gnu.org; Sun, 14 Feb 2021 21:49:13 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id D007D8084A; Sun, 14 Feb 2021 21:49:10 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 3B2F580229; Sun, 14 Feb 2021 21:49:05 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1613357345; bh=PZ6WoYMB5YJCe6/Kt9dJZSYEJi5uhPHVhr4kw0G6V9E=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=J7Sh1GQR7ZD7pSzohxSTK3Ej1tqpnE0R37CTMHBawlJtRtMPyh/rk0OzxknMGWMbm L2kjbWV6hBXZ5EzbLGKhuzeg2yltqlkltOZGutOUn7TeNDvwsvbGniH/VB3YaOGQrf c1vvF/e2P932NAgS3RIzv20cSqOX7dCLrqXF5KO0g8QYEHDBGALShOY8o8dCNcM+ey tRVtZojoGVlj0Xsri2LGQnrKjAyGV0TLmrdUmJRlqItTDiAfsBWQNJy9psSWb56jE0 2MoTqsiNqQHPNgTvQHLYGKtKCIbVu9k5mGVEneM7dp/L5Td9xHYsbbj/wLk/433Omz /SqMhP9HY0UyQ== Original-Received: from alfajor (unknown [216.154.41.47]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id DE0CD12004D; Sun, 14 Feb 2021 21:49:04 -0500 (EST) In-Reply-To: <87h7meenj0.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 14 Feb 2021 15:23:31 +0100") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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:264825 Archived-At: > Since approx. 97% of commands will eventually have this markup, that > means that 97% of commands will start with > > (declare (modes foo-mode)) > (interactive "p") > > and that seems like too much line noise. FWIW, I think that having 97% of commands start with (interactive "p" foo-mode) is also undesirable. I'd much rather have those 97% start with (interactive) and the remaining 3% can use the more verbose: (declare (completion t)) (interactive) That should also make it easier to share the exact same objects to represent the predicates for those 97% instead of having each one be a silly identical clones of the other. IOW it'd be more efficient for the coder, for the source code, and at run-time. Stefan