Re: [PATCH] emacs: update coolj-line-prefix-regexp to make space optional

Subject: Re: [PATCH] emacs: update coolj-line-prefix-regexp to make space optional

Date: Wed, 29 Dec 2021 19:47:16 +0200

To: David Bremner, David Edmondson, notmuch@notmuchmail.org

Cc:

From: Tomi Ollila


On Sat, Dec 25 2021, David Bremner wrote:

> Jani reported that lines prefixed with '>' (as opposed to '> ') are
> not highlighted properly [1]. David E responded with a updated regex
> [2]. This change implements David E's suggestion.
>
> [1]: id:87a8b5pcky.fsf@nikula.org
> [2]: id:m2pok1e3gv.fsf@dme.org

LGTM.

Tomi

> ---
>  emacs/coolj.el | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/emacs/coolj.el b/emacs/coolj.el
> index d820525b..79d2a1b7 100644
> --- a/emacs/coolj.el
> +++ b/emacs/coolj.el
> @@ -45,7 +45,7 @@ Otherwise respect `fill-column'."
>    :group 'coolj
>    :type 'boolean)
>  
> -(defcustom coolj-line-prefix-regexp "^\\(>+ \\)*"
> +(defcustom coolj-line-prefix-regexp "^\\(>+ ?\\)*"
>    "Regular expression that matches line prefixes."
>    :group 'coolj
>    :type 'regexp)
> -- 
> 2.34.1
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: