* FORWARD-SEXP on foo'bar
@ 2007-08-26 13:15 Tobias C. Rittweiler
2007-08-26 22:46 ` Richard Stallman
0 siblings, 1 reply; 2+ messages in thread
From: Tobias C. Rittweiler @ 2007-08-26 13:15 UTC (permalink / raw)
To: emacs-devel
Hi,
FORWARD-SEXP (or actually, SCAN-SEXPS underneath) moves POINT
in "foo'bar" to the end of BAR.
`(info "(Elisp)Parsing Expressions")' [from 22.0.91.1] says:
Basically, a sexp is either a balanced parenthetical grouping, a
string, or a symbol name (a sequence of characters whose syntax is
either word constituent or symbol constituent). However, _characters
whose syntax is expression prefix are treated as part of the sexp if
they appear next to it._ (Emphasis mine.)
I can see how this is supposed to deal with cases where the quote
character prefixes a symbol, so that you move to the end of the symbol
in "'bar". But what about the above case? Is this intentional?
-T.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: FORWARD-SEXP on foo'bar
2007-08-26 13:15 FORWARD-SEXP on foo'bar Tobias C. Rittweiler
@ 2007-08-26 22:46 ` Richard Stallman
0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2007-08-26 22:46 UTC (permalink / raw)
To: Tobias C. Rittweiler; +Cc: emacs-devel
FORWARD-SEXP (or actually, SCAN-SEXPS underneath) moves POINT
in "foo'bar" to the end of BAR.
It is an undesirable result, but given the limitations of the
syntax.c functions, it is the best we can get.
Since it is not clean to write foo'bar without a space,
in practice this is not a problem for cleanly formatted Lisp code.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-26 22:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-26 13:15 FORWARD-SEXP on foo'bar Tobias C. Rittweiler
2007-08-26 22:46 ` Richard Stallman
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.