From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Phillip Lord" Newsgroups: gmane.emacs.help Subject: Re: using use-package Date: Tue, 28 Jun 2016 14:30:09 +0100 Message-ID: <18cc3e7d62270dbe3e40bb2b73087b60.squirrel@cloud103.planethippo.com> References: <20150805055619.13567.17B26335@ahiker.mooo.com> <17131863-cbb8-4a85-8470-490fe9a0c0d4@googlegroups.com> <66dceb24-5fef-4316-8c8b-e9a3e62b0fb8@googlegroups.com> <3594e2c6-bd02-412f-98df-9dd0f145277a@googlegroups.com> <01b4d996-aad3-44ff-a580-7950b25b7dc8@googlegroups.com> <87r3nbh3n3.fsf@russet.org.uk> <0566e644-b87b-46f9-91a5-b9c38befd55e@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1467121180 10619 80.91.229.3 (28 Jun 2016 13:39:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jun 2016 13:39:40 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Rusi" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 28 15:39:28 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bHtEX-0005Zg-ES for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Jun 2016 15:39:21 +0200 Original-Received: from localhost ([::1]:36796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHtEW-0002X4-O8 for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Jun 2016 09:39:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHt5k-0000Im-7B for help-gnu-emacs@gnu.org; Tue, 28 Jun 2016 09:30:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHt5f-0000TW-7c for help-gnu-emacs@gnu.org; Tue, 28 Jun 2016 09:30:15 -0400 Original-Received: from cloud103.planethippo.com ([31.216.48.48]:60906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHt5e-0000T2-Tu for help-gnu-emacs@gnu.org; Tue, 28 Jun 2016 09:30:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Cc:To:From:Subject:Date:References:In-Reply-To:Message-ID; bh=JhcH5KdaHt5x8V18/gh46FawEyXqL8EiT8xJpP7sEVk=; b=fA3N6tUamYQ4xirriABjOxLoJp WuFW7q4mk2ApxokgZJAF/8hEkuhL08WIR56x7/dIFcDZ7CZrFzUW/BNhHc5THKeSC10I3m+uwJ74S /TAGR22XgbLCPYstmCgwUX1uEmZfH4mmmmmupBG1HKRWfc0XoEOYmrybw2uYfhPWQ1K56R2X3qQWK xg2B9/COkklL4VqqlPJW7CG/JT4UTu8l88tbDPiErC58H0lYGm36lR9ZkMWoQVO+n4XEMK92QWpKy 4iyylDkJ596eaFivDD4XGEEAI6Cw6JDJj08fPn1QSVcYEPqkj1xzITtThuLLIMkG5xzIZ8j2jziRn UDEBSNZA==; Original-Received: from [127.0.0.1] (port=54039 helo=cloud103.planethippo.com) by cloud103.planethippo.com with esmtpa (Exim 4.86_1) (envelope-from ) id 1bHt5d-001V3U-Ee; Tue, 28 Jun 2016 14:30:09 +0100 Original-Received: from 128.240.225.113 ([128.240.225.113]) (SquirrelMail authenticated user phillip.lord@russet.org.uk) by cloud103.planethippo.com with HTTP; Tue, 28 Jun 2016 14:30:09 +0100 In-Reply-To: <0566e644-b87b-46f9-91a5-b9c38befd55e@googlegroups.com> User-Agent: SquirrelMail/1.5.2 [SVN] X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud103.planethippo.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - russet.org.uk X-Get-Message-Sender-Via: cloud103.planethippo.com: authenticated_id: phillip.lord@russet.org.uk X-Authenticated-Sender: cloud103.planethippo.com: phillip.lord@russet.org.uk X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 31.216.48.48 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110641 Archived-At: On Tue, June 28, 2016 2:14 pm, Rusi wrote: > On Tuesday, June 28, 2016 at 6:40:47 PM UTC+5:30, Phil Lord wrote: > >> On Tue, June 28, 2016 2:02 pm, Rusi wrote: >> >>> On Tuesday, August 11, 2015 at 2:55:50 AM UTC+5:30, Stefan Monnier >>> wrote: >>> >> >>> >>> Returning to this old thread: >>> I was trying to do: >>> >>> >>> >>> (global-set-key (kbd "C-x C-b") 'electric-buffer-list) >>> (define-key electric-buffer-menu-mode-map (kbd "X") >>> 'save-buffers-kill-emacs) >>> > Well I would have thought that needing eval-after-load and relatives > is evidence of a badly written (in Stefan's sense) package AFAICT, the error here is happening because electirc-buffer-menu-mode-map has not been loaded? The package could autoload it, but if all packages do this, then it would slow autoloads somewhat. So, I am not clear here that this is a problem with the package. Perhaps there is a better solution. > For myself (as you seem to say) if use-package reduces all that > imperative gunk I guess I'll use it I've listened to Stefan's criticism of use-package, and they are valid. I still use use-package, but I have promised myself that everytime I find myself using it to fix a package, I submit a bug report, or patch to the package.