unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: [elpa] externals/denote 5ab937f1da: Require 'subr-x' at compile time
       [not found] ` <20220724155728.E9AA2C00602@vcs2.savannah.gnu.org>
@ 2022-07-24 16:18   ` Philip Kaludercic
  2022-07-24 16:35     ` Protesilaos Stavrou
  0 siblings, 1 reply; 2+ messages in thread
From: Philip Kaludercic @ 2022-07-24 16:18 UTC (permalink / raw)
  To: emacs-devel; +Cc: Protesilaos Stavrou

ELPA Syncer <elpasync@gnu.org> writes:

> branch: externals/denote
> commit 5ab937f1da1437f777fa7beb368521f628245810
> Author: Protesilaos Stavrou <info@protesilaos.com>
> Commit: Protesilaos Stavrou <info@protesilaos.com>
>
>     Require 'subr-x' at compile time
>     
>     This is to be sure that Emacs 28 evaluates 'when-let*'.  Otherwise we
>     will end up with errors such as the one reported by hpgisler in issue 62
>     on the GitHub mirror: <https://github.com/protesilaos/denote/issues/62>.
> ---
>  denote.el | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/denote.el b/denote.el
> index 2152c695a5..00e264b6a8 100644
> --- a/denote.el
> +++ b/denote.el
> @@ -96,7 +96,9 @@
>  ;;; Code:
>  
>  (require 'seq)
> -(eval-when-compile (require 'cl-lib))
> +(eval-when-compile
> +  (require 'cl-lib)
> +  (require 'subr-x))

Indirectly related: Why is cl-lib evaluated only at compile time?  From
what I see the only functions you use are cl-find-if and cl-some,
neither of which have any effect at compile time, both of which you
declare.  As you already require seq, I'd either use (seq-find and
seq-some should do the job) that or require cl-lib "regularly".

>  (defgroup denote ()
>    "Simple notes with an efficient file-naming scheme."



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [elpa] externals/denote 5ab937f1da: Require 'subr-x' at compile time
  2022-07-24 16:18   ` [elpa] externals/denote 5ab937f1da: Require 'subr-x' at compile time Philip Kaludercic
@ 2022-07-24 16:35     ` Protesilaos Stavrou
  0 siblings, 0 replies; 2+ messages in thread
From: Protesilaos Stavrou @ 2022-07-24 16:35 UTC (permalink / raw)
  To: Philip Kaludercic, emacs-devel

> From: Philip Kaludercic <philipk@posteo.net>
> Date: Sun, 24 Jul 2022 16:18:29 +0000

> [... 30 lines elided]

> Indirectly related: Why is cl-lib evaluated only at compile time?  From
> what I see the only functions you use are cl-find-if and cl-some,
> neither of which have any effect at compile time, both of which you
> declare.  As you already require seq, I'd either use (seq-find and
> seq-some should do the job) that or require cl-lib "regularly".

Thank you, Philip!  Just removed the cl-lib parts.

-- 
Protesilaos Stavrou
https://protesilaos.com



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-24 16:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <165867824864.21580.5195743895194886698@vcs2.savannah.gnu.org>
     [not found] ` <20220724155728.E9AA2C00602@vcs2.savannah.gnu.org>
2022-07-24 16:18   ` [elpa] externals/denote 5ab937f1da: Require 'subr-x' at compile time Philip Kaludercic
2022-07-24 16:35     ` Protesilaos Stavrou

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).