Re: [PATCH] emacs: When completing tags, offer each tag once

Subject: Re: [PATCH] emacs: When completing tags, offer each tag once

Date: Mon, 01 Feb 2021 11:49:36 -0400

To: David Edmondson, notmuch@notmuchmail.org

Cc: David Edmondson

From: David Bremner


David Edmondson <dme@dme.org> writes:
>  
> +(defun notmuch-search-uniq-tags (tags)
> +  (let (result)
> +    (mapc (lambda (tag)
> +	    (unless (member tag result)
> +	      (push tag result)))
> +	  tags)
> +    result))

I leave elisp style to others...

Is there some bound on the length of tags? Otherwise this seems like
it's potentially a bit slow?

d
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: