From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Leaving out non-applicable commands on Mx Date: Sat, 09 Jan 2016 12:32:53 -0500 Message-ID: References: <87mvszdp6b.fsf@gnus.org> <8737u9kv6f.fsf@russet.org.uk> <87fuy7hdc6.fsf_-_@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1452360804 27814 80.91.229.3 (9 Jan 2016 17:33:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Jan 2016 17:33:24 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 09 18:33:08 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aHxNz-0004P3-OH for ged-emacs-devel@m.gmane.org; Sat, 09 Jan 2016 18:33:07 +0100 Original-Received: from localhost ([::1]:41694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHxNz-0001DA-2h for ged-emacs-devel@m.gmane.org; Sat, 09 Jan 2016 12:33:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHxNw-0001Ct-4U for emacs-devel@gnu.org; Sat, 09 Jan 2016 12:33:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHxNt-0006OV-0E for emacs-devel@gnu.org; Sat, 09 Jan 2016 12:33:04 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:45277) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHxNs-0006OH-PM for emacs-devel@gnu.org; Sat, 09 Jan 2016 12:33:00 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aHxNq-0004I7-Oy for emacs-devel@gnu.org; Sat, 09 Jan 2016 18:32:58 +0100 Original-Received: from 184.175.3.20 ([184.175.3.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 09 Jan 2016 18:32:58 +0100 Original-Received: from monnier by 184.175.3.20 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 09 Jan 2016 18:32:58 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 184.175.3.20 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:N1MBqOljpDL7J0tmTwWuza0rvkY= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:197911 Archived-At: > (defun foo-something (bar) > "docstring" > (command 'foo "p") > ...) I think having to tweak every mode-specific command is going to be too heavy. We should be able to cut that down drastically by having a way to say "commands with prefix foo- all all mode-specific except for those that are marked as being global". So if we have N local command and M global commands, we replace N modifications with M+1 modifications. If M>>N that's a big win. Stefan