From: Sean Whitton <spwhitton@spwhitton.name>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: control@debbugs.gnu.org, 56292@debbugs.gnu.org
Subject: bug#56292: 29.0.50; Compilation failure since recent loaddefs speed up
Date: Thu, 30 Jun 2022 11:16:32 -0700 [thread overview]
Message-ID: <87leteauf3.fsf@athena.silentflame.com> (raw)
In-Reply-To: <87iloieclk.fsf@gnus.org>
retitle 56292 29.0.50; Problem with define-obsolete-function-alias in loaddefs.el
thanks
On Thu 30 Jun 2022 at 11:15am +02, Lars Ingebrigtsen wrote:
> Normal errors should give you a backtrace by default in --batch, but I
> guess whatever is generating the message here is catching the error.
> Try perhaps (setq debug-on-signal t) and see whether that gives a
> backtrace?
Thanks, I eventually managed to get some useful output.
After 1d4e903417, before time-date is loaded, (get 'subtract-time
'byte-obsolete-info) yields (time-subtract nil 0). Previously, whether
or not time-date was loaded, it yielded (time-substract nil "26.1").
The wrong-type-argument is when macroexp--obsolete-warning tries to pass
0 as an argument to concat.
If you replace
(define-obsolete-function-alias 'subtract-time 'time-subtract "\
26.1")
with
(define-obsolete-function-alias 'subtract-time 'time-subtract "26.1")
in loaddefs.el then the problem goes away. I hacked loadup.el and
determined that when loadup.el is loading loaddefs.el,
(macroexpand-1
'(define-obsolete-function-alias 'subtract-time 'time-subtract "\
26.1"))
yields
(progn (defalias 'subtract-time 'time-subtract nil)
(make-obsolete 'subtract-time 'time-subtract 0))
which is not the correct expansion according to the definition of
define-obsolete-function-alias ..
--
Sean Whitton
next prev parent reply other threads:[~2022-06-30 18:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-29 5:20 bug#56292: 29.0.50; Compilation failure since recent loaddefs speed up Sean Whitton
2022-06-29 10:23 ` Lars Ingebrigtsen
2022-06-29 15:43 ` Sean Whitton
2022-06-30 9:15 ` Lars Ingebrigtsen
2022-06-30 18:16 ` Sean Whitton [this message]
2022-06-30 18:21 ` Lars Ingebrigtsen
2022-08-02 11:08 ` bug#56292: 29.0.50; Problem with define-obsolete-function-alias in loaddefs.el Lars Ingebrigtsen
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=87leteauf3.fsf@athena.silentflame.com \
--to=spwhitton@spwhitton.name \
--cc=56292@debbugs.gnu.org \
--cc=control@debbugs.gnu.org \
--cc=larsi@gnus.org \
/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).