From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SLfoCLtxKl84JgAA0tVLHw (envelope-from ) for ; Wed, 05 Aug 2020 08:45:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SBnHBLtxKl8xXQAAbx9fmQ (envelope-from ) for ; Wed, 05 Aug 2020 08:45:47 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (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 EAA589401CB for ; Wed, 5 Aug 2020 08:45:44 +0000 (UTC) Received: from [144.217.243.247] (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 7E01329A94; Wed, 5 Aug 2020 04:45:34 -0400 (EDT) Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by mail.notmuchmail.org (Postfix) with ESMTPS id B9CCB1FF91 for ; Wed, 5 Aug 2020 04:45:31 -0400 (EDT) Received: by mail-wr1-x442.google.com with SMTP id r4so36890719wrx.9 for ; Wed, 05 Aug 2020 01:45:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dme-org.20150623.gappssmtp.com; s=20150623; h=to:cc:subject:in-reply-to:references:from:date:message-id :mime-version; bh=3rKU90Z9fXD0QHk0kwEfIiavlwtNjXuFw9M72McXwKY=; b=ff0ouMXdwRj6W4ANk/h8RoynqKLxfn14niuIy6K7ZUvQF3344cJdwi2nLrOgFBJUJ3 noSIER7wbwVRqdRjqz48/8pOM+5MZzRJO9ej19hSt9ihQuhFJxSG2UqmflygbStHvpUg rgr+eCLqgUsLztaRKX0xIcW7DY32qOFMZs9Ge3VTWljmym0g4QTGOgDKvODkd36aVVZQ LbefLbHgJT02DiEdEmJ6MyIPNwy3kf171r+uFE0Wzkm7DrKMZed12fBdlHJ7RnG2SD6N c3D9yNxTqvHdi0E2xKeInIR2BYWed0NHvIxoF1NeTTN+Rimxzsso3WOBCnKY1es/2ri3 hbcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:subject:in-reply-to:references:from:date :message-id:mime-version; bh=3rKU90Z9fXD0QHk0kwEfIiavlwtNjXuFw9M72McXwKY=; b=ox391cW1x22wGAekVvOUV7U9lOYb0L5MJo9vOSK5zWz2rmyoarQsHU9TcHi5yQr/9d cyfDfoC6krmZRGkTVwWCx8InepwQfcPqCipZ/Ti/oZTGshAHojJ9OxQQO8pQ+B1Tzxki zDsVF5a2cCZVfB6DDQKGXtx/hBLDZd78LAWTx/CNKj/f08x9IH0LYoe1T5RFojdvrnpV D2kDOMdbkuwGam7XNrdYVVuLw5SY3S2FMKwSaum546J5ENmTbrVBr45B2H4FQ1PDSEyu H6muJsKZ3Fv5A59yHIm6jV0A4mDLiDGhXSxl42PexIJwCMKbjZ9XU9zN2qPqpa4LCEKL Zwsg== X-Gm-Message-State: AOAM5307w1/uTW8HnV3AOYQ91GMIAmkKkPLFVOQm4kzHTNtcgZ0xlnio Fz7qSeQ/suxVemIiMHA61bHRSw== X-Google-Smtp-Source: ABdhPJz0xFx9I6qlrSwXlA2woaAoJFZhsgTqQC1cXD7hSpmrYJKAiNE0rU11OfPqUbnl+MDFcb3HZg== X-Received: by 2002:adf:8186:: with SMTP id 6mr1777083wra.62.1596617125818; Wed, 05 Aug 2020 01:45:25 -0700 (PDT) Received: from disaster-area.hh.sledj.net (8.a.e.d.0.0.0.0.0.0.0.0.4.6.0.0.0.4.1.7.1.7.b.b.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:bb71:7140:64::dea8]) by smtp.gmail.com with ESMTPSA id y84sm1842891wmg.38.2020.08.05.01.45.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2020 01:45:24 -0700 (PDT) Received: from localhost (disaster-area.hh.sledj.net [local]) by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 6eb8072a; Wed, 5 Aug 2020 08:45:24 +0000 (UTC) To: Teemu Likonen , notmuch@notmuchmail.org Cc: Teemu Likonen Subject: Re: [PATCH v3] Emacs: Force left-to-right display for message headers In-Reply-To: <20200804180225.12888-1-tlikonen@iki.fi> References: <87y2muvc5j.fsf@iki.fi> <20200804180225.12888-1-tlikonen@iki.fi> X-HGTTG: heart-of-gold From: David Edmondson X-Playing: Mike Oldfield: Sally (I'm Just a Gorilla) Date: Wed, 05 Aug 2020 09:45:23 +0100 Message-ID: MIME-Version: 1.0 Message-ID-Hash: TIO47XSP5JWPZKESJB2BANNC5U4JPHB4 X-Message-ID-Hash: TIO47XSP5JWPZKESJB2BANNC5U4JPHB4 X-MailFrom: dme@dme.org 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 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=dme-org.20150623.gappssmtp.com header.s=20150623 header.b=ff0ouMXd; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: 0.03 X-TUID: 3SnRWOBWgU/I On Tuesday, 2020-08-04 at 21:02:25 +03, Teemu Likonen wrote: > Insert invisible U+200E LEFT-TO-RIGHT MARK at the beginning of message > headers. It forces message headers to display as left-to-right text > even if there are strong directional characters in header's values. > > See Emacs Lisp reference manual section "(elisp) Bidirectional > Display" for more info. > --- > >> This message can be applied with "git am --scissors". > > Sorry, it doesn't apply with "git am". Maybe PGP/MIME or > quoted-printable encoding messed it up. This time I try with "git > send-email". I've no idea if this is the appropriate approach to addressing this, but the resulting behaviour is obviously an improvement over what happens now. It would make sense to add some commentary to the code as well as the commit message explaining the reason for inserting the seemingly arbitrary character. > emacs/notmuch-show.el | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el > index c9170466..c45db57d 100644 > --- a/emacs/notmuch-show.el > +++ b/emacs/notmuch-show.el > @@ -466,9 +466,10 @@ unchanged ADDRESS if parsing fails." > (defun notmuch-show-insert-headerline (headers date tags depth) > "Insert a notmuch style headerline based on HEADERS for a > message at DEPTH in the current thread." > (let ((start (point))) > - (insert (notmuch-show-spaces-n (* notmuch-show-indent-messages-width depth)) > + (insert (propertize (string ?\x200e) 'invisible t) ; U+200E LEFT-TO-RIGHT MARK > + (notmuch-show-spaces-n (* notmuch-show-indent-messages-width depth)) > (notmuch-sanitize > (notmuch-show-clean-address (plist-get headers :From))) > " (" > date > -- > 2.20.1 > _______________________________________________ > notmuch mailing list -- notmuch@notmuchmail.org > To unsubscribe send an email to notmuch-leave@notmuchmail.org dme. -- Too much information, running through my brain.