From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Disable electric quotes in the Emacs codebase. Date: Thu, 03 Jan 2019 15:48:28 +0200 Message-ID: <83va353l8z.fsf@gnu.org> References: <20190102212128.74437-1-phst@google.com> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1546523314 12314 195.159.176.226 (3 Jan 2019 13:48:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 3 Jan 2019 13:48:34 +0000 (UTC) Cc: phst@google.com, p.stephani2@gmail.com, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 03 14:48:29 2019 Return-path: Envelope-to: ged-emacs-devel@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 1gf3MJ-00033b-Tw for ged-emacs-devel@m.gmane.org; Thu, 03 Jan 2019 14:48:28 +0100 Original-Received: from localhost ([127.0.0.1]:53900 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gf3OQ-0007b6-LE for ged-emacs-devel@m.gmane.org; Thu, 03 Jan 2019 08:50:38 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gf3MW-0006KR-1z for emacs-devel@gnu.org; Thu, 03 Jan 2019 08:48:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gf3MV-0004wx-Ey for emacs-devel@gnu.org; Thu, 03 Jan 2019 08:48:40 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41265) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gf3MP-0004vs-9Q; Thu, 03 Jan 2019 08:48:33 -0500 Original-Received: from [176.228.60.248] (port=3463 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gf3MO-0006qy-Iw; Thu, 03 Jan 2019 08:48:32 -0500 In-reply-to: (message from Paul Eggert on Wed, 2 Jan 2019 13:58:14 -0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:232135 Archived-At: > From: Paul Eggert > Date: Wed, 2 Jan 2019 13:58:14 -0800 > Cc: Philipp Stephani > > Philipp Stephani wrote: > > + (electric-quote-comment . nil) > > + (electric-quote-string . nil))) > > Why is this needed? Electric quote mode isn't on by default. It would be good to hear the rationale, yes. I can think about one: to void inserting curved quotes into Emacs messages and doc strings. Are there other reasons? > I find it helpful to use electric-quote mode for some files, and if there's a > need to disable it it'd be better to limit it to files where it should be > disabled rather than have a blanket prohibition. Maybe we should indeed do this only in Lisp and C modes. (In Lisp we could allow this in comments, though.) Paul, can you tell in which files you find electric quote mode helpful? Thanks.