From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#36539: elec-pair.elc gets surreptitiously loaded (almost) unconditionally at start up. Date: Sun, 7 Jul 2019 19:10:52 +0000 Message-ID: <20190707191052.GB4053@ACM> References: <20190707141414.GA5641@ACM> <87wogt3hqr.fsf@gmail.com> <20190707182941.GA4053@ACM> <87tvbx3cmg.fsf@gmail.com> 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="58618"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: 36539@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 07 21:12:16 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 1hkCa7-000F8t-7o for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Jul 2019 21:12:15 +0200 Original-Received: from localhost ([::1]:36622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkCa5-0001ec-JC for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Jul 2019 15:12:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45338) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkCZv-0001ao-RO for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2019 15:12:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hkCZu-000591-PU for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2019 15:12:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48588) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hkCZu-00058I-LU for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2019 15:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hkCZu-0004w5-De for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2019 15:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Jul 2019 19:12:02 +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.156252666218896 (code B ref 36539); Sun, 07 Jul 2019 19:12:02 +0000 Original-Received: (at 36539) by debbugs.gnu.org; 7 Jul 2019 19:11:02 +0000 Original-Received: from localhost ([127.0.0.1]:57409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkCYw-0004uY-0j for submit@debbugs.gnu.org; Sun, 07 Jul 2019 15:11:02 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:30700 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1hkCYt-0004uG-Jb for 36539@debbugs.gnu.org; Sun, 07 Jul 2019 15:11:00 -0400 Original-Received: (qmail 99287 invoked by uid 3782); 7 Jul 2019 19:10:53 -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 21:10:52 +0200 Original-Received: (qmail 25367 invoked by uid 1000); 7 Jul 2019 19:10:52 -0000 Content-Disposition: inline In-Reply-To: <87tvbx3cmg.fsf@gmail.com> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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:162297 Archived-At: Hello again, Noam. On Sun, Jul 07, 2019 at 14:47:51 -0400, Noam Postavsky wrote: > Alan Mackenzie writes: > > Just as a matter of interest, I commented out the pertinent form in > > emacs-lisp-mode, did a make bootstrap, emacs -Q, and elec-pair.elc was > > still present in my Emacs. :-( > > I don't know why, or how, but it is. With your patch (below), have you > > tested whether or not elec-pair.elc hasn't been loaded on starting > > Emacs? If it hasn't been loaded, you've found some trick that eludes > > me. > How are you checking? M-: (featurep 'elec-pair) RET returns nil for me. Yes, it worked for me, too. :-( > Assuming you have help-enable-completion-auto-load set to t (the > default), it's pretty easy to load various things just by hitting TAB in > response to describe-function or describe-variable. That was my problem. I didn't know about help-enable-completion-auto-load (which says it was new in 26.3). I think I will disable this in my .emacs - it seems it will cause me more problems than it will help. I've always used C-h f and C-h v to see an Elisp file's autoloads. Thanks for the tip!. [ .... ] > >> + (setq-local electric-quote-string t) > >> (setq imenu-case-fold-search nil) > >> (add-function :before-until (local 'eldoc-documentation-function) > >> #'elisp-eldoc-documentation-function) > >> -- > >> 2.11.0 > > As a matter of interest, what is that 2.11.0 that I keep seeing at the > > bottom of patches? > Looks like 'git format-patch' adds the git version at the bottom. Ah, so that's it. Thanks! > $ git --version > git version 2.11.0 Thanks for the revised patch. I'll try it. -- Alan Mackenzie (Nuremberg, Germany).