From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: bug#8159: file-name-sans-version fails for some git files Date: Thu, 3 Mar 2011 15:26:05 +0000 Message-ID: References: <83zkpcx3ch.fsf@gnu.org> 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: dough.gmane.org 1299166829 25641 80.91.229.12 (3 Mar 2011 15:40:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Mar 2011 15:40:29 +0000 (UTC) Cc: 8159@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 03 16:40:25 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1PvAdc-0007j3-MC for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Mar 2011 16:40:24 +0100 Original-Received: from localhost ([127.0.0.1]:43730 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvAdb-0007Be-UJ for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Mar 2011 10:40:23 -0500 Original-Received: from [140.186.70.92] (port=42669 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvAdN-00077K-9G for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 10:40:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvAdF-0000FC-C5 for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 10:40:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvAdF-0000EX-8s for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 10:40:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PvAQf-0004Fe-LD; Thu, 03 Mar 2011 10:27:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Mar 2011 15:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8159 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8159-submit@debbugs.gnu.org id=B8159.129916600516320 (code B ref 8159); Thu, 03 Mar 2011 15:27:01 +0000 Original-Received: (at 8159) by debbugs.gnu.org; 3 Mar 2011 15:26:45 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvAQO-0004FB-Qn for submit@debbugs.gnu.org; Thu, 03 Mar 2011 10:26:45 -0500 Original-Received: from exprod7og122.obsmtp.com ([64.18.2.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1PvAQM-0004Ee-K3 for 8159@debbugs.gnu.org; Thu, 03 Mar 2011 10:26:43 -0500 Original-Received: from source ([209.85.161.54]) (using TLSv1) by exprod7ob122.postini.com ([64.18.6.12]) with SMTP ID DSNKTW+zHRYM1T+DivPIovlSnSAqjuOrfjqN@postini.com; Thu, 03 Mar 2011 07:26:27 PST Original-Received: by mail-fx0-f54.google.com with SMTP id 19so1356781fxm.13 for <8159@debbugs.gnu.org>; Thu, 03 Mar 2011 07:26:21 -0800 (PST) Original-Received: by 10.223.101.131 with SMTP id c3mr1659555fao.5.1299165965452; Thu, 03 Mar 2011 07:26:05 -0800 (PST) Original-Received: by 10.223.74.140 with HTTP; Thu, 3 Mar 2011 07:26:05 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 03 Mar 2011 10:27:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44579 Archived-At: On 3 March 2011 15:09, Andreas Schwab wrote: > Eli Zaretskii writes: > >> Anyway, your change is not limited to this particular situation, it is >> more general. =A0It will affect any file of that form, anywhere. > > file-name-version-regexp is already very general. =A0But one problem is > that by adding ~ it would match backups of backups. To be precise, it would match non-numbered backups of non-numbered backups of non-numbered backups, and non-numbered backups of numbered backups: the current pattern requires either a single ~, or two tildes with at least one other character between them. To fix this would require specifying that an internal tilde is preceded and followed by at least one character from the rest of the character class [-[:alnum:]:#@^._] (or, if you just want to cope with git notation, then preceded by one such character, and followed by a digit), i.e. something like \\(?:~\\|\\.~[-[:alnum:]:#@^._]+\\([-[:alnum:]:#@^._~]*[-[:alnum:]:#@^._]+\= \)?~\\) --=20 http://rrt.sc3d.org