From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: next emacs version? Date: Fri, 19 Mar 2010 10:29:40 -0700 Message-ID: References: <56D10E2523764AC98D99CEBC55DBAD93@us.oracle.com> <83iq8sigyq.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1269019915 30735 80.91.229.12 (19 Mar 2010 17:31:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 19 Mar 2010 17:31:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'Eli Zaretskii'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 19 18:31:50 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nsg33-0002q3-9N for ged-emacs-devel@m.gmane.org; Fri, 19 Mar 2010 18:31:49 +0100 Original-Received: from localhost ([127.0.0.1]:39955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nsg32-0008An-Lc for ged-emacs-devel@m.gmane.org; Fri, 19 Mar 2010 13:31:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nsg2w-000894-7n for emacs-devel@gnu.org; Fri, 19 Mar 2010 13:31:42 -0400 Original-Received: from [140.186.70.92] (port=53100 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nsg2u-00086e-J9 for emacs-devel@gnu.org; Fri, 19 Mar 2010 13:31:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nsg2t-0005ii-00 for emacs-devel@gnu.org; Fri, 19 Mar 2010 13:31:40 -0400 Original-Received: from rcsinet12.oracle.com ([148.87.113.124]:43595) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nsg2s-0005fN-RK; Fri, 19 Mar 2010 13:31:38 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet12.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o2JHV5Q3028990 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 19 Mar 2010 17:31:11 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o2JF6o9I014557; Fri, 19 Mar 2010 17:31:00 GMT Original-Received: from abhmt015.oracle.com by acsmt353.oracle.com with ESMTP id 100973231269019782; Fri, 19 Mar 2010 10:29:42 -0700 Original-Received: from dradamslap1 (/24.5.179.75) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 19 Mar 2010 10:29:41 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <83iq8sigyq.fsf@gnu.org> Thread-Index: AcrHZ0n3MKy+SFIjQtS/DeuyJv9WEQAH6miA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.4BA3B4D5.019A:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:122293 Archived-At: > > What will the next Emacs version be? > > 23.2 Confirms what I thought. > > 24.0.50.1 > > But I thought the next release would be Emacs 23.2, not 24. > > That's not a contradiction. Emacs 23.2 will be delivered from a > branch, not from the trunk. Version 24.0.50 is from the development > trunk. Also confirms what I thought. Thanks. > > What is the proper test (or a reasonable test) to use in the > > code, for this change? It's OK if I don't support the change > > until the release is out. It's the test for the > > official release I'm most interested in. (But I'm also > > interested in advice about testing against an in-development version.) > > If you want to discern v23.x from v24.x, emacs-major-version is the > first thing I'd try. I said I want to discern this code change, which will be made by Emacs Dev to 23.2 (probably; it is made now in 24.0.50.1). So `emacs-major-version' is not the way to check that. In the past, I've checked `emacs-major-version' and `emacs-minor-version' together, or I've checked for the change using string-match with `emacs-version'. I was wondering if there is a recommendation here. And I was wondering if there isn't a simple check that will match anything more recent than the release 23.1. That is, including the dev version 24.0.50.1 and the next release, 23.2. That's a typical use case for me: Emacs Dev has changed something after the last release and I expect that the change will remain in place for the new release. Yes, obviously, if the change is in fact removed before the new release then my test will no longer be accurate. But that's the minority of such cases, in my experience, and I can live with that maintenance problem. Obviously, if there is a more pertinent test such as a new variable or function, I use that instead. But this example is pretty typical of the problem. The value of a regexp variable has changed, and that changes the behavior of the code. I need to test which regexp value is in use, the old one or the new one. FWIW, the regexp in question, `directory-listing-before-filename-regexp', is among the hairiest I've come across (have a look - quite amusing), and I don't think it's a good idea to try to test against that value. I see no alternative but to test the Emacs version. (This affects Dired font-locking. The new value of the regexp adds a level of group nesting.)