From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#36539: elec-pair.elc gets surreptitiously loaded (almost) unconditionally at start up. Date: Thu, 18 Jul 2019 20:09:57 -0400 Message-ID: <87r26myje2.fsf@gmail.com> References: <20190707141414.GA5641@ACM> <87wogt3hqr.fsf@gmail.com> <20190707182941.GA4053@ACM> <87tvbx3cmg.fsf@gmail.com> <20190707191052.GB4053@ACM> <835zo6175r.fsf@gnu.org> <87o91x1rsc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="135394"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) Cc: Alan Mackenzie , 36539@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 19 02:11:08 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hoGUN-000Z7h-Fq for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Jul 2019 02:11:07 +0200 Original-Received: from localhost ([::1]:41574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoGUM-0006Oe-FN for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Jul 2019 20:11:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59295) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoGUJ-0006O4-Ar for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2019 20:11:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hoGUI-00051A-4S for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2019 20:11:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46062) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hoGUH-000513-Un for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2019 20:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hoGUH-0005FO-O8 for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2019 20:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Jul 2019 00:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36539 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 36539-submit@debbugs.gnu.org id=B36539.156349501020090 (code B ref 36539); Fri, 19 Jul 2019 00:11:01 +0000 Original-Received: (at 36539) by debbugs.gnu.org; 19 Jul 2019 00:10:10 +0000 Original-Received: from localhost ([127.0.0.1]:54883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hoGTR-0005Dx-KY for submit@debbugs.gnu.org; Thu, 18 Jul 2019 20:10:09 -0400 Original-Received: from mail-io1-f54.google.com ([209.85.166.54]:46202) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hoGTL-0005CZ-Nl; Thu, 18 Jul 2019 20:10:04 -0400 Original-Received: by mail-io1-f54.google.com with SMTP id i10so54708128iol.13; Thu, 18 Jul 2019 17:10:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=2tYyUOzViWKCbbuqXy31Q+dpqtKvrgwEPjSiiWHSSlY=; b=cUfWw40Vne8lSBKNcAbyInpmrz/MYVMwH/sL3StwiOUqUKbmKQ/VOohW90cVM+eNBU JgXMUpp3Ap19ivH6aqDXlI7AsMCZA1WeHl3Bw9neZ4UdPP0QtFFbpCoDaoKiMK+U0o4F Gv56PyM8lo6cHlVU/yIDWPCLjmpc4VYiiP5nI4TwSawdERqdx5U6IsJH43kjzbHhguIP gfaXDbnpf88zfylzNxXQNsV4AuMbJLIHMMPhercljrsYGz2dJWevLU2V6e2sgIbDjIe0 Y9vc2QMHqhvnQN2HhSZXljgmVay6il6d2fBdB19BkI49vpvzJdO8rJQdmFvRZnvJKp4I TwGw== 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:references:date:in-reply-to :message-id:user-agent:mime-version; bh=2tYyUOzViWKCbbuqXy31Q+dpqtKvrgwEPjSiiWHSSlY=; b=T339bKD9WRtLjWKXDG9bdL2HxcKbTp8GFwWQTlDeXcUNEHuoP8vvYhGngO8t3oqxSU LlLRa9vEZ3h8Klxw8pL7t+7KBAEU7PGPtWbMvvEDnBld1RxPSS55jW2ZhVKWKYKW7N8O JwZ1/J13ZuEdBaCQ+FArTDjgmFJ2uyNqF2eCi0d+jKxO7CnxEwgOPNk2l+Hi/gdAKu6z fPgNSHSYZfTf9d80jG6RKzR5GkKNEf6T71mS651k8uqnhWIaWv1JcBLdsGRi3KHKnMTg xp/jw6HW66ixTkj8B3ko+HGMPLwMEzpKadNIhANHqtIlSycEuyxbqWcHP6VvU0K9dtAu FM3g== X-Gm-Message-State: APjAAAUaSmRkI0qxYKiBUqh9hupYoxNe3v+hoc9qhZssZRtaNHziak9U cDCD5TyT4anat9HYsb9VPgu9keyx X-Google-Smtp-Source: APXvYqzphvfWASpCyZ9GUycItrrRqak5P8GfVOiB9IN16e7qK1YSixw0UI0J/YqjyLG4DTWuUu0pqQ== X-Received: by 2002:a02:a703:: with SMTP id k3mr50437736jam.12.1563494998143; Thu, 18 Jul 2019 17:09:58 -0700 (PDT) Original-Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id p3sm32589152iom.7.2019.07.18.17.09.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Jul 2019 17:09:57 -0700 (PDT) In-Reply-To: <87o91x1rsc.fsf@gmail.com> (Noam Postavsky's message of "Sat, 13 Jul 2019 18:41:23 -0400") 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: 209.51.188.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:163354 Archived-At: tags 36539 fixed close 36539 27.1 quit > Actually, I noticed a problem with it: electric-pair-mode is a global > mode, so using the local value of the hook isn't right. I think the > updated patch below is correct. > Subject: [PATCH] Don't load elec-pair in elisp-mode (Bug#36539) > > * lisp/progmodes/elisp-mode.el (emacs-lisp-set-electric-text-pairs): > New function. > (emacs-lisp-mode): Add it to electric-pair-mode-hook, if elec-pair > hasn't been loaded yet. Pushed to master. 8f54998827 2019-07-18T20:06:27-04:00 "Don't load elec-pair in elisp-mode (Bug#36539)" https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=8f54998827e416fe1fca7bc384bf0a6281b73f1b