From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: GNU ELPA package for CC-mode Date: Sat, 25 Aug 2018 15:17:57 -0600 Message-ID: <87sh32ywl6.fsf@tromey.com> References: <20180819204918.GA3934@ACM> <20180821162043.GA3946@ACM> <20180823213418.GA32596@ACM> <83lg8w9mt2.fsf@gnu.org> <871saoc70o.fsf@gmx.de> <70f493fa-ed53-7450-3ff6-81b93731d721@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1535231811 15282 195.159.176.226 (25 Aug 2018 21:16:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 25 Aug 2018 21:16:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 25 23:16:47 2018 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 1ftfvK-0003sB-MH for ged-emacs-devel@m.gmane.org; Sat, 25 Aug 2018 23:16:46 +0200 Original-Received: from localhost ([::1]:47090 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftfxP-0003Fa-P8 for ged-emacs-devel@m.gmane.org; Sat, 25 Aug 2018 17:18:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftfwk-0003FJ-Ty for emacs-devel@gnu.org; Sat, 25 Aug 2018 17:18:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ftfwg-0004PR-Uq for emacs-devel@gnu.org; Sat, 25 Aug 2018 17:18:14 -0400 Original-Received: from gateway21.websitewelcome.com ([192.185.45.228]:20267) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ftfwg-00042V-Mg for emacs-devel@gnu.org; Sat, 25 Aug 2018 17:18:10 -0400 Original-Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway21.websitewelcome.com (Postfix) with ESMTP id F2B57401058CB for ; Sat, 25 Aug 2018 16:17:58 -0500 (CDT) Original-Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id tfwUf5TCZBcCXtfwUfaawB; Sat, 25 Aug 2018 16:17:58 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ICs+WUg2OQD/g73BIJHe67pbE7/R5rtC8kqq76FPoQQ=; b=QZgaUZkgRZT+MuIfNLFIrx33+0 kMrU7EalWV1OTncpR6x8I7EmrNZRVJet8HuneeNfpDvOTp8eVhHhBW47FMYhBMNRDHcwvkRFM+f/g yBPD5/YTHK+xWrlET5zceW6hY; Original-Received: from 75-166-85-72.hlrn.qwest.net ([75.166.85.72]:59024 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1ftfwU-000Rxu-LN; Sat, 25 Aug 2018 16:17:58 -0500 X-Attribution: Tom In-Reply-To: (Stefan Monnier's message of "Sat, 25 Aug 2018 16:17:43 -0400") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.85.72 X-Source-L: No X-Exim-ID: 1ftfwU-000Rxu-LN X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-85-72.hlrn.qwest.net (bapiya) [75.166.85.72]:59024 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 192.185.45.228 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:228915 Archived-At: >>>>> "Stefan" == Stefan Monnier writes: >> We do this in Flycheck, but it makes retrieving the version number >> less convenient. Maybe package.el could provide a simple function >> which, given a package name, returns the installed version? Stefan> Yes, it'd be nice. >> (Maybe there's one already?) Stefan> The closest I could find are: (lm-header "version") and `bbdb-version`. lm-header is what package.el itself uses. I suspect this could be done by using a combination of the load-file-name hack; see the end of: (info "(elisp) Multi-file Packages") combined with lm-header. To make it even better maybe this could be done using eval-when-compile so that the bytecode just has a constant. Tom