From: Joseph Turner via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: stefankangas@gmail.com
Cc: 63480@debbugs.gnu.org, ruijie@netyu.xyz,
Jonas Bernoulli <jonas@bernoul.li>,
joaotavora@gmail.com, Adam Porter <adam@alphapapa.net>
Subject: bug#63480: 30.0.50; [BUG] unimplemented logic regarding read-symbol-shorthands
Date: Tue, 28 Nov 2023 23:45:18 -0800 [thread overview]
Message-ID: <87sf4pf1f5.fsf@breatheoutbreathe.in> (raw)
In-Reply-To: <CADwFkmmKv5s1jQ5Xn1ZT8-iwegpSMHC3r_mGEfOSFbCq2P4jiQ@mail.gmail.com>
From: Stefan Kangas <stefankangas@gmail.com>
> João Távora <joaotavora@gmail.com> 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/48afc51ac22713f2c54f75a7ea3b5c6b0e12b53d
Thank you!
Joseph
next prev parent reply other threads:[~2023-11-29 7:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-13 5:27 bug#63480: 30.0.50; [BUG] unimplemented logic regarding read-symbol-shorthands Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-13 5:37 ` Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-06 11:03 ` Stefan Kangas
2023-09-06 14:02 ` João Távora
2023-09-06 20:17 ` Stefan Kangas
2023-11-29 7:45 ` Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-11-29 8:12 ` João Távora
2024-04-18 20:01 ` Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-04-18 20:24 ` João Távora
2024-04-18 20:52 ` Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-11-23 21:38 ` Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sf4pf1f5.fsf@breatheoutbreathe.in \
--to=bug-gnu-emacs@gnu.org \
--cc=63480@debbugs.gnu.org \
--cc=adam@alphapapa.net \
--cc=joaotavora@gmail.com \
--cc=jonas@bernoul.li \
--cc=joseph@breatheoutbreathe.in \
--cc=ruijie@netyu.xyz \
--cc=stefankangas@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).