From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Itai Berli Newsgroups: gmane.emacs.bugs Subject: bug#27526: 25.1; Nonconformance to Unicode bidirectionality algorithm due to paragraph separator Date: Mon, 17 Jul 2017 18:16:30 +0300 Message-ID: References: <83inj8nt0h.fsf@gnu.org> <83eftwnpk0.fsf@gnu.org> <83shhvcdvq.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c0d9ed29c9d40055484e428" X-Trace: blaine.gmane.org 1500304702 15134 195.159.176.226 (17 Jul 2017 15:18:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 17 Jul 2017 15:18:22 +0000 (UTC) To: 27526@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 17 17:18:18 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX7mr-0003cp-Dx for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Jul 2017 17:18:17 +0200 Original-Received: from localhost ([::1]:51017 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dX7mx-00066U-1v for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Jul 2017 11:18:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dX7mi-000610-3p for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 11:18:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dX7mc-0006fA-5I for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 11:18:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41980) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dX7mc-0006f3-0y for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 11:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dX7mb-0002J1-SA for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 11:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Itai Berli Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Jul 2017 15:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27526 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27526-submit@debbugs.gnu.org id=B27526.15003046398725 (code B ref 27526); Mon, 17 Jul 2017 15:18:01 +0000 Original-Received: (at 27526) by debbugs.gnu.org; 17 Jul 2017 15:17:19 +0000 Original-Received: from localhost ([127.0.0.1]:44657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX7lv-0002Fh-Ff for submit@debbugs.gnu.org; Mon, 17 Jul 2017 11:17:19 -0400 Original-Received: from mail-wr0-f180.google.com ([209.85.128.180]:36846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX7lt-0002F0-FH for 27526@debbugs.gnu.org; Mon, 17 Jul 2017 11:17:18 -0400 Original-Received: by mail-wr0-f180.google.com with SMTP id y43so2636397wrd.3 for <27526@debbugs.gnu.org>; Mon, 17 Jul 2017 08:17:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=2W1a4ZaWpTMVeglKejvbGt06OK8edf91McUwKBOrC8Q=; b=av3mMEGkC5FeDloC3zAgfM28hONTHXyOJmVmiv1UJ0or8HyPfvYYStb9M7RiEPagtz lVz262VDSQVFDaDPKEhTQmkpws/mMddF3Zh77SyWYTv/Sn1kppUqdK36QLiZJkRvP7Ny 9k5B/0XNWxyp1eVBqT+8a+Pk2I8/j1paEBAYBT4Mv/rwOMh9Jj+Unmzb8RuGSCnM59hP eUbLzfBnOoXdyWYdBYEyvkorBIh2cJ2VBqTlsU67oE/ZOj0YFr3xsvw15vNSEH+m0cfN OhMwAMfdIAJRdCEepyduTVLEGMeLr0T1db0nIU9/yqfzp6jIRH2A7C7iTsIFQrDxGm2z gRWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=2W1a4ZaWpTMVeglKejvbGt06OK8edf91McUwKBOrC8Q=; b=il+mgpIa31PLbapi3T/0BlUKfOEHnTsrb0MPoewT4l5A8tP+cbjtWJ+m1GgNRP49ae /p64xzhZJaJjACYkuDNXcWMxozms1OcrcIjqh5uryPMFKYW/SFjA8PD/qHutHVvxu2DH Wh/q3LkGPEh5oDDSHvbsdyrN79K7yhTuZxd4eMMLr6c9o+wBXSp7cgYnwpg5kUOdynjO hU2icP6okbM0fYzAZggTGptQMgClSH8V8uzI1EA288b8FDM/3OI/f0JxY7JQm8y49AQc oTDfJ4/WxUIRDcMRaqLQzmcj0sv3o84ty1IN+96GYOTsuLFh8aAp98mq8gb+WOVAvYGn deDQ== X-Gm-Message-State: AIVw110rlo1P398y/ixzQm7eKWxPOkJNJEkO9JMPqpQc0LLiZT6xvGQE VJzSNhJvJKlaH/e5O98hoCqJRFBmBH/x X-Received: by 10.223.145.130 with SMTP id 2mr11616358wri.10.1500304631435; Mon, 17 Jul 2017 08:17:11 -0700 (PDT) Original-Received: by 10.28.197.9 with HTTP; Mon, 17 Jul 2017 08:16:30 -0700 (PDT) In-Reply-To: <83shhvcdvq.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:134674 Archived-At: --94eb2c0d9ed29c9d40055484e428 Content-Type: text/plain; charset="UTF-8" Thanks. I've never built Emacs from source. I think it might be easier for me to wait till this patch makes it to the official release. On Mon, Jul 17, 2017 at 5:54 PM, Eli Zaretskii wrote: > > Date: Tue, 04 Jul 2017 19:18:39 +0300 > > From: Eli Zaretskii > > Cc: 27526@debbugs.gnu.org > > > > > From: Itai Berli > > > Date: Tue, 4 Jul 2017 18:57:33 +0300 > > > > > > How about letting the user decide what's best for them? Would it be > possible to add an option to Emacs that a > > > user can set, say, in their .emacs file, which will determine whether > the bidi imiplementation will consider the > > > newline character as the paragraph separator or an empty line? > > > > Could be. I'd need to carefully review the code to say for sure. > > Originally, the regexp which defines where paragraph begins was > > customizable, but it led to grave bugs, so I removed that. Maybe a > > more restricted facility could avoid such pitfalls. > > It turned out to be relatively easy, so I implemented this on the > master branch of the Emacs Git repository. There are two new > variables that you should set to "^" to get the behavior you wanted. > I hope you can build the master branch and see whether the new > facilities solve your case. > > Thanks. > --94eb2c0d9ed29c9d40055484e428 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks. I've never built Emacs from source. I think it= might be easier for me to wait till this patch makes it to the official re= lease.

On Mo= n, Jul 17, 2017 at 5:54 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> Date: Tue, 04 Jul 2017 19:18:39 +0300=
> From: Eli Zaretskii <eliz@gnu.org>
> Cc:
27526@debbugs.gnu.org=
>
> > From: Itai Berli <itai= .berli@gmail.com>
> > Date: Tue, 4 Jul 2017 18:57:33 +0300
> >
> > How about letting the user decide what's best for them? Would= it be possible to add an option to Emacs that a
> > user can set, say, in their .emacs file, which will determine whe= ther the bidi imiplementation will consider the
> > newline character as the paragraph separator or an empty line? >
> Could be.=C2=A0 I'd need to carefully review the code to say for s= ure.
> Originally, the regexp which defines where paragraph begins was
> customizable, but it led to grave bugs, so I removed that.=C2=A0 Maybe= a
> more restricted facility could avoid such pitfalls.

It turned out to be relatively easy, so I implemented this on t= he
master branch of the Emacs Git repository.=C2=A0 There are two new
variables that you should set to "^" to get the behavior you want= ed.
I hope you can build the master branch and see whether the new
facilities solve your case.

Thanks.

--94eb2c0d9ed29c9d40055484e428--