From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail
From: Alan Mackenzie <acm@muc.de>
Newsgroups: gmane.emacs.bugs
Subject: bug#36539: elec-pair.elc gets surreptitiously loaded (almost)
 unconditionally at start up.
Date: Sun, 7 Jul 2019 14:14:14 +0000
Message-ID: <20190707141414.GA5641@ACM>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226";
	logging-data="234459"; mail-complaints-to="usenet@blaine.gmane.org"
User-Agent: Mutt/1.10.1 (2018-07-13)
To: 36539@debbugs.gnu.org
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 07 16:15:18 2019
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
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 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1hk7wj-000ydw-Or
	for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Jul 2019 16:15:17 +0200
Original-Received: from localhost ([::1]:35572 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.86_2)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1hk7wb-0005cq-7x
	for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Jul 2019 10:15:09 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46735)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hk7wV-0005cW-Tw
 for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2019 10:15:04 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hk7wU-0000Ze-UF
 for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2019 10:15:03 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:48430)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1hk7wU-0000YB-DE
 for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2019 10:15:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hk7wU-0007xA-60
 for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2019 10:15:02 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Alan Mackenzie <acm@muc.de>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Sun, 07 Jul 2019 14:15:01 +0000
Resent-Message-ID: <handler.36539.B.156250886830512@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 36539
X-GNU-PR-Package: emacs
X-Debbugs-Original-To: bug-gnu-emacs@gnu.org
Original-Received: via spool by submit@debbugs.gnu.org id=B.156250886830512
 (code B ref -1); Sun, 07 Jul 2019 14:15:01 +0000
Original-Received: (at submit) by debbugs.gnu.org; 7 Jul 2019 14:14:28 +0000
Original-Received: from localhost ([127.0.0.1]:57251 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1hk7vu-0007w3-N9
 for submit@debbugs.gnu.org; Sun, 07 Jul 2019 10:14:28 -0400
Original-Received: from lists.gnu.org ([209.51.188.17]:40767)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <acm@muc.de>) id 1hk7vs-0007vu-R2
 for submit@debbugs.gnu.org; Sun, 07 Jul 2019 10:14:25 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46619)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <acm@muc.de>) id 1hk7vr-0005YM-7u
 for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2019 10:14:24 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <acm@muc.de>) id 1hk7vq-00004s-Dv
 for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2019 10:14:23 -0400
Original-Received: from colin.muc.de ([193.149.48.1]:25096 helo=mail.muc.de)
 by eggs.gnu.org with smtp (Exim 4.71) (envelope-from <acm@muc.de>)
 id 1hk7vq-0008U0-3a
 for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2019 10:14:22 -0400
Original-Received: (qmail 11923 invoked by uid 3782); 7 Jul 2019 14:14:15 -0000
Original-Received: from acm.muc.de (p2E5D59C3.dip0.t-ipconnect.de [46.93.89.195]) by
 colin.muc.de (tmda-ofmipd) with ESMTP;
 Sun, 07 Jul 2019 16:14:14 +0200
Original-Received: (qmail 17626 invoked by uid 1000); 7 Jul 2019 14:14:14 -0000
Content-Disposition: inline
X-Delivery-Agent: TMDA/1.1.12 (Macallan)
X-Primary-Address: acm@muc.de
X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy]
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" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: "bug-gnu-emacs"
 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
Xref: news.gmane.org gmane.emacs.bugs:162283
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/162283>

Hello, Emacs.

Current master branch, emacs -Q:

elec-pair.elc has already been loaded at startup.  It seems this is not
intended - elec-pair.el is not loaded in loadup.el.

The reason for this (almost) unconditional loading seems to be a
`require' form in the `defined-derive-mode' for emacs-lisp-mode in
.../progmodes/elisp-mode.el.

This is not good.

A decision should be taken as to whether elec-pair.elc should be loaded
at start up, and if so, it should be part of the dump.  If not, the
`require' form in elisp-mode.el should be replaced by an
`eval-after-load' form.

-- 
Alan Mackenzie (Nuremberg, Germany).