From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.help Subject: Re: using use-package Date: Thu, 30 Jun 2016 15:03:35 +0100 Message-ID: <87furun58o.fsf@russet.org.uk> 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> <18cc3e7d62270dbe3e40bb2b73087b60.squirrel@cloud103.planethippo.com> <4deb171d07e312f6e3cd3bae4317ac40.squirrel@cloud103.planethippo.com> <87furwvsh3.fsf@russet.org.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1467295487 4799 80.91.229.3 (30 Jun 2016 14:04:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jun 2016 14:04:47 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 30 16:04:37 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 1bIca1-0000Pm-3T for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Jun 2016 16:04:33 +0200 Original-Received: from localhost ([::1]:49617 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIca0-0007VM-8a for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Jun 2016 10:04:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIcZE-0007SI-9l for help-gnu-emacs@gnu.org; Thu, 30 Jun 2016 10:03:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIcZ8-0008Ui-6l for help-gnu-emacs@gnu.org; Thu, 30 Jun 2016 10:03:43 -0400 Original-Received: from cloud103.planethippo.com ([31.216.48.48]:51807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIcZ7-0008UZ-Rw for help-gnu-emacs@gnu.org; Thu, 30 Jun 2016 10:03:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From; bh=EfPJngc9b0XxgnO3s7PdegcmlBH4Fy1s01nnrNk8QQE=; b=SfDePpNiKBdRn7rlsEOFpsG8+p NeWDmSP4zwiDevSINO13SMUgXw1IHwuOBpDRw8j9+5E2W7lFlGNNxv2NXc+OVnYFfn4kean+UmKuZ 0kicFxOqYnAviBtiH39sqUbxHu/dKL2yM+R82Q3nl3EcSjSW4mnwUehfIgcAdWGlxav6+dT+hpR9R TSHgh8LRbbDGQ+A+MC+VIIHKrCJTMSgXXjUFMa2nUUf1TjZqPgfN+JTRgQ5s6G50Glm6wwQJWfXXe FRNzy+7FD8sktG9RkBXb4smpMUk7Jmt058H04jdx3Y5Z6XO0H9Jl3EIv5XNgTQCyAjuec/ohoVwj+ /SwLzW1A==; Original-Received: from janus-nat-128-240-225-60.ncl.ac.uk ([128.240.225.60]:33482 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.86_1) (envelope-from ) id 1bIcZ6-000Bus-JC; Thu, 30 Jun 2016 15:03:36 +0100 In-Reply-To: (Stefan Monnier's message of "Thu, 30 Jun 2016 03:25:08 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux) 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:110673 Archived-At: Stefan Monnier writes: >> What about something like this below? We can now do something like: > [...] >> (add-hook 'after-load-functions >> 'extend-key--after-load-function) > > Still relies basically on eval-after-load, which I think is brittle > (and ugly). Oh, sure. But it requires no support at the other end -- it will work with existing packages. I think we need something that has this capability. I can see no way of achieving this wit > I think a cleaner way would be to introduce a `define-keymap'. I'd agree with this. It would be simple to get this to work with something like extend-key so that (extend-key my-mode-map "e" 'excellent) (define-keymap my-mode-map) would work, without the use of the after-load-functions hook. Phil