bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Elisp manual, page "Parsing Expression". "Sexp"s are not defined


From: Alan Mackenzie
Subject: Elisp manual, page "Parsing Expression". "Sexp"s are not defined
Date: 15 Jun 2002 16:53:06 +0200
Date: Sat, 15 Jun 2002 14:03:13 +0000
User-agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686))

Elisp manual, v. 2.7 (as supplied with Emacs 21.1).  Page "Parsing
Expressions" in the syntax-table section.

There is no definition of "sexp" or "balanced expression" here.  (These
terms are defined in the Emacs manual's glossary).

In c-mode, with the fragment
aye = bee + see ;
scan-sexps treats "bee" and " + see" as sexps when scanning forwards, but
when scanning backwards, the sexps it finds are "see" and "bee +".  This
seems strange.  Presumably the syntax-table entry for '+' (it's
"punctuation") has a lot to do with this behaviour.

I believe that "sexp" and "balanced expression" should be defined here in
terms of syntax table entries.  This would enable elisp programmers to
predict the behaviour of the functions such as scan-sexps which are
defined on this info page.

-- 
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").




reply via email to

[Prev in Thread] Current Thread [Next in Thread]