unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: "Samuel Wales" <samologist@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Regexps
Date: Fri, 02 Jan 2009 12:19:54 +0200	[thread overview]
Message-ID: <87iqoy57sl.fsf_-_@iki.fi> (raw)
In-Reply-To: <20524da70901011418k6fbcd788mb87dfa5bec2d4bfe@mail.gmail.com> (Samuel Wales's message of "Thu\, 1 Jan 2009 15\:18\:58 -0700")

Samuel Wales (2009-01-01 15:18 -0700) wrote:

> On Thu, Jan 1, 2009 at 07:16, Teemu Likonen <tlikonen@iki.fi> wrote:
>>    (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
>
> Maybe without the \ \ ' ?  Or is that a special thing?

The \' atom matches with zero-width at the end of string or end of
buffer. As you know $ is a zero-width atom that matches at the end of
line. In theory a filename may contain newlines (in Linux filesystems at
least) and in such situations the $ atom wouldn't necessarily match the
end of the whole filename string.




      parent reply	other threads:[~2009-01-02 10:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-01 13:34 org-mode not recognized as major mode Henri Fischer
2009-01-01 14:16 ` Teemu Likonen
2009-01-01 22:18   ` Samuel Wales
2009-01-01 22:23     ` Samuel Wales
2009-01-02 10:19     ` Teemu Likonen [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87iqoy57sl.fsf_-_@iki.fi \
    --to=tlikonen@iki.fi \
    --cc=help-gnu-emacs@gnu.org \
    --cc=samologist@gmail.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).