From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Wordingham via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#54219: 26.3; Bidi and empty parentheses Date: Wed, 2 Mar 2022 05:26:37 +0000 Message-ID: <20220302052637.6312dd29@JRWUBU2> Reply-To: Richard Wordingham Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37607"; mail-complaints-to="usenet@ciao.gmane.io" To: 54219@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 02 06:27:21 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nPHWD-0009b2-46 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Mar 2022 06:27:21 +0100 Original-Received: from localhost ([::1]:49250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nPHWB-00063g-Ob for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Mar 2022 00:27:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPHVu-00061O-9T for bug-gnu-emacs@gnu.org; Wed, 02 Mar 2022 00:27:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44968) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nPHVu-0008I7-15 for bug-gnu-emacs@gnu.org; Wed, 02 Mar 2022 00:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nPHVt-0008FM-Ro for bug-gnu-emacs@gnu.org; Wed, 02 Mar 2022 00:27:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Wordingham Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Mar 2022 05:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54219 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164619880931677 (code B ref -1); Wed, 02 Mar 2022 05:27:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Mar 2022 05:26:49 +0000 Original-Received: from localhost ([127.0.0.1]:38865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nPHVh-0008Ep-5q for submit@debbugs.gnu.org; Wed, 02 Mar 2022 00:26:49 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:39206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nPHVf-0008Ef-Gs for submit@debbugs.gnu.org; Wed, 02 Mar 2022 00:26:48 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44658) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPHVd-0005hA-7V for bug-gnu-emacs@gnu.org; Wed, 02 Mar 2022 00:26:47 -0500 Original-Received: from smtpq1.tb.ukmail.iss.as9143.net ([212.54.57.96]:52410) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPHVa-0008ET-Dw for bug-gnu-emacs@gnu.org; Wed, 02 Mar 2022 00:26:44 -0500 Original-Received: from [212.54.57.108] (helo=csmtp4.tb.ukmail.iss.as9143.net) by smtpq1.tb.ukmail.iss.as9143.net with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPHVW-0000TF-95 for bug-gnu-emacs@gnu.org; Wed, 02 Mar 2022 06:26:38 +0100 Original-Received: from JRWUBU2 ([82.27.122.109]) by cmsmtp with ESMTP id PHVWn6FcNGaPZPHVWnONi2; Wed, 02 Mar 2022 06:26:38 +0100 X-SourceIP: 82.27.122.109 X-Spam: 0 X-Authority: v=2.4 cv=aqChtAVV c=1 sm=1 tr=0 ts=621f000e cx=a_exe a=lZfnwhydZ+7bl6OdZ0zTBw==:117 a=lZfnwhydZ+7bl6OdZ0zTBw==:17 a=IkcTkHD0fZMA:10 a=o8Y5sQTvuykA:10 a=te1EGT4yAAAA:8 a=aR16PxjQAAAA:8 a=p7TXYDUxyuEJRDV-WysA:9 a=QEXdDO2ut3YA:10 a=iWs3t8wffU0A:10 a=RRElR4r2U1jGY2dU47NL:22 a=zbFvvTOBjyH4ze5LlUjX:22 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1646198798; bh=Ut00/EY+pQc6nmC+tVihNyHOhFM4u8+Ydq6FGPDNw04=; h=Date:From:To:Subject; b=uebnEk0ABT7MyVxqytr1khWHAH2Pi+WZOeKwEC/Um2I1sSpbdDdubPVkZ38D+DzYE vUQNXU5r1WCi7frS5Xftqyd5G8slEhiYhZQN0vz7aiViHA00000ir8TfWsu7gkDyiw fWBXKHhhlpWrk2d2J8430LG3WOjkVv4DjN23ILMBQK+XJBke1pf/1v/dzs7kBR0HOk 9qiSHlbOqQs90J74FfUuxZSh3VGvxZAM9zYK+/TriYvurDl0MhnWh4veg7uX/xMpI7 xvMFSGQ+FtUrCsY1P2jkJoR7AH9g3Midb2SH0I3KHYeQ1TjQaFgR8GMYIwr0XxF6oD dr8yI7xXX78mQ== X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-CMAE-Envelope: MS4xfITXDs3iaf361K/X/uqWm4Q/68SaA/53jTg2v3UvDMtIeorsm5VKel7E18LU4ogf6cssQ1/b4L51sWzQAYBCIkg/3jiQ7mzZHMNYhVWFJFwdmhlm7DjV DI7XLOBQYPROqqM7kxwcrAuL85bxu8MtxzAfhlHTyEbFJ1Kc28BwAgc3TMIKn0Qcx7rhp+JA9vW3rjG8hl1nni4cDmgN/7booCE= Received-SPF: pass client-ip=212.54.57.96; envelope-from=richard.wordingham@ntlworld.com; helo=smtpq1.tb.ukmail.iss.as9143.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:227906 Archived-At: --Recipe starting from emacs-Q:-- ; Create a new buffer for general text, e.g. c.txt C-x C-f c.txt RET ; Enter RTL character insert-char 644 RET ; Enter rest of line x()y --Problem-- The result is that a flush-right line is produced that appears to read y()x=D9=84 It should appear to read x()y=D9=84 See https://corp.unicode.org/pipermail/unicode/2022-February/009984.html and reply from Ken Whistler for confirmation that the observed behaviour is wrong. This misbehaviour is still present in Emacs 28.0.91 as built from the tarball. (Configuration not included.) For the usage that prompted this report, several work-arounds are available, including defining end of line as a paragraph boundary. The Emacs display in that usage is also rendered baffling by Bug #27525 'Line wrapping of bidi paragraphs'. --Configuration Data-- In GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14) of 2020-03-26, modified by Debian built on lcy01-amd64-020 Windowing system distributor 'The X.Org Foundation', version 11.0.12013000 System Description: Ubuntu 20.04.4 LTS Configured using: 'configure --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --enable-libsystemd --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs:/usr/local/share/emacs/26.3/site-lisp:= /usr/local/share/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/share= /emacs/site-lisp --with-sound=3Dalsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --enable-libsystemd --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs:/usr/local/share/emacs/26.3/site-lisp:= /usr/local/share/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/share= /emacs/site-lisp --with-sound=3Dalsa --without-gconf --with-mailutils --with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-toolkit-scroll-bars 'CFLAGS=3D-g -O2 -fdebug-prefix-map=3D/build/emacs-mEZBk7/emacs-26.3+1=3D. -fstack-protector-strong -Wformat -Werror=3Dformat-security -Wall' 'CPPFLAGS=3D-Wdate-time -D_FORTIFY_SOURCE=3D2' 'LDFLAGS=3D-Wl,-Bsymbolic-functions -Wl,-z,relro'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_GB.utf8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Text Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils map seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 95749 11279) (symbols 48 31997 2) (miscs 40 76 118) (strings 32 84051 2222) (string-bytes 1 1876297) (vectors 16 14442) (vector-slots 8 898152 15448) (floats 8 49 68) (intervals 56 262 0) (buffers 992 12))