From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: bug#24901: Patch updated slightly Date: Fri, 2 Dec 2016 16:09:49 +0000 Message-ID: References: <834m2moeaf.fsf@gnu.org> <83mvgemjxy.fsf@gnu.org> <83h96mmil2.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1142bf1ae4c5410542af2a0f X-Trace: blaine.gmane.org 1480695055 29945 195.159.176.226 (2 Dec 2016 16:10:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 2 Dec 2016 16:10:55 +0000 (UTC) Cc: 24901@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 02 17:10:49 2016 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 1cCqQC-0006Vh-Co for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Dec 2016 17:10:48 +0100 Original-Received: from localhost ([::1]:35351 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCqQG-0003hP-8q for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Dec 2016 11:10:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCqPb-0003Dj-3s for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2016 11:10:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCqPT-0000YY-Ha for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2016 11:10:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35099) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cCqPT-0000XZ-Dn for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2016 11:10:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cCqPR-0000hJ-Jc for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2016 11:10:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Dec 2016 16:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24901 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 24901-submit@debbugs.gnu.org id=B24901.14806949982667 (code B ref 24901); Fri, 02 Dec 2016 16:10:01 +0000 Original-Received: (at 24901) by debbugs.gnu.org; 2 Dec 2016 16:09:58 +0000 Original-Received: from localhost ([127.0.0.1]:50498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCqPO-0000gx-FI for submit@debbugs.gnu.org; Fri, 02 Dec 2016 11:09:58 -0500 Original-Received: from mail-lf0-f50.google.com ([209.85.215.50]:32920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCqPL-0000gi-OZ for 24901@debbugs.gnu.org; Fri, 02 Dec 2016 11:09:57 -0500 Original-Received: by mail-lf0-f50.google.com with SMTP id c13so198380889lfg.0 for <24901@debbugs.gnu.org>; Fri, 02 Dec 2016 08:09:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=O8HEojJ80tJ4i5Pglz1yMqSRkCVFZaNn1iouYG2rjBM=; b=xMuEhlOf8N09dr7Ue1XQA8IW610+ME6XpHXg+fnKMG3g/VuhKBlmag4SxtKARaF76G aFMf9DKIXt0JIEVnbY6CVtTg5F+5HsW3OInLssVMDa8oARDxb9fWi70wqnmYILZwH7Yf jXENBols4hWU8GY93yXrlGME7PzWPOA7c440o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=O8HEojJ80tJ4i5Pglz1yMqSRkCVFZaNn1iouYG2rjBM=; b=i8u86gL8wzEO1q+N01pbmNhOtuSMshBZZ7FDbwfKMcrj9FEOqAsOaxzv3UgleX7j/w cJjiLnEYGlEsMXqh/SVtsOT3apabczdSgJg7GRPRg4YZSo6Vmb/Zy4DUH9+VJCUb2BS8 S5SeKpQRk6QlL/2mL7oDfwDu+t9aj+eZnS1QJLmy2cFQLXN1ixvIG8ALg5xSm0Qq9G1J FFo/Zv495yeHhgLYR6kx98JQDIebdIksetcpS/Khk84Rk78VODYii0OHphbIUQbUremq pfF/9tVPf9HqUPwCBBnvb4XpqtWJ3T8Djk/s/nsTteAgM6g1VK5ICrDRxLpootfj+rWj vpIA== X-Gm-Message-State: AKaTC036RXcSgYnWPbDfp7HCqoOanSspijOaMhTwmC7Ejqr5AZ9HjGX4nUy+rJLVj2ETQotWcKkl2YlfBAH8r+Dg X-Received: by 10.46.0.77 with SMTP id 74mr22920277lja.76.1480694989886; Fri, 02 Dec 2016 08:09:49 -0800 (PST) Original-Received: by 10.25.190.2 with HTTP; Fri, 2 Dec 2016 08:09:49 -0800 (PST) In-Reply-To: <83h96mmil2.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:126422 Archived-At: --001a1142bf1ae4c5410542af2a0f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 2 December 2016 at 15:55, Eli Zaretskii wrote: > > From: Reuben Thomas > > Date: Fri, 2 Dec 2016 15:40:58 +0000 > > Cc: 24901@debbugs.gnu.org > > > > On 2 December 2016 at 15:26, Eli Zaretskii wrote: > > > > So electric-pair-mode is incompatible with RTL scripts. Too bad. > > > > It seems to work for me: if I select a Hebrew keyboard layout, type som= e > Hebrew letters, and then use double > > straight quotes, I get the expected result. If I use curly quotes, I ge= t > a different result, but perhaps that it > > because it implicitly changes the writing direction? I didn't get as fa= r > as trying to configure electric-pair-mode to > > understand Hebrew quotation marks. > > The problem I was thinking about is that in RTL script you would type > the right quote first, to serve as the opening quote. That's because > the quotes are not mirrored by the bidirectional reordering for > display, like parentheses are. > So, if you expect to be able to use the same quote characters without reconfiguration according to language, then it won't work. Otherwise, you can simply configure the quotes the other way around, and it should work (and change the documentation of electric-quote-pairs to mention "open" and "close" rather than "left" and "right"). But I guess this is a solved design problem that simply needs integrating into electric-pair-mode=E2=80= =A6 Change installed. --=20 http://rrt.sc3d.org --001a1142bf1ae4c5410542af2a0f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On = 2 December 2016 at 15:55, Eli Zaretskii <eliz@gnu.org> wrote:
=
> From: Reuben Thomas <rrt@sc3d.org>
> Date: Fri, 2 Dec 2016 15:40:58 +0000
> Cc: 24901@d= ebbugs.gnu.org
>
> On 2 December 2016 at 15:26, Eli Zaretskii <eliz@gnu.org> wrote:
>
>=C2=A0 So electric-p= air-mode is incompatible with RTL scripts. Too bad.
>
> It seems to work for me: if I select a Hebrew keyboard layout, type so= me Hebrew letters, and then use double
> straight quotes, I get the expected result. If I use curly quotes, I g= et a different result, but perhaps that it
> because it implicitly changes the writing direction? I didn't get = as far as trying to configure electric-pair-mode to
> understand Hebrew quotation marks.

The problem I was thinking about is that in RTL script you would typ= e
the right quote first, to serve as the opening quote.=C2=A0 That's beca= use
the quotes are not mirrored by the bidirectional reordering for
display, like parentheses are.

So, if you expect to be able= to use the same quote characters without reconfiguration according to lang= uage, then it won't work. Otherwise, you can simply configure the quote= s the other way around, and it should work (and change the documentation of= electric-quote-pairs to mention "open" and "close" rat= her than "left" and "right"). But I guess this is a sol= ved design problem that simply needs integrating into electric-pair-mode=E2= =80=A6
Change insta= lled.

--
--001a1142bf1ae4c5410542af2a0f--