all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'waterloo'" <waterloo2005@gmail.com>, <help-gnu-emacs@gnu.org>,
	<anselm.helbig+news2009@googlemail.com>
Subject: RE: I can not understant a paragraph in Emacs Lisp Reference.
Date: Sat, 11 Jul 2009 08:05:35 -0700	[thread overview]
Message-ID: <A538ECB9063C4E5696233B6959CB4B58@us.oracle.com> (raw)
In-Reply-To: <907065090907110746u31e76c5ahab17f72f5ead9a5c@mail.gmail.com>

>>     `[^\]' (`"[^\\]"' for Lisp string syntax)

>> `[^\]'  or `"[^\\]"' , which is right ?
>> what is Lisp string syntax for ?

> I try with re-builder ,  find that `"[^\\]"' is corrct .
> `"[^\]"' can not find anything .

Lisp string syntax is the syntax used in Lisp code when you write a literal
string (constant). The Lisp reader (part of the Lisp interpreter) reads the
string syntax you enter and constructs a string constant accordingly.

In Lisp string syntax, you need to double each backslash that you want in the
string. So "\\" is Lisp string syntax for the string that has one character, a
backslash. This doubling is needed because Lisp string syntax uses the backslash
for special escape sequences: for example, \" represents a double-quote
character.

See the Elisp manual, node `Syntax for Strings'.





  reply	other threads:[~2009-07-11 15:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-11 14:46 I can not understant a paragraph in Emacs Lisp Reference waterloo
2009-07-11 15:05 ` Drew Adams [this message]
2009-07-11 15:10   ` waterloo
     [not found] <mailman.2289.1247323589.2239.help-gnu-emacs@gnu.org>
2009-07-11 14:55 ` Teemu Likonen
     [not found] <mailman.2276.1247310683.2239.help-gnu-emacs@gnu.org>
2009-07-11 12:27 ` Anselm Helbig
  -- strict thread matches above, loose matches on Subject: below --
2009-07-11 11:11 waterloo

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=A538ECB9063C4E5696233B6959CB4B58@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=anselm.helbig+news2009@googlemail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=waterloo2005@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.
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.