From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#41890: 28.0.50; [PATCH]: Add bindings for project.el Date: Thu, 18 Jun 2020 16:38:46 +0300 Message-ID: <83sgesze6x.fsf@gnu.org> References: <87blljbarq.fsf@thornhill.no> <83pn9z13xq.fsf@gnu.org> <87lfknklj8.fsf@thornhill.no> <83h7vb0w3u.fsf@gnu.org> <83968f43-1298-6c5a-b4fa-ba68b7a8042e@yandex.ru> <838sgl22f2.fsf@gnu.org> <87489b66-81f2-311d-cd81-9d344731577f@yandex.ru> <835zbp1wlf.fsf@gnu.org> <783b3a39-62ca-46b5-83a4-1989e8ec2062@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="51001"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41890@debbugs.gnu.org, theo@thornhill.no To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 18 15:46:30 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 1jlusA-000DBC-Hr for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Jun 2020 15:46:30 +0200 Original-Received: from localhost ([::1]:41562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlus9-0007cz-BE for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Jun 2020 09:46:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46998) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlulu-0005IQ-CI for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2020 09:40:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41683) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jlulu-0000e3-0v for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2020 09:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jlult-0001kU-Qw for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2020 09:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Jun 2020 13:40: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.15924875556659 (code B ref 41890); Thu, 18 Jun 2020 13:40:01 +0000 Original-Received: (at 41890) by debbugs.gnu.org; 18 Jun 2020 13:39:15 +0000 Original-Received: from localhost ([127.0.0.1]:53229 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jlul8-0001jK-VL for submit@debbugs.gnu.org; Thu, 18 Jun 2020 09:39:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jlul5-0001j5-90 for 41890@debbugs.gnu.org; Thu, 18 Jun 2020 09:39:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40412) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlukz-0000Z5-93; Thu, 18 Jun 2020 09:39:05 -0400 Original-Received: from [176.228.60.248] (port=2951 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jlukt-0005tJ-LX; Thu, 18 Jun 2020 09:39:03 -0400 In-Reply-To: <783b3a39-62ca-46b5-83a4-1989e8ec2062@yandex.ru> (message from Dmitry Gutov on Thu, 18 Jun 2020 01:23:25 +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:182109 Archived-At: > Cc: 41890@debbugs.gnu.org, theo@thornhill.no > From: Dmitry Gutov > Date: Thu, 18 Jun 2020 01:23:25 +0300 > > > I don't see how this is related to the issue at hand. All I'm saying > > is that a package, including its key bindings, shouldn't be loaded > > until some of its feature is invoked. > > But if we autoload the bindings definition forms, wouldn't that have > essentially the same effect? How is this different from bookmark.el? And if we don't want these key bindings to be available always, we could have a separate autoloads file for project.el. Some packages do that already. > > We could make the keybindings autoloaded without having them defined > > them when the package loads, couldn't we? By having the define-key on > > the same line as the autoload cookie, like bookmark.el does. > > That would generally be considered problematic because the keymap would > take effect right after the user updates to the newest version of > project.el. Because package.el also compiles and evaluates autoloads. Why is that a problem? A user who updates project.el is most probably going to use it, right? And if we do care about this, we could use a separate autoloads file.