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#18205: Obsolete patterns in auto-mode-alist Date: Wed, 6 Aug 2014 00:58:04 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3c652570e6f04ffeaa00d X-Trace: ger.gmane.org 1407283157 3742 80.91.229.3 (5 Aug 2014 23:59:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Aug 2014 23:59:17 +0000 (UTC) To: 18205@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 06 01:59:11 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XEodI-0008U8-In for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Aug 2014 01:59:08 +0200 Original-Received: from localhost ([::1]:34745 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEodI-0000g5-9q for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Aug 2014 19:59:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEodD-0000fz-HR for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 19:59:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEodC-0004UB-D9 for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 19:59:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52438) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEodC-0004U7-AF for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 19:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XEodC-0000Ou-0X for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 19:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Aug 2014 23:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18205 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.14072831001480 (code B ref -1); Tue, 05 Aug 2014 23:59:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Aug 2014 23:58:20 +0000 Original-Received: from localhost ([127.0.0.1]:59381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEocV-0000Nn-E8 for submit@debbugs.gnu.org; Tue, 05 Aug 2014 19:58:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53516) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEocT-0000NY-Fl for submit@debbugs.gnu.org; Tue, 05 Aug 2014 19:58:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEocN-0004Nv-2B for submit@debbugs.gnu.org; Tue, 05 Aug 2014 19:58:12 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40896) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEocM-0004Np-Vm for submit@debbugs.gnu.org; Tue, 05 Aug 2014 19:58:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55230) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEocL-0000bL-Tj for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 19:58:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEocK-0004Lm-MW for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 19:58:09 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEocK-0004LI-JT for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 19:58:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51147) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1XEocK-00064N-7v for bug-emacs@gnu.org; Tue, 05 Aug 2014 19:58:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEocI-0004IW-TH for bug-emacs@gnu.org; Tue, 05 Aug 2014 19:58:08 -0400 Original-Received: from mail-la0-x232.google.com ([2a00:1450:4010:c03::232]:46526) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEocI-0004Fd-IS for bug-emacs@gnu.org; Tue, 05 Aug 2014 19:58:06 -0400 Original-Received: by mail-la0-f50.google.com with SMTP id gf5so1328233lab.9 for ; Tue, 05 Aug 2014 16:58:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; h=mime-version:date:message-id:subject:from:to:content-type; bh=Zvcc185yCLv5njln3pF+UsIUsLBjxHrNt0LQ2tetBKw=; b=mVgPrQonL8skBDkuLHD0NiGXOllwA85lOMJ/Q+GT16BILrHByYXfKyiqYXeopGKn2x Io7LwWgwcprl7bwQFrV+7xU6T7OLtRMV6eWS/eDjQMjiYOwgp9CBuU1mLKZzMrkg3/6W lLZfcYJalDCj2Kr71QGfWTcq80u/37FtlNBxU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=Zvcc185yCLv5njln3pF+UsIUsLBjxHrNt0LQ2tetBKw=; b=Z8QgGcnXVjC5gHevagWqFn7uZlO3Qdrg0M/LmUZSGUTNIk7Rnne5qA2QXiEVKgFY1r S8mMyvlwozb85qBw0jxutoK/6/WoYnlbSpilfsiVFta3WwgVGIadF+OT3KGFYMD0WXLS ck/bYuwaNq4bpzkr55gWKHgwbTSdPS2Pnb3eplAJgBlHdJ2MX3dj+bv6IxGmGVug+3Hd NUXz4Y4IRvtqVw1lyaxNOUXE+JpBKpDPn72cO5EgNG6XdwZLQerO3+qn+y3FAQXlBpV3 4p12lgZ7AY9cbnV1Ds/BxPQjbMvLQtbu0YUsxfVYHJiTs7OrM6QkA8KRKgyjM4Z0Cuiv nz3w== X-Gm-Message-State: ALoCoQln039GJ9eQIQH51Tko9WxM9fayayjrLjmfOGvwd5gFjCVzxofokl+PtG6ZxTz6z7xG9M9M X-Received: by 10.112.235.199 with SMTP id uo7mr7398694lbc.50.1407283084323; Tue, 05 Aug 2014 16:58:04 -0700 (PDT) Original-Received: by 10.152.246.10 with HTTP; Tue, 5 Aug 2014 16:58:04 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:92163 Archived-At: --001a11c3c652570e6f04ffeaa00d Content-Type: text/plain; charset=UTF-8 The default value for auto-mode-alist currently contains the following: ;; .emacs or .gnus or .viper following a directory delimiter in ;; Unix, MSDOG or VMS syntax. ("[]>:/\\]\\..*\\(emacs\\|gnus\\|viper\\)\\'" . emacs-lisp-mode) ("\\`\\..*emacs\\'" . emacs-lisp-mode) ;; _emacs following a directory delimiter ;; in MsDos syntax ("[:/]_emacs\\'" . emacs-lisp-mode) There are two non-standard spellings: s/MSDOG/MS-DOS/ s/MsDos/MS-DOS/ Further, the second line looks like it will only match a .emacs in the root directory, presumably because the first line will not. Given that VMS support has been removed, can we replace the first two pattern lines with a line that uses the pattern used above: \\(/\\|\\`\\) to match either start of line or directory separator? And can we then also remove the third line, as MS-DOS syntax is not treated specially anywhere else in this default value? -- http://rrt.sc3d.org --001a11c3c652570e6f04ffeaa00d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
The default value for auto-mode-alist currently contains t= he following:

=C2=A0=C2=A0=C2=A0=C2=A0 ;; .emacs or .gnus or .v= iper following a directory delimiter in
=C2=A0=C2=A0=C2=A0=C2=A0 ;; Unix= , MSDOG or VMS syntax.
=C2=A0=C2=A0=C2=A0=C2=A0 ("[]>:/\\]\\..*\= \(emacs\\|gnus\\|viper\\)\\'" . emacs-lisp-mode)
=C2=A0=C2=A0=C2=A0=C2=A0 ("\\`\\..*emacs\\'" . emacs-lisp-mod= e)
=C2=A0=C2=A0=C2=A0=C2=A0 ;; _emacs following a directory delimiter=C2=A0=C2=A0=C2=A0=C2=A0 ;; in MsDos syntax
=C2=A0=C2=A0=C2=A0=C2=A0 (&= quot;[:/]_emacs\\'" . emacs-lisp-mode)

There are= two non-standard spellings:

s/MSDOG/MS-DOS/
s/MsDos/MS-DOS/
=
Further, the second line looks like it will only match a .em= acs in the root directory, presumably because the first line will not.

Given that VMS support has been removed, can we replace the first two p= attern lines with a line that uses the pattern used above:

\\(/\\|\\= `\\)

to match either start of line or directory separator= ? And can we then also remove the third line, as MS-DOS syntax is not treat= ed specially anywhere else in this default value?
--001a11c3c652570e6f04ffeaa00d--