From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id YMswJl2rN19COQAA0tVLHw (envelope-from ) for ; Sat, 15 Aug 2020 09:31:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kAPrIV2rN1+kYwAA1q6Kng (envelope-from ) for ; Sat, 15 Aug 2020 09:31:09 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2DA83940602 for ; Sat, 15 Aug 2020 09:31:09 +0000 (UTC) Received: from [144.217.243.247] (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 8B69A29BA9; Sat, 15 Aug 2020 05:31:00 -0400 (EDT) Received: from meesny.iki.fi (unknown [IPv6:2001:67c:2b0:1c1::201]) by mail.notmuchmail.org (Postfix) with ESMTPS id 0C8EC29BA1 for ; Sat, 15 Aug 2020 05:30:57 -0400 (EDT) Received: from mithlond.arda (mobile-access-bceeee-200.dhcp.inet.fi [188.238.238.200]) (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) (Authenticated sender: tlikonen) by meesny.iki.fi (Postfix) with ESMTPSA id 52A4E20055; Sat, 15 Aug 2020 12:30:44 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1597483844; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=LiTAofq9mRb2eaQBJoUIGZLmQZ5tgug/le8NmKlOV8o=; b=Khqy33z67f08g9JPwUB1QwrEBrbMLY3LkIls5wRmQdl4udlNari/CYFKjWWIFbbGCPfgzZ xGjTsA7oz/DET+eGnopAJhJnVqQs95VPUsyQCwCzGtDALjQJPfTFmlN6Q+14Ig2Lk9OaIk cWqq+Ri4B/camJMMR+8IxzIE0otUDd0= From: Teemu Likonen To: notmuch@notmuchmail.org Subject: [PATCH 0/2] Balance bidi control chars Date: Sat, 15 Aug 2020 12:30:34 +0300 Message-Id: <20200815093036.5930-1-tlikonen@iki.fi> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1597483844; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=LiTAofq9mRb2eaQBJoUIGZLmQZ5tgug/le8NmKlOV8o=; b=vVoUBNnMiIQart4qY3UfUnYq6PQYZIq1M0ds54HGoKIUnJ4bVZexOwa22Xu9QD3p1v+m5K u7cro0V9PAF85sIT+JYu/StiH5RUeIWRgnhze12ZW4/Nnh3XAQ1527dvPwG56FlK5pgyMl ceJ+LfnLzwcpUkyMspdQty2soL5Z1zQ= ARC-Seal: i=1; s=meesny; d=iki.fi; t=1597483844; a=rsa-sha256; cv=none; b=B7CUWaes0bcu+MnZ2TepEuR0gHYUAb2x8CVrKG2wD0YSC/6EnGnGdfjB96kJQ569rV8GLp pph2msF/FA5c49QxN+SHj3iCmTVJIkEydMjhmH6YIBkgcO0RVPiEd3O14GUG5TqkOnrO0U Wl/A6SbDRFwfDhZHwc/q+j2QtbGPsr4= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=tlikonen smtp.mailfrom=tlikonen@iki.fi Message-ID-Hash: YJBHFCRNTAYATQ4R556PWPJA5SVWYJ5E X-Message-ID-Hash: YJBHFCRNTAYATQ4R556PWPJA5SVWYJ5E X-MailFrom: tlikonen@iki.fi 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; suspicious-header CC: tomi.ollila@iki.fi X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=iki.fi header.s=meesny header.b=Khqy33z6; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: 4.53 X-TUID: ODGTIFnnbrdt These patches continue the ideas written in message: id:87sgcuuzio.fsf@iki.fi The first patch adds an new function which can be used to balance Unicode's bidirectional control characters in its string argument. The seconds patch modifies old "notmuch-sanitize" function so that it calls the new function. Teemu Likonen (2): Emacs: Add a new function for balancing bidi control chars Emacs: Call notmuch-balance-bidi-ctrl-chars in notmuch-sanitize emacs/notmuch-lib.el | 57 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) -- 2.20.1