From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.bugs Subject: bug#27526: 25.1; Nonconformance to Unicode bidirectionality algorithm due to paragraph separator Date: Tue, 18 Jul 2017 00:23:35 +0900 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 (Mac OS X Mail 10.3 \(3273\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_97A06929-4461-4F46-9B01-610A39B726CD" X-Trace: blaine.gmane.org 1500305060 19154 195.159.176.226 (17 Jul 2017 15:24:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 17 Jul 2017 15:24:20 +0000 (UTC) Cc: 27526@debbugs.gnu.org To: Itai Berli Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 17 17:24:12 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 1dX7sY-0004Ux-6A for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Jul 2017 17:24:10 +0200 Original-Received: from localhost ([::1]:51044 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dX7sd-0001Lf-Bp for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Jul 2017 11:24:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dX7sT-0001Jp-Ck for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 11:24:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dX7sQ-0000U6-5O for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 11:24:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41995) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dX7sQ-0000Ts-0W for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 11:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dX7sP-0002ST-Pv for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 11:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jean-Christophe Helary Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Jul 2017 15:24: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.15003050289428 (code B ref 27526); Mon, 17 Jul 2017 15:24:01 +0000 Original-Received: (at 27526) by debbugs.gnu.org; 17 Jul 2017 15:23:48 +0000 Original-Received: from localhost ([127.0.0.1]:44672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX7sB-0002Rz-0u for submit@debbugs.gnu.org; Mon, 17 Jul 2017 11:23:47 -0400 Original-Received: from mail-pf0-f177.google.com ([209.85.192.177]:36310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX7s8-0002Rl-Mu for 27526@debbugs.gnu.org; Mon, 17 Jul 2017 11:23:45 -0400 Original-Received: by mail-pf0-f177.google.com with SMTP id q86so78024198pfl.3 for <27526@debbugs.gnu.org>; Mon, 17 Jul 2017 08:23:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=ewrbFTYVpfCD1royxykZcw/L2o+McJTWv+GIv2dtsD4=; b=dGdOB9DIk6Ye0EZAOAdeLj5ifZwK7LpvjdXAZAeYnxvU7mgFuleI/6+ghax0piePSu Y9vgAtWBAgVuEDQAGoHBQXcV0IyOwK0RIpur/mjAvVz3aeiu9KlE+yUK1YxhAB5dq/gZ mfGb5Fluv0kTkSgqJmp0Q9sQSkf97t/+BaxinPiwU78b9EaoVQjeQwWqG5oPAOabIVNP p1A2C7avgkl2IoWwQYHEyCD6+hH8huWFiecpN2FEPci0q/eByA/wgRNRgl6A07NGuM5G TGAxlN9TBe5HPehbq/p8ec7GgsSg82VUEhfnqmNlsDZyxobEgFkM/PoLKTVwaaaelYWn Za/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=ewrbFTYVpfCD1royxykZcw/L2o+McJTWv+GIv2dtsD4=; b=lFVMhGu7Ih8p0SWL1V+eNmORO1tivnsgKLeOxWVMbHyHTR8BJhuSM9DPKT3m8SOKAS gPPE7fJWHypuEMxMchLDuu5q+ykXK3VtAhRMcLVYVPn+EmZvBFdZgPXfjSsGgcAuEIPf gzOB8q96cnE8c+gu4OairAYyM4SABCI9Hf+k5ORWyvmW7KLJoPacLh5G/OIHlqBxFE3Z pm+ZZ4X6lBc3s6eEeXIyjPzEctiabcXnxG0VA/YzDMe6s8Vhi/G4TqZkYTTaidw7puss SuUEGG8+jZaPtwjABKuv5ho5S6Zdrrn/Nu4MTRhwd80j+DL3a6uy1JuHuWtq8Y0IGJyx ABEA== X-Gm-Message-State: AIVw1134CzyYZDgQy/YmKexPHcxDmEp1FXgEkEkdmTjSMwG6xqpLgptr dWTCzpqzqnGq7w== X-Received: by 10.99.137.194 with SMTP id v185mr4256467pgd.279.1500305019125; Mon, 17 Jul 2017 08:23:39 -0700 (PDT) Original-Received: from [192.168.24.55] (pl2587.ag0304.nttpc.ne.jp. [128.53.196.27]) by smtp.gmail.com with ESMTPSA id q13sm356797pgn.48.2017.07.17.08.23.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jul 2017 08:23:38 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3273) 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:134676 Archived-At: --Apple-Mail=_97A06929-4461-4F46-9B01-610A39B726CD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Jul 18, 2017, at 0:16, Itai Berli wrote: >=20 > 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. It's actually pretty easy to build from source. The easiest way (that = depends on your platform) is to install the version that corresponds to = HEAD. The slightly less trivial way is toget the code from Savannah: https://savannah.gnu.org/projects/emacs clone the code and follow the instructions. I got used to doing that a few weeks ago and it is fascinating to see = all the new features pouring in everyday. Jean-Christophe >=20 > 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. >=20 > 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. >=20 > Thanks. >=20 --Apple-Mail=_97A06929-4461-4F46-9B01-610A39B726CD Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
On Jul 18, 2017, at 0:16, Itai Berli <itai.berli@gmail.com> wrote:

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.

It's = actually pretty easy to build from source. The easiest way (that depends = on your platform) is to install the version that corresponds to HEAD. = The slightly less trivial way is toget the code from = Savannah:
clone = the code and follow the instructions.
I got used to doing that = a few weeks ago and it is fascinating to see all the new features = pouring in everyday.

Jean-Christophe


On Mon, 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 = 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.


= --Apple-Mail=_97A06929-4461-4F46-9B01-610A39B726CD--