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 20:24:10 +0300 Message-ID: <83pn9wz3r9.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> <83sgesze6x.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="6284"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41890@debbugs.gnu.org, theo@thornhill.no, monnier@IRO.UMontreal.CA To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 18 19:25: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 1jlyHm-0001Tm-90 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Jun 2020 19:25:10 +0200 Original-Received: from localhost ([::1]:36002 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlyHl-00036C-Aj for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Jun 2020 13:25:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlyHe-000363-LA for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2020 13:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42728) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jlyHe-0004dZ-BB for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2020 13:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jlyHe-0003Zl-7y for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2020 13:25:02 -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 17:25:02 +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.159250107413705 (code B ref 41890); Thu, 18 Jun 2020 17:25:02 +0000 Original-Received: (at 41890) by debbugs.gnu.org; 18 Jun 2020 17:24:34 +0000 Original-Received: from localhost ([127.0.0.1]:54274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jlyHC-0003Yz-0p for submit@debbugs.gnu.org; Thu, 18 Jun 2020 13:24:34 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jlyHA-0003Yl-84 for 41890@debbugs.gnu.org; Thu, 18 Jun 2020 13:24:33 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44376) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlyH4-0004TN-8U; Thu, 18 Jun 2020 13:24:26 -0400 Original-Received: from [176.228.60.248] (port=4919 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jlyH2-0006Cl-Gy; Thu, 18 Jun 2020 13:24:25 -0400 In-Reply-To: (message from Dmitry Gutov on Thu, 18 Jun 2020 18:47: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:182126 Archived-At: > Cc: 41890@debbugs.gnu.org, theo@thornhill.no, > Stefan Monnier > From: Dmitry Gutov > Date: Thu, 18 Jun 2020 18:47:37 +0300 > > > How is this different from bookmark.el? > > I don't really know much about bookmark.el, or the way it was written > and why. > > > 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 might not want them when the package is simply installed through ELPA. So is Tramp. Maybe Michael could share his experience with the separate autoloads file. > But we'll probably always want them on by default in Emacs 28 and newer. I suggest to think about crossing that bridge when we get to it. > >> 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? > > Probably. But it's also a dependency of certain packages like eglot or > xref, so it's not a given that the user chose to update it intentionally. I don't think it matters whether project.el is update on its own right or as a dependency. It will be used regardless, so having its autoloads loaded doesn't sound like a serious problem. > > And if we do care about this, we could use a separate autoloads file. > > Which the users would have to (require '...)? Do they do that with the likes of tramp-loaddefs.el?