unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: [elpa] externals/zuul b0cc517949: Make it easier to customize sort and face
       [not found] ` <20220929115823.1FE8CC12D98@vcs2.savannah.gnu.org>
@ 2022-10-07 14:47   ` Philip Kaludercic
  0 siblings, 0 replies; only message in thread
From: Philip Kaludercic @ 2022-10-07 14:47 UTC (permalink / raw)
  To: emacs-devel; +Cc: Niklas Eklund

ELPA Syncer <elpasync@gnu.org> writes:

>
> branch: externals/zuul
> commit b0cc51794991abf749b4fc77aace17f0fe98411d
> Author: Niklas Eklund <niklas.eklund@posteo.net>
> Commit: Niklas Eklund <niklas.eklund@posteo.net>
>
>     Make it easier to customize sort and face
> ---
>  zuul.el | 57 ++++++++++++++++++++++++++++++++-------------------------
>  1 file changed, 32 insertions(+), 25 deletions(-)
>
> diff --git a/zuul.el b/zuul.el
> index 7503b910a9..439fa4ff45 100644
> --- a/zuul.el
> +++ b/zuul.el
> @@ -164,6 +164,31 @@ Each entry in the list is a property list with the following properties:
>    :group 'zuul
>    :type 'boolean)
>  
> +(defcustom zuul-sort-priority-functions
> +  `((lambda (it)
> +      (if-let ((start-time (zuul--start-time it)))
> +          (float-time (date-to-time start-time))
> +        0.0))
> +    (lambda (it)
> +      (pcase (zuul--status it)
> +        ("SUCCESS" 0)
> +        ("QUEUED" 1)
> +        ("FAILURE" 3)
> +        (_ 2)))
> +    (lambda (it)
> +      (pcase (let-alist (zuul-data it) .pipeline)
> +        ("check" 1)
> +        ("gate" 2)
> +        (_ 3))))

The lambda expressions in this list should probably not be quoted.  It
would be preferable to either write it out as (list (lambda (it) ...))
or give the functions names.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-07 14:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <166445270287.5958.2875426727133852848@vcs2.savannah.gnu.org>
     [not found] ` <20220929115823.1FE8CC12D98@vcs2.savannah.gnu.org>
2022-10-07 14:47   ` [elpa] externals/zuul b0cc517949: Make it easier to customize sort and face Philip Kaludercic

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