* Elisp manual, page "Parsing Expression". "Sexp"s are not defined
@ 2002-06-15 14:03 Alan Mackenzie
0 siblings, 0 replies; only message in thread
From: Alan Mackenzie @ 2002-06-15 14:03 UTC (permalink / raw)
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").
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-06-15 14:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-15 14:03 Elisp manual, page "Parsing Expression". "Sexp"s are not defined Alan Mackenzie
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).