all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Reuben Thomas <rrt@sc3d.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 18205@debbugs.gnu.org
Subject: bug#18205: Obsolete patterns in auto-mode-alist
Date: Wed, 6 Aug 2014 23:05:33 +0100	[thread overview]
Message-ID: <CAOnWdoi34s2vc_wFZHOwEoNOUdrg+7W202reJbsM2KJ43hb5mg@mail.gmail.com> (raw)
In-Reply-To: <83y4v1o5un.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2032 bytes --]

On 6 August 2014 19:01, Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Wed, 6 Aug 2014 00:58:04 +0100
> > From: Reuben Thomas <rrt@sc3d.org>
> >
> >      ;; .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
>
> No, it matches .emacs with no leading directories at all.
>

I thought these patterns were matching absolute filenames, in which case I
am not sure what "no leading directories" could mean (at least on GNU).

> Given that VMS support has been removed, can we replace the first two
> > pattern lines with a line that uses the pattern used above:
> >
> > \\(/\\|\\`\\)
>
> No, that's not enough: it will miss "c:.emacs".
>
> IMO, it's OK to remove the VMS-specific characters (AFAIK, the first 2
> in the character class), but the rest should stay.
>

OK.


> > And can we then also remove the third line, as MS-DOS syntax is not
> > treated specially anywhere else in this default value?
>
> How can you remove it, and still support _emacs as a file whose
> normal-mode is emacs-lisp?  _emacs is supported on MS-DOS and
> MS-Windows.  (I don't understand what you meant by "not supported
> specially anywhere else".)
>

Sorry, I was unclear: I meant that there doesn't seem to be special support
for MS-DOS and Windows filenames elsewhere *in auto-mode-alist* (as I put
it above, "in this default value"). If "_emacs" is to be supported, surely
other similar patterns should be added for other dot files? (The same
applies to "c:.emacs"; but again, that's not an absolute filename, which
would be "c:\.emacs".)

-- 
http://rrt.sc3d.org

[-- Attachment #2: Type: text/html, Size: 3152 bytes --]

  reply	other threads:[~2014-08-06 22:05 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-05 23:58 bug#18205: Obsolete patterns in auto-mode-alist Reuben Thomas
2014-08-06 17:41 ` Stefan Monnier
2014-08-06 17:47   ` Reuben Thomas
2014-08-06 18:04     ` Eli Zaretskii
2014-08-07  0:14   ` Glenn Morris
2014-08-07  2:53     ` Eli Zaretskii
2014-08-07  9:39       ` Reuben Thomas
2014-08-07 10:07         ` Reuben Thomas
2014-08-07 10:18           ` Reuben Thomas
2014-08-07 18:24           ` Richard Stallman
2014-08-07 12:23         ` Stefan Monnier
2014-08-07 15:28           ` Eli Zaretskii
2014-08-07 19:12             ` Stefan Monnier
2014-08-07 19:40               ` Eli Zaretskii
2014-08-07 18:24       ` Richard Stallman
2014-08-07 19:34         ` Eli Zaretskii
2014-08-08  5:35           ` Richard Stallman
2014-08-08  6:06             ` Eli Zaretskii
2014-08-08 19:11               ` Richard Stallman
2014-08-08 20:09                 ` Eli Zaretskii
2014-08-08 20:54                 ` Reuben Thomas
2014-08-08 23:19               ` Reuben Thomas
2014-08-09  6:49                 ` Eli Zaretskii
2014-08-09  7:41                   ` Reuben Thomas
2014-08-09  7:44                   ` Reuben Thomas
2014-08-09  8:30                     ` Eli Zaretskii
2014-08-09  9:11                       ` Reuben Thomas
2014-08-09 11:53                         ` Eli Zaretskii
2014-08-09 11:57                           ` Reuben Thomas
2014-08-09 14:27                             ` Eli Zaretskii
2014-08-07  4:25   ` Richard Stallman
2014-08-06 18:01 ` Eli Zaretskii
2014-08-06 22:05   ` Reuben Thomas [this message]
2014-08-07  2:51     ` Eli Zaretskii
2014-08-07 12:02       ` Reuben Thomas
2014-08-07 15:27         ` Eli Zaretskii
2014-08-07 11:54     ` Reuben Thomas
2014-08-06 23:57 ` Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOnWdoi34s2vc_wFZHOwEoNOUdrg+7W202reJbsM2KJ43hb5mg@mail.gmail.com \
    --to=rrt@sc3d.org \
    --cc=18205@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.