From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AD8oAtOpx2FppgAAgWs5BA (envelope-from ) for ; Sun, 26 Dec 2021 00:31:31 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sCZ3OdKpx2HGGQAAB5/wlQ (envelope-from ) for ; Sat, 25 Dec 2021 23:31:30 +0000 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 80EAE29465 for ; Sun, 26 Dec 2021 00:31:30 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id A1E565F71E; Sat, 25 Dec 2021 23:31:26 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 306CB5F71A for ; Sat, 25 Dec 2021 23:31:23 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 969D55FC42; Sat, 25 Dec 2021 18:31:22 -0500 (EST) Received: (nullmailer pid 3364180 invoked by uid 1000); Sat, 25 Dec 2021 23:31:21 -0000 From: David Bremner To: Tomi Ollila , David Edmondson , notmuch@notmuchmail.org Subject: [PATCH] emacs: update coolj-line-prefix-regexp to make space optional Date: Sat, 25 Dec 2021 19:31:12 -0400 Message-Id: <20211225233112.3364167-1-david@tethera.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Message-ID-Hash: PIU6HNSZ64VWVCTOD5YR7N573DDYZ2QX X-Message-ID-Hash: PIU6HNSZ64VWVCTOD5YR7N573DDYZ2QX X-MailFrom: bremner@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640475090; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=pwO7pHsL27zc76d5CUrtLp8MMRzCYxY/2e84DUqxVPE=; b=UFFR3r9Mh/NKGOlY6hZPbp5lLzlZU5Xw/xQTQ/CZTL3412gQp2rO2RJTniGWa1TtFu1x8s FvQYozp5pwoW4c8eAim62v4qapSmIOIKPOAwgfQWmBvznBUqKBbUO1hYe6msAqPRjS3El/ V+DQb3I9wDhdiYdxO6kNIBzsH+XmqkCPNH2YXMx+XQD8rqWWg3Ly+/AypR+nftTJNs4KbV Q2PlFsc38TI+AeUuBB4Tmj9CehDD02xGLozxsi2MCTjHqHrDdm9ObVyrYpybRdAEZXdJ/T ndWf5UroMH4Y5jgTjyT2dfmXhLfXExW1cVgROrgLk8wmNqH7m8nqxdZM1v8DCQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640475090; a=rsa-sha256; cv=none; b=NlIWuSWdbgtnum7WMeOucXetz/T7dkQS2JVygyVNu/oAwZV/O1/GLaZ1PRCp22uqSRB4JR RvkcJUUK6SW1I3M+FdU8fyxthcmKT0UKXVtOKzlhIRrI9WaGwqK9Rh6UTeokgZMod+xlPM 507eS2FHMAks6XCF+8dTmP1oNUb2q9Rt3IRxboKKpdgvmtWSyS4NYxMWwnIo8keINZQYZF XYxwPohpzsBLLnqh/5+OS2WrYeaaP20ounIE0UVqlvZWIjIuu5FJ1mpMkVRsNofh3YmeBJ S4jp5b0AX1wyWP5negzu9BxL3DCBcV+42F7Rth1qc8LF14OHwwi9Ngz9Zx8erQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.24 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 80EAE29465 X-Spam-Score: -1.24 X-Migadu-Scanner: scn1.migadu.com X-TUID: 6zjpUi0imb6K 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 --- 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