From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: GNU ELPA package for CC-mode Date: Sat, 25 Aug 2018 08:51:53 +0000 Message-ID: <20180825085152.GA3935@ACM> References: <20180819204918.GA3934@ACM> <20180821162043.GA3946@ACM> <20180823213418.GA32596@ACM> <83lg8w9mt2.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1535186986 23846 195.159.176.226 (25 Aug 2018 08:49:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 25 Aug 2018 08:49:46 +0000 (UTC) User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 25 10:49:42 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 1ftUGL-00065d-MT for ged-emacs-devel@m.gmane.org; Sat, 25 Aug 2018 10:49:41 +0200 Original-Received: from localhost ([::1]:45071 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftUIR-00010e-Un for ged-emacs-devel@m.gmane.org; Sat, 25 Aug 2018 04:51:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftUHn-00010Z-EH for emacs-devel@gnu.org; Sat, 25 Aug 2018 04:51:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ftUHk-0005l2-1p for emacs-devel@gnu.org; Sat, 25 Aug 2018 04:51:11 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:64252 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ftUHj-0005jf-Lk for emacs-devel@gnu.org; Sat, 25 Aug 2018 04:51:07 -0400 Original-Received: (qmail 1761 invoked by uid 3782); 25 Aug 2018 08:51:06 -0000 Original-Received: from acm.muc.de (p5B147FF4.dip0.t-ipconnect.de [91.20.127.244]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 25 Aug 2018 10:51:04 +0200 Original-Received: (qmail 4127 invoked by uid 1000); 25 Aug 2018 08:51:53 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.1 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:228892 Archived-At: Hello, Stefan. On Fri, Aug 24, 2018 at 18:17:19 -0400, Stefan Monnier wrote: > > For packages which already have some "version" string somewhere, why > > cannot we teach package.el to look for them, when it doesn't find the > > "Version:" header? > We could implement workarounds, of course. The more, the messier. The situation is already messy. And you're suggesting in your next paragraph increasing the messiness in CC Mode. > In the case of CC-mode, I still don't know what's so much better about > putting the version in cc-defs.el's `c-version` variable. It's a lisp variable, hence can be readily used by programs and people at runtime. c-version has existed a long time and would necessitate work to replace by a comment in a different file together with workarounds to turn it into a variable. Or, perhaps, c-version and the Version: header mean two different things, and it would be a mistake to try to merge them into one. It's not clear exactly what Version: is. > At least in the case of Tramp, I believe I understand the problem to be > that Michael doesn't want tools to modify human-written files, but that > explanation doesn't work for CC-mode. Going back to an early post in this thread, the idea was to get an ELPA version of CC Mode "automatically". That phrase carries notions of "effortlessly" and "painlessly". I have pointed out pain with the current proposal, namely the "pollution" of the Emacs master repository with things concerning only ELPA. > > I think this should be easy to implement (we could ask the package > > maintainers to add something or use some standard format, if what we > > already have is not enough), > "Use some standard format" is exactly what "Version:" is. Version: is a comment, not a lisp variable. It's not totally clear what it's for, and how it works, though some of your recent posts have helped here. Where should Version: be documented? > Stefan -- Alan Mackenzie (Nuremberg, Germany).