From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#41890: 28.0.50; [PATCH]: Add bindings for project.el Date: Thu, 18 Jun 2020 12:25:22 -0400 Message-ID: References: <87blljbarq.fsf@thornhill.no> <83pn9z13xq.fsf@gnu.org> <87lfknklj8.fsf@thornhill.no> <83h7vb0w3u.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="3561"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 41890@debbugs.gnu.org, Theodor Thornhill To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 18 18:26:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1jlxMg-0000nO-3F for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Jun 2020 18:26:10 +0200 Original-Received: from localhost ([::1]:46800 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlxMe-0002oa-HW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Jun 2020 12:26:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlxMY-0002o5-AB for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2020 12:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42656) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jlxMY-0001PN-1F for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2020 12:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jlxMX-00020S-UG for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2020 12:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Jun 2020 16:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41890-submit@debbugs.gnu.org id=B41890.15924975357669 (code B ref 41890); Thu, 18 Jun 2020 16:26:01 +0000 Original-Received: (at 41890) by debbugs.gnu.org; 18 Jun 2020 16:25:35 +0000 Original-Received: from localhost ([127.0.0.1]:54201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jlxM6-0001zd-TR for submit@debbugs.gnu.org; Thu, 18 Jun 2020 12:25:35 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:25094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jlxM3-0001zP-9K for 41890@debbugs.gnu.org; Thu, 18 Jun 2020 12:25:34 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id B0B321012E2; Thu, 18 Jun 2020 12:25:25 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id CC3881007CA; Thu, 18 Jun 2020 12:25:23 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1592497523; bh=l6V/PvcUCVMytPWq2xOmMDb9DonVM33uX/XdOURRZQA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=fKEDadehHve/mmmAoMT8P5ZRa9YyAQPu/NMmT7n41ooE9X5PvJlbkFKCHier44cJX RyAItp8MUsCJXk6+TJPAwwiVKFCBJNV7dqpTnMfXeN+qUKzjYvd5ukxnHDAk1Se7a+ cmN2kySQKXLSM4OWKPQNw0vvmnRpi6ybAk5TN5+ovZGCbLHkphHO7jo4+JT4aKyWq0 NAoMtsR2qJfRifklnHVDO4jOnAVMy/jAAXAcJJq/vJFHjYAt4upbJ96cpUJOIRCnqE oH8aGYY8VC3TczSVLa0dqUxXAOaQJoUKZFIliSp4qsLSXg0mBpkSu+mJ5YVwbWhMJe 0VUljNLS4NJhA== Original-Received: from alfajor (unknown [216.154.55.41]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 47617120046; Thu, 18 Jun 2020 12:25:23 -0400 (EDT) In-Reply-To: <83h7vb0w3u.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 16 Jun 2020 20:16:37 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182120 Archived-At: > I certainly would. It is very unusual for an optional package to have > its bindings in files that are preloaded into every Emacs session. [ I'm not sure if your objection is on where the bindings are located in the source code (which could be adjusted by moving them to project.el with an appropriate autoload cookie), or whether the bindings are placed in the global map. I'll assume below that the problem is with the actual bindings rather than their source location. ] It's the case for rect.el bindings, for gud-key-prefix bindings, bookmark bindings, a few others, tho. [ I'd put register.el bindings in that same boat because I consider this package just as optional (I never use it), tho it's admittedly preloaded ] The question is whether project.el is special enough to warrant changing the default global map. If not, then the only other sane way is to link them to a minor mode and only activate the bindings when that minor mode is enabled. My own take on what Emacs is mostly used for makes me feel that the notion of project is probably important enough to justify its place in the default keymap. But I must admit I haven't looked at the actual bindings that are discussed, so feel free to ignore me. Stefan