From: Teemu Likonen <tlikonen@iki.fi>
To: notmuch@notmuchmail.org
Cc: tomi.ollila@iki.fi
Subject: [PATCH 2/2] Emacs: Call notmuch-balance-bidi-ctrl-chars in notmuch-sanitize
Date: Sat, 15 Aug 2020 12:30:36 +0300 [thread overview]
Message-ID: <20200815093036.5930-3-tlikonen@iki.fi> (raw)
In-Reply-To: <20200815093036.5930-1-tlikonen@iki.fi>
---
emacs/notmuch-lib.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index e6252c6c..e0122f7a 100644
--- a/emacs/notmuch-lib.el
+++ b/emacs/notmuch-lib.el
@@ -527,7 +527,8 @@ function should be used when sanitizing arbitrary input."
"Sanitize control character in STR.
This includes newlines, tabs, and other funny characters."
- (replace-regexp-in-string "[[:cntrl:]\x7f\u2028\u2029]+" " " str))
+ (notmuch-balance-bidi-ctrl-chars
+ (replace-regexp-in-string "[[:cntrl:]\x7f\u2028\u2029]+" " " str)))
(defun notmuch-escape-boolean-term (term)
"Escape a boolean term for use in a query.
--
2.20.1
next prev parent reply other threads:[~2020-08-15 9:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-15 9:30 [PATCH 0/2] Balance bidi control chars Teemu Likonen
2020-08-15 9:30 ` [PATCH 1/2] Emacs: Add a new function for balancing " Teemu Likonen
2020-08-16 16:28 ` Tomi Ollila
2020-08-16 17:41 ` Teemu Likonen
2020-08-15 9:30 ` Teemu Likonen [this message]
2020-08-15 9:44 ` [PATCH 0/2] Balance " Teemu Likonen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200815093036.5930-3-tlikonen@iki.fi \
--to=tlikonen@iki.fi \
--cc=notmuch@notmuchmail.org \
--cc=tomi.ollila@iki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.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).