[PATCH v4] Emacs: Force left-to-right display for message headers

2020-08-05 Thread Teemu Likonen
Insert invisible U+200E LEFT-TO-RIGHT MARK character at the beginning of message header paragraph in notmuch-show buffer. The U+200E character forces the header paragraph as left-to-right text even if the header content started with right-to-left characters. See Emacs Lisp reference manual

Re: [PATCH v3] Emacs: Force left-to-right display for message headers

2020-08-05 Thread David Edmondson
On Wednesday, 2020-08-05 at 12:40:06 +03, Teemu Likonen wrote: > * 2020-08-05 09:45:23+01, David Edmondson wrote: > >> 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. > > I think there are

Re: [PATCH v3] Emacs: Force left-to-right display for message headers

2020-08-05 Thread Teemu Likonen
* 2020-08-05 12:40:06+03, Teemu Likonen wrote: > I think there are two options: > > 1. Add a string like "From: " in the beginning of notmuch-show header > paragraph so that the paragraph always starts with left-to-right > characters (those latin letters "From"). > > 2. Add invisible

Re: [PATCH v3] Emacs: Force left-to-right display for message headers

2020-08-05 Thread Teemu Likonen
* 2020-08-05 09:45:23+01, David Edmondson wrote: > 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. I think there are two options: 1. Add a string like "From: " in the beginning of

Re: [PATCH v3] Emacs: Force left-to-right display for message headers

2020-08-05 Thread David Edmondson
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