From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24901: Patch updated slightly Date: Fri, 02 Dec 2016 17:26:01 +0200 Message-ID: <83mvgemjxy.fsf@gnu.org> References: <834m2moeaf.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1480692435 30648 195.159.176.226 (2 Dec 2016 15:27:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 2 Dec 2016 15:27:15 +0000 (UTC) Cc: 24901@debbugs.gnu.org To: Reuben Thomas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 02 16:27:11 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 1cCpjy-0007O1-38 for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Dec 2016 16:27:10 +0100 Original-Received: from localhost ([::1]:35113 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCpk2-00067T-4A for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Dec 2016 10:27:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCpjv-00067E-8F for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2016 10:27:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCpjq-0007V0-5R for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2016 10:27:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35072) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cCpjq-0007Uw-2E for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2016 10:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cCpjp-00087W-TE for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2016 10:27:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Dec 2016 15:27: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.148069237431160 (code B ref 24901); Fri, 02 Dec 2016 15:27:01 +0000 Original-Received: (at 24901) by debbugs.gnu.org; 2 Dec 2016 15:26:14 +0000 Original-Received: from localhost ([127.0.0.1]:50471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCpj4-00086W-FU for submit@debbugs.gnu.org; Fri, 02 Dec 2016 10:26:14 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57755) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCpj2-00086H-8N for 24901@debbugs.gnu.org; Fri, 02 Dec 2016 10:26:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCpir-0007JT-Q0 for 24901@debbugs.gnu.org; Fri, 02 Dec 2016 10:26:07 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCpir-0007JI-Na; Fri, 02 Dec 2016 10:26:01 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1753 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cCpip-0006u5-II; Fri, 02 Dec 2016 10:26:01 -0500 In-reply-to: (message from Reuben Thomas on Fri, 2 Dec 2016 14:42:24 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:126416 Archived-At: > From: Reuben Thomas > Date: Fri, 2 Dec 2016 14:42:24 +0000 > Cc: 24901@debbugs.gnu.org > > ​Rationale: electric-pair-mode already has support for straight double-quote pairs, so it is logical to add > support for curly double-quote pairs. As with straight double quotes, it's logical that these be supported > everywhere. The same goes for straight single quotes, which are generally used for the same purpose as > curly double and single double quotes, that is, quoting (in human language). > > The use of electric-quote-chars means that electric-pair-mode will automatically use whatever the user has > configured for single and double quotes. I see, thanks. Is it certain that users won't want straight quotes, but not the curly ones? E.g., in some programming mode, perhaps? > In particular, I don't understand the last sentence of the log > message; can you elaborate? > > ​electric-pair-mode does not by default produce pairs of straight single quote (apostrophe). This is because it > does not always make sense: a single apostrophe is often used on its own. However, with curly single > quotes, it makes sense for electric-pair-mode to make typing a left curly quote automatically add a > corresponding right quote, as left curly quotes are not normally used on their own. (Right single curly quotes > can be used on their own, as an apostrophe, but this is irrelevant here, as electric-pair-mode acts when the > left-hand mark is typed, not the right-hand mark). So electric-pair-mode is incompatible with RTL scripts. Too bad. Thanks for the explanations. If it's certain that no one will want only straight quotes (see above), I'm okay with this change.