From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#67325: shorthands: Incorrect autoloaded register-definition-prefixes Date: Sun, 26 Nov 2023 20:07:15 +0200 Message-ID: <83plzw9yng.fsf@gnu.org> References: <87zfz8i4ac.fsf@ushin.org> <83a5r3fucu.fsf@gnu.org> <871qcezcmd.fsf@ushin.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34949"; mail-complaints-to="usenet@ciao.gmane.io" Cc: joseph@ushin.org, 67325@debbugs.gnu.org, jonas@bernoul.li, public@protesilaos.com To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 26 19:08:16 2023 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 1r7JYF-0008qy-OV for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Nov 2023 19:08:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7JXy-0005Dh-Ci; Sun, 26 Nov 2023 13:07:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r7JXx-0005D9-2C for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 13:07:57 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r7JXw-0007V9-QJ for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 13:07:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r7JY2-0006xR-IZ for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 13:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Nov 2023 18:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67325 X-GNU-PR-Package: emacs Original-Received: via spool by 67325-submit@debbugs.gnu.org id=B67325.170102206726722 (code B ref 67325); Sun, 26 Nov 2023 18:08:02 +0000 Original-Received: (at 67325) by debbugs.gnu.org; 26 Nov 2023 18:07:47 +0000 Original-Received: from localhost ([127.0.0.1]:42675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7JXn-0006wv-93 for submit@debbugs.gnu.org; Sun, 26 Nov 2023 13:07:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7JXl-0006wj-GC for 67325@debbugs.gnu.org; Sun, 26 Nov 2023 13:07:46 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r7JXY-0007TR-L0; Sun, 26 Nov 2023 13:07:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=HgnuPLQFFLSCV7TYTdL2UVLChjP1WHHUKVM8Xuc5eXo=; b=PtW/4esSClYeyrLT5d19 3lMLSRbi4GwqPDdKLIlL2Rlj2D/O1qXScEg0FJ8+stTvZESEdC69JTdvGGiYHf9Zad8LpTdXtzcIr yeHphWbYoUaurKT5fE0JpI5oIHCVDQas3j4DqcQw41E91xlxy+2P9RVEUi7w1FDRMzoMbz+044dVa Cf6Mm0da+DE3zD7idRbpPbJQGb77Ec0o/CXhIiGeDKYvb7wL5OrTNqCO/b450r6luV4p3AeZ05ElR wzZ2MxW1tS91NZGzdp/Lf2rEdgwqarH73v7H2xztXllnjwtBccOr1nT+5SkhwqZi0pkm4fTuU4vvZ 9LvqYTD88hj3xw==; In-Reply-To: (message from =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= on Sun, 26 Nov 2023 14:14:28 +0000) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:275073 Archived-At: > From: João Távora > Date: Sun, 26 Nov 2023 14:14:28 +0000 > Cc: Eli Zaretskii , 67325@debbugs.gnu.org, public@protesilaos.com, > Jonas Bernoulli > > On Sat, Nov 25, 2023 at 12:44 PM João Távora wrote: > > Earlier I said that 'autoload-compute-prefixes' was completely > undocumented. I was wrong, it is documented in loading.texi > and perfectly defined in loaddefs-gen.el. No idea why > I didn't notice. > > It even has a sane local safety specification, but that safety > specification is not pre-loaded, so opening files > with 'autoload-compute-prefixes' local variables has > the unfortunate effect of prompting the user sometimes. > > I think this should be fixed maybe somewhere in the > prompting logic. Even describing the variable will cause > loaddefs-gen.el to be loaded the file and thus the safety > specification. > > Another option is to store just safety specification > for this variable somewhere else, so that it is preloaded. > > Eli, any comments about the above ideas? I agree that we should not prompt when the safety predicate is satisfied, but I don't have any idea how to do that. Maybe Stefan does? E.g., can the (put 'autoload-compute-prefixes 'safe-local-variable form be put in 'autoload'?