From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: -DVERSION for emacsclient Date: Fri, 24 Nov 2006 20:28:35 +0100 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1164398216 17725 80.91.229.2 (24 Nov 2006 19:56:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Nov 2006 19:56:56 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 24 20:56:55 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GnhAG-0003lG-S6 for ged-emacs-devel@m.gmane.org; Fri, 24 Nov 2006 20:56:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GnhAG-00077y-G7 for ged-emacs-devel@m.gmane.org; Fri, 24 Nov 2006 14:56:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gnh9Q-0006Xg-Cy for emacs-devel@gnu.org; Fri, 24 Nov 2006 14:55:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gnh9L-0006So-Pl for emacs-devel@gnu.org; Fri, 24 Nov 2006 14:55:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gnh9J-0006Sd-Pw for emacs-devel@gnu.org; Fri, 24 Nov 2006 14:55:49 -0500 Original-Received: from [64.233.166.183] (helo=py-out-1112.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GngjM-00034x-QV for emacs-devel@gnu.org; Fri, 24 Nov 2006 14:29:02 -0500 Original-Received: by py-out-1112.google.com with SMTP id u77so566879pyb for ; Fri, 24 Nov 2006 11:28:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oL5R6pEoEHEKNXqmdgrMUR0YbmoEsOKnFnKUtTFlL1Th0RsudM+jlqVbOyYPh579CZYq59LWrxaKGxUqbCOt8P7DkZHVzfJZoYWqnhNjnE530mVdhuuO+l4gG8feLAphkkl+ZQpSy9mrKYzRYFka22MSvSmT1WdPLwWdT+3kf8k= Original-Received: by 10.35.60.16 with SMTP id n16mr7599843pyk.1164396515312; Fri, 24 Nov 2006 11:28:35 -0800 (PST) Original-Received: by 10.35.95.18 with HTTP; Fri, 24 Nov 2006 11:28:35 -0800 (PST) Original-To: "Eli Zaretskii" In-Reply-To: Content-Disposition: inline X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:62725 Archived-At: On 11/24/06, Eli Zaretskii wrote: > There's one other option: write a short C program that will run during > the build and extract the version string from version.el, and supply > that program as part of the Emacs distribution (in the nt/ > subdirectory). > > On balance, I think this is the best alternative. That's trivial to do, but I don't understand why you don't favor just hardcoding the version into nt/configure.bat or lib-src/Makefile.w32-in and modifying admin/admin.el to update it... That's what we currently do with nt/emacs.rc, man/emacs.texi, lispref/elisp.texi and other files. And the rationale is the same: for each given release it is a constant, it won't change during compilation. There's no much point in building a program just to set that constant. /L/e/k/t/u