From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: accept more version names in file-name-sans-versions Date: Fri, 21 Sep 2007 19:14:21 -0700 Message-ID: <200709220214.l8M2ELRP010769@oogie-boogie.ics.uci.edu> References: <200709200114.l8K1Ev2m009887@oogie-boogie.ics.uci.edu> <87zlzh1x5t.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1190427407 8065 80.91.229.12 (22 Sep 2007 02:16:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 22 Sep 2007 02:16:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 22 04:16:45 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 1IYuY0-0003oJ-9p for ged-emacs-devel@m.gmane.org; Sat, 22 Sep 2007 04:16:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IYuXx-00084P-Qe for ged-emacs-devel@m.gmane.org; Fri, 21 Sep 2007 22:16:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IYuXt-00082X-U3 for emacs-devel@gnu.org; Fri, 21 Sep 2007 22:16:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IYuXs-000817-Cl for emacs-devel@gnu.org; Fri, 21 Sep 2007 22:16:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IYuXs-00080w-5B for emacs-devel@gnu.org; Fri, 21 Sep 2007 22:16:36 -0400 Original-Received: from oogie-boogie.ics.uci.edu ([128.195.1.41]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IYuXr-0002T4-Nk for emacs-devel@gnu.org; Fri, 21 Sep 2007 22:16:36 -0400 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by oogie-boogie.ics.uci.edu (8.13.6/8.13.6) with ESMTP id l8M2ELRP010769; Fri, 21 Sep 2007 19:14:22 -0700 (PDT) In-Reply-To: <87zlzh1x5t.fsf@jurta.org> (Juri Linkov's message of "Thu\, 20 Sep 2007 11\:52\:30 +0300") Original-Lines: 17 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-Detected-Kernel: Solaris 9 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:79480 Archived-At: Juri Linkov writes: > > For a file file.c managed by git doing > > C-u C-x v = 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 revision > > names matching ".~[0-9.]+~", so .~master~ does not match. > > > > Any reason not to add a-z to that regexp? > > 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.