GNU bug report logs - #79283
30.1; [ELPA] compile error when installing iso-date-1.0.3

Previous Next

Package: emacs;

Reported by: Lin Jian <me <at> linj.tech>

Date: Wed, 20 Aug 2025 22:51:02 UTC

Severity: normal

Found in version 30.1

To reply to this bug, email your comments to 79283 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#79283; Package emacs. (Wed, 20 Aug 2025 22:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lin Jian <me <at> linj.tech>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 20 Aug 2025 22:51:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lin Jian <me <at> linj.tech>
To: bug-gnu-emacs <at> gnu.org
Cc: philipk <at> posteo.net
Subject: 30.1; [ELPA] compile error when installing iso-date-1.0.3
Date: Thu, 21 Aug 2025 06:50:11 +0800
Reproducing steps:
1. cd $(mktemp -d)
2. HOME=$PWD emacs -Q
3. eval this: (progn (require 'package) (package-install 'iso-date))
4. see this error in the *Compile-Log* buffer:

Compiling file /tmp/tmp.ceXmJA3A9J/.emacs.d/elpa/iso-date-1.0.3/embark-iso-date.el at Thu Aug 21 06:43:36 2025
Entering directory ‘/tmp/tmp.ceXmJA3A9J/.emacs.d/elpa/iso-date-1.0.3/’
embark-iso-date.el:24:11: Error: Cannot open load file: No such file or directory, embark


Maybe iso-date.el and embark-iso-date.el should be two different ELPA packages.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79283; Package emacs. (Thu, 21 Aug 2025 08:03:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Philip Kaludercic <philipk <at> posteo.net>
To: Lin Jian <me <at> linj.tech>
Cc: bug-gnu-emacs <at> gnu.org, Lucas Quintana <lmq10 <at> protonmail.com>
Subject: Re: 30.1; [ELPA] compile error when installing iso-date-1.0.3
Date: Thu, 21 Aug 2025 08:01:46 +0000
Lin Jian <me <at> linj.tech> writes:

> Reproducing steps:
> 1. cd $(mktemp -d)
> 2. HOME=$PWD emacs -Q
> 3. eval this: (progn (require 'package) (package-install 'iso-date))
> 4. see this error in the *Compile-Log* buffer:
>
> Compiling file /tmp/tmp.ceXmJA3A9J/.emacs.d/elpa/iso-date-1.0.3/embark-iso-date.el at Thu Aug 21 06:43:36 2025
> Entering directory ‘/tmp/tmp.ceXmJA3A9J/.emacs.d/elpa/iso-date-1.0.3/’
> embark-iso-date.el:24:11: Error: Cannot open load file: No such file or directory, embark
>
>
> Maybe iso-date.el and embark-iso-date.el should be two different ELPA packages.

While it doesn't really affect users without embark, it is true that
this can be confusing.  I have added the maintainer to the CC's to see
what they think of the issue.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79283; Package emacs. (Thu, 21 Aug 2025 15:16:01 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lucas Quintana <lmq10 <at> protonmail.com>
To: Philip Kaludercic <philipk <at> posteo.net>
Cc: bug-gnu-emacs <at> gnu.org, Lin Jian <me <at> linj.tech>
Subject: Re: 30.1; [ELPA] compile error when installing iso-date-1.0.3
Date: Thu, 21 Aug 2025 13:39:27 +0000
Philip Kaludercic <philipk <at> posteo.net> writes:

> I have added the maintainer to the CC's to see what they think of
> the issue.

Thank you.  I just pushed a fix.  If it builds cleanly, I'll bump the
version number later.

Best regards.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79283; Package emacs. (Thu, 21 Aug 2025 20:00:03 GMT) Full text and rfc822 format available.

Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Philip Kaludercic <philipk <at> posteo.net>
To: Lucas Quintana via "Bug reports for GNU Emacs, the Swiss army knife of
 text editors" <bug-gnu-emacs <at> gnu.org>
Cc: 79283 <at> debbugs.gnu.org, Lucas Quintana <lmq10 <at> protonmail.com>, me <at> linj.tech
Subject: Re: bug#79283: 30.1; [ELPA] compile error when installing
 iso-date-1.0.3
Date: Thu, 21 Aug 2025 19:59:24 +0000
Lucas Quintana via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs <at> gnu.org> writes:

> Philip Kaludercic <philipk <at> posteo.net> writes:
>
>> I have added the maintainer to the CC's to see what they think of
>> the issue.
>
> Thank you.  I just pushed a fix.  If it builds cleanly, I'll bump the
> version number later.

For the convenience of the list, this is the change:

--8<---------------cut here---------------start------------->8---
From 83e9386ecab1bbb48d37e68f6b74dce8cd9302d0 Mon Sep 17 00:00:00 2001
From: Lucas Quintana <lmq10 <at> protonmail.com>
Date: Thu, 21 Aug 2025 10:28:08 -0300
Subject: [PATCH] Fix package installation when embark is not available

---
 embark-iso-date.el | 38 +++++++++++++++++++-------------------
 1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/embark-iso-date.el b/embark-iso-date.el
index 64ec910..d565ba6 100644
--- a/embark-iso-date.el
+++ b/embark-iso-date.el
@@ -21,27 +21,27 @@
 
 ;;; Code:
 
-(require 'embark)
+(require 'embark nil t)
 (require 'iso-date)
 
-(embark-define-thingatpt-target iso-date)
-
-(defvar-keymap embark-iso-date-map
-  :parent embark-general-map
-  "RET" #'iso-date-show-calendar
-  "a" #'iso-date-show-org-agenda
-  "c" #'iso-date-show-calendar
-  "d" #'iso-date-show-diary
-  "f" #'iso-date-echo-difference
-  "p" #'iso-date-pretty-print
-  "x" #'iso-date-send-to-calc
-  "<up>" #'iso-date-at-point-day-up
-  "<down>" #'iso-date-at-point-day-down)
-
-(add-to-list 'embark-repeat-actions 'iso-date-at-point-day-up)
-(add-to-list 'embark-repeat-actions 'iso-date-at-point-day-down)
-(add-to-list 'embark-target-finders 'embark-target-iso-date-at-point)
-(add-to-list 'embark-keymap-alist '(iso-date embark-iso-date-map))
+(with-no-warnings
+  (with-eval-after-load 'embark
+    (embark-define-thingatpt-target iso-date)
+    (defvar-keymap embark-iso-date-map
+      :parent embark-general-map
+      "RET" #'iso-date-show-calendar
+      "a" #'iso-date-show-org-agenda
+      "c" #'iso-date-show-calendar
+      "d" #'iso-date-show-diary
+      "f" #'iso-date-echo-difference
+      "p" #'iso-date-pretty-print
+      "x" #'iso-date-send-to-calc
+      "<up>" #'iso-date-at-point-day-up
+      "<down>" #'iso-date-at-point-day-down)
+    (add-to-list 'embark-repeat-actions 'iso-date-at-point-day-up)
+    (add-to-list 'embark-repeat-actions 'iso-date-at-point-day-down)
+    (add-to-list 'embark-target-finders 'embark-target-iso-date-at-point)
+    (add-to-list 'embark-keymap-alist '(iso-date embark-iso-date-map))))
 
 (provide 'embark-iso-date)
 ;;; embark-iso-date.el ends here
--8<---------------cut here---------------end--------------->8---

I think that it is regrettable to revert to this "hack", but it seems
that there is no way around it if we want to distribute both in the same
package (which I think is preferable overall).

<
>
> Best regards.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79283; Package emacs. (Thu, 21 Aug 2025 20:00:03 GMT) Full text and rfc822 format available.

This bug report was last modified 16 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.