From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: [PATCH] Disable electric quotes for most files in the Emacs codebase. Date: Sun, 6 Jan 2019 22:58:02 +0100 Message-ID: <20190106215802.25745-1-phst@google.com> References: NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1546811782 5717 195.159.176.226 (6 Jan 2019 21:56:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 6 Jan 2019 21:56:22 +0000 (UTC) Cc: Philipp Stephani To: eggert@cs.ucla.edu, emacs-devel@gnu.org, eliz@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 06 22:56:17 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ggGP3-0001PF-DO for ged-emacs-devel@m.gmane.org; Sun, 06 Jan 2019 22:56:17 +0100 Original-Received: from localhost ([127.0.0.1]:35043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggGRA-0001eP-4A for ged-emacs-devel@m.gmane.org; Sun, 06 Jan 2019 16:58:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggGR4-0001eK-Ej for emacs-devel@gnu.org; Sun, 06 Jan 2019 16:58:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ggGR3-0006yf-MA for emacs-devel@gnu.org; Sun, 06 Jan 2019 16:58:22 -0500 Original-Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:40566) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ggGR3-0006yZ-Gs; Sun, 06 Jan 2019 16:58:21 -0500 Original-Received: by mail-wm1-x332.google.com with SMTP id f188so5740656wmf.5; Sun, 06 Jan 2019 13:58:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=piz3Pu5euBAMZwKauS6XgQZnNtPWQ6jylk040e5R3ps=; b=IaE1upjymdbKHnX2MDqzperg7Q18wj1H67aNKlt/qStD/6ywPrOjqM2NctvVc6L4kF XZDaUXRr62pCS6EjTMuoaesChV27Dn44x/VYIsPRnaav8MUrizn0NZC8+aD+DuPX1P83 BAS4a9jdloIlQwha7URDSM0jcVekKywqNYijbULd4CT3niEy9ReRtnnf4C+rLy0AIY/6 HO+fI6eiM8Xf+PrXlILBwofqdWWbIM1GGV9kp6VwKGvuVkgbzYyqm0FU09NSyn3jI2Jg HzuDHBsDqdW3AsUuvzyczRWO0oeScaJ/Qh6bFOyjQQNkifE6OGZTDsWR4yWd14Kw2JTS AcWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=piz3Pu5euBAMZwKauS6XgQZnNtPWQ6jylk040e5R3ps=; b=uZaAD4/JBabhlQS+itWRXxPI8Af320JdJ6cDldy+gAQ2YdngY+tpimUQqc7vet2zvZ OuViNLMPdnyzDFn/AYip2C6gobbehi+0Qc3JM4bUwdl0O54tOwdg/Y8+oZwuVLQKsJx6 QR82R3hs+xmOscB9y2PaBY8Xgbj+2wTPamxh+pnuJCkvR9iPVlEun/88t/yO+qA0iGG8 c7Pa/SuqUiPQMYUtZyoiGPl5nuiwCZXPiaSVSEhmGKNA4M1P9EU6TySI4eEjhA63xBkg yA/zukRLWOB0xGhnZmJ/Aejrm9wiVNYl4Q/oTMQX54IFTNGuw92ebfi0PTVs1pyWL/kc T9Ag== X-Gm-Message-State: AJcUukcSlXgKZpszKdp3Y14+26g4ewYj3xTqB7tbUZ5+D1Doy0HaPYEi lCSlk6Hc4v0FwgZyn8DP57U= X-Google-Smtp-Source: ALg8bN6TTToiOzMCU20pUqofLW4Hy4O8gLWBxnxUOTh7PIfGzvPvTk1MWO6bwmLhd6GDPiOcWesb1A== X-Received: by 2002:a1c:2382:: with SMTP id j124mr6773503wmj.14.1546811898664; Sun, 06 Jan 2019 13:58:18 -0800 (PST) Original-Received: from p.cm.cablesurf.de (85.233.42.145.dynamic.cablesurf.de. [85.233.42.145]) by smtp.gmail.com with ESMTPSA id t70sm8758146wmd.36.2019.01.06.13.58.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 06 Jan 2019 13:58:17 -0800 (PST) X-Google-Original-From: Philipp Stephani X-Mailer: git-send-email 2.17.2 (Apple Git-113) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::332 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:232221 Archived-At: * .dir-locals.el: Disable electric quotes in comments and strings, as the Emacs codebase doesn't use them. --- .dir-locals.el | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.dir-locals.el b/.dir-locals.el index 68eb58fa18..96473a7086 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -2,8 +2,12 @@ (sentence-end-double-space . t) (fill-column . 70))) (c-mode . ((c-file-style . "GNU") - (c-noise-macro-names . ("UNINIT" "CALLBACK" "ALIGN_STACK")))) - (objc-mode . ((c-file-style . "GNU"))) + (c-noise-macro-names . ("UNINIT" "CALLBACK" "ALIGN_STACK")) + (electric-quote-comment . nil) + (electric-quote-string . nil))) + (objc-mode . ((c-file-style . "GNU") + (electric-quote-comment . nil) + (electric-quote-string . nil))) (log-edit-mode . ((log-edit-font-lock-gnu-style . t) (log-edit-setup-add-author . t))) (change-log-mode . ((add-log-time-zone-rule . t) @@ -11,4 +15,8 @@ (bug-reference-url-format . "https://debbugs.gnu.org/%s") (mode . bug-reference))) (diff-mode . ((mode . whitespace))) - (emacs-lisp-mode . ((indent-tabs-mode . nil)))) + (emacs-lisp-mode . ((indent-tabs-mode . nil) + (electric-quote-comment . nil) + (electric-quote-string . nil))) + (texinfo-mode . ((electric-quote-comment . nil) + (electric-quote-string . nil)))) -- 2.17.2 (Apple Git-113)