From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Is Elisp really that slow? Date: Wed, 15 May 2019 11:18:58 -0400 Message-ID: References: <20190514235412.kncazq45szlum2gr@Ergus> <46f308ff-5a70-8ccc-310b-48167088ff5a@yandex.ru> <87woirsvdb.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="84557"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 15 17:23:58 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQvl7-000LsU-9D for geh-help-gnu-emacs@m.gmane.org; Wed, 15 May 2019 17:23:57 +0200 Original-Received: from localhost ([127.0.0.1]:38583 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQvl3-0002MH-5V for geh-help-gnu-emacs@m.gmane.org; Wed, 15 May 2019 11:23:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQvkd-0002KL-2T for help-gnu-emacs@gnu.org; Wed, 15 May 2019 11:23:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQvgR-0001Zb-O9 for help-gnu-emacs@gnu.org; Wed, 15 May 2019 11:19:08 -0400 Original-Received: from [195.159.176.226] (port=55904 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hQvgR-0001Yk-Fc for help-gnu-emacs@gnu.org; Wed, 15 May 2019 11:19:07 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hQvgP-000GJC-QK for help-gnu-emacs@gnu.org; Wed, 15 May 2019 17:19:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:jXRAPgBQ7g0qTOcIe7zpg+b24xU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:120387 Archived-At: > As C-Mode has no associated terminal nor it composes messages, the > request would amount to "unbind C-c C-c", That's right. In my book, prog-mode should bind C-c C-c to `compile` and C-mode has no need to have its own binding for it (because I can't think of a better way to "compile/run" C code than via `compile`). And it definitely doesn't need a specific binding for comment-region since M-; already covers this need. > something no current or future C/C++ user would benefit from. They would because the bindings would be more uniform across modes. > Pretending that every mode conforms to the same rules is > counterproductive, because there are vast differences among them. Pretending that every detail of every major mode is unique is similarly counter-productive. > We shall strive for pragmatism, not for bureaucracy. This is not about bureaucracy. It's actually about streamlining the overall system (by removing an unneeded chunk of code from CC-mode in this case). > comment-dwin != comment-region I don't think that justifies having both bind to such short key-sequences, nor does it justify binding comment-region to a key-sequence usually bound to something completely unrelated. > In principle, fixing those would be beneficial. OTOH, forcing existing > users to adapt just for the cause of coherence with modes they don't use > is not desirable either. Short term pain for longer term gain. There's no question that it's a tradeoff. This particular C-c C-c binding in CC-mode has been on the "short term gain for long term pain" for more than 10 years. Stefan