From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: accept more version names in file-name-sans-versions Date: Sat, 22 Sep 2007 10:52:18 +0200 Message-ID: References: <200709200114.l8K1Ev2m009887@oogie-boogie.ics.uci.edu> <87zlzh1x5t.fsf@jurta.org> <200709220214.l8M2ELRP010769@oogie-boogie.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1190451158 26500 80.91.229.12 (22 Sep 2007 08:52:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 22 Sep 2007 08:52:38 +0000 (UTC) Cc: Juri Linkov , emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 22 10:52:33 2007 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.50) id 1IZ0j2-0006rG-5o for ged-emacs-devel@m.gmane.org; Sat, 22 Sep 2007 10:52:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZ0iz-00041R-VN for ged-emacs-devel@m.gmane.org; Sat, 22 Sep 2007 04:52:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IZ0iu-0003zz-PV for emacs-devel@gnu.org; Sat, 22 Sep 2007 04:52:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IZ0is-0003yV-D8 for emacs-devel@gnu.org; Sat, 22 Sep 2007 04:52:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZ0is-0003yA-4z for emacs-devel@gnu.org; Sat, 22 Sep 2007 04:52:22 -0400 Original-Received: from ns.suse.de ([195.135.220.2] helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IZ0ir-0003ke-NU for emacs-devel@gnu.org; Sat, 22 Sep 2007 04:52:21 -0400 Original-Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 5EE4815016; Sat, 22 Sep 2007 10:52:19 +0200 (CEST) X-Yow: Somewhere in Tenafly, New Jersey, a chiropractor is viewing ``Leave it to Beaver''! In-Reply-To: <200709220214.l8M2ELRP010769@oogie-boogie.ics.uci.edu> (Dan Nicolaescu's message of "Fri\, 21 Sep 2007 19\:14\:21 -0700") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) X-Detected-Kernel: Linux 2.4-2.6 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:79484 Archived-At: Dan Nicolaescu writes: > Juri Linkov writes: > > > > For a file file.c managed by git doing > > > C-u C-x v =3D master RET > > > > > > will create the buffer file.c.~master~ with the major-mode > > > fundamental-mode not c-mode. > > > > > > The reason is that file-name-sans-versions only looks for revisio= n > > > names matching ".~[0-9.]+~", so .~master~ does not match. > > > > > > Any reason not to add a-z to that regexp? > >=20 > > Then please add also "-" since often the revision name contains it, > > e.g. file.c.~multi-tty~ or file.c.~2007-09-20~ > > Good idea, I made the changes on the EMACS_22_BASE branch. Now if you are checking out revision EMACS_22_BASE it still does not work. :-) Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different."