From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joseph Turner via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#63480: 30.0.50; [BUG] unimplemented logic regarding read-symbol-shorthands Date: Tue, 28 Nov 2023 23:45:18 -0800 Message-ID: <87sf4pf1f5.fsf@breatheoutbreathe.in> References: Reply-To: Joseph Turner Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34050"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63480@debbugs.gnu.org, ruijie@netyu.xyz, Jonas Bernoulli , joaotavora@gmail.com, Adam Porter To: stefankangas@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 29 08:46:20 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 1r8FGw-0008az-Ir for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Nov 2023 08:46:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r8FGf-0000pR-V2; Wed, 29 Nov 2023 02:45:57 -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 1r8FGd-0000pA-8L for bug-gnu-emacs@gnu.org; Wed, 29 Nov 2023 02:45:55 -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 1r8FGd-0007XO-0S for bug-gnu-emacs@gnu.org; Wed, 29 Nov 2023 02:45:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r8FGk-0005rt-18 for bug-gnu-emacs@gnu.org; Wed, 29 Nov 2023 02:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Joseph Turner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Nov 2023 07:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63480 X-GNU-PR-Package: emacs Original-Received: via spool by 63480-submit@debbugs.gnu.org id=B63480.170124393822527 (code B ref 63480); Wed, 29 Nov 2023 07:46:01 +0000 Original-Received: (at 63480) by debbugs.gnu.org; 29 Nov 2023 07:45:38 +0000 Original-Received: from localhost ([127.0.0.1]:48690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r8FGL-0005rG-IL for submit@debbugs.gnu.org; Wed, 29 Nov 2023 02:45:37 -0500 Original-Received: from out-173.mta1.migadu.com ([2001:41d0:203:375::ad]:13400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r8FGG-0005r2-8z for 63480@debbugs.gnu.org; Wed, 29 Nov 2023 02:45:36 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=breatheoutbreathe.in; s=key1; t=1701243923; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to; bh=8vj67yEz+40b9uM/4PyFxHaLB8Z+kRmi2D84WpZEcng=; b=iGLdSDikVFI8BR/SiSoNS3SVbg9IL3xwUNeRufTIcso4LRHbgerI4nc9tZLLmvuCo3Hf0q hmpLOVD6ttg+n7JOJmys7NmGeOK1r7kP7E8kFveTPuJLBxFsVrjTf7mGLofvw5s29QzMQz vYh1Oq/pSt9PNEtIThq6DWkSwsC1jk0= In-Reply-To: X-Migadu-Flow: FLOW_OUT 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:275200 Archived-At: From: Stefan Kangas > Jo=C3=A3o T=C3=A1vora writes: > > This is a duplicate of > > > > https://github.com/joaotavora/breadcrumb/issues/3 > > > > which has already been solved. I updated the autoloads to use > > longhand versions already a couple of months ago. > OK, thanks. > > I'll leave it to you if this issue can be closed or not. > I guess the issue here is what you describe below? If so, I guess it > should remain open until it is fixed. > > Anyway, the problem with shorthands and autoloads remains. > > The GitHub user 'dickmao' proposed a patch there, which I > > didn't test, but I attach here. > > > > My idea for an alternative patch would be for the "autoload > > extractor" (which I'm not familiar with) to see the shorthand > > autoload but place it in longhand form in the generated > > autoloads file. I don't have a patch for that idea, > > unfortunately. This bug affects not only autoloaded function definitions, but any autoloaded form. For example, the following will not generate the correct autoloads: ;;;###autoload (with-eval-after-load 'optional-dependency (cl-pushnew 'sns-var optional-dependency-var)) Instead, you must expand the shorthand symbol into its full form: ;;;###autoload (with-eval-after-load 'optional-dependency (cl-pushnew 'some-nice-string-utils-var optional-dependency-var)) For a real-world example, see https://git.sr.ht/~ushin/hyperdrive.el/commit/48afc51ac22713f2c54f75a7ea3b5= c6b0e12b53d Thank you! Joseph