From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Installing binaries with package.el Date: Thu, 09 Feb 2017 10:33:18 -0500 Message-ID: References: <3fdcbe78-969e-f9e1-2a9d-a5f8494c35b3@mit.edu> <8760kmtvpu.fsf@mbork.pl> <35ae3a71-f8da-3405-6966-38337d8e74e0@gmail.com> <87lgtgmspv.fsf@hochschule-trier.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486654451 4118 195.159.176.226 (9 Feb 2017 15:34:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 9 Feb 2017 15:34:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 09 16:34:07 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbqjU-0000iZ-8r for ged-emacs-devel@m.gmane.org; Thu, 09 Feb 2017 16:34:04 +0100 Original-Received: from localhost ([::1]:38552 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbqja-0002Ha-0N for ged-emacs-devel@m.gmane.org; Thu, 09 Feb 2017 10:34:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbqix-0002HU-Tu for emacs-devel@gnu.org; Thu, 09 Feb 2017 10:33:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbqiu-0005Bz-Rf for emacs-devel@gnu.org; Thu, 09 Feb 2017 10:33:31 -0500 Original-Received: from [195.159.176.226] (port=39964 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cbqiu-0005Bt-Lq for emacs-devel@gnu.org; Thu, 09 Feb 2017 10:33:28 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cbqil-0006pQ-7P for emacs-devel@gnu.org; Thu, 09 Feb 2017 16:33:19 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:x1WyoxhTihdZKGfi/7/2CQSM7Jc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212168 Archived-At: [ BTW, I'd really like to see pdf-tools in elpa.git. ] >> Cool. Can you explain a bit more? AFAICT pdf-tools tries to compile >> a C program as part of its installation; > Yes, that's it. There is simply a auto-load cookie above the > installation Elisp. This gets copied by package to the auto-load file > and evaluated as part of the final steps of installing the package. > Its pretty ugly. Any reason why you do it as part of the autoloads rather than as part of the compilation of the package? [ I can see some advantages, but I'm curious what were the reasons in your case. ] > It would be really helpful if package could provide some appropriate > hooks, i.e pre-remove, post-install and when ever else it could be > useful. In the case of pdf-tools, what kind of pre-remove would be needed? Stefan