From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: New space char syntax
Date: 17 Feb 2003 11:59:58 +0100 [thread overview]
Message-ID: <5xn0kv895d.fsf@kfs2.cua.dk> (raw)
In-Reply-To: <E18kfZ5-0007Y6-00@fencepost.gnu.org>
Richard Stallman <rms@gnu.org> writes:
> Yes. Sloppy wording. I meant things like '(? . ?a)
>
> That case is also still valid.
Actually it isn't; I deliberately excluded `.' from the list of legal
symbols which may immediately follow a character constant, since it
is a legal symbol character, e.g:
'(.a bc. d) => (\.a bc\. d)
'(.?a) => (\.\?a)
'(a.?a) => (a\.\?a)
I can change it so that '(?a. ?b) is allowed,
but then shouldn't '(?a.?b) be legal too?
There's really no risk of confusion here (that syntax
was illegal before), so I think we should do it.
The parsing of the `.' token and lisp symbols is pretty obscure.
Consider these examples:
'(ab .; comment
de ) => (ab \. de)
'(ab . ; comment
de ) => (ab . de)
'(ab .#'cd) => (ab \. (function cd))
'(ab . #'cd) => (ab function cd)
'(ab .'cd) => (ab quote cd)
'(ab .(c d)) => (ab c d)
'(ab .[c d]) => (a b \. [c d])
'(ab . [c d]) => (a b . [c d])
'(ab ."xyz") => (ab . "xyz")
'(ab .?c) => (ab \.\?c)
'(ab . ?c) => (ab . 99)
I suggest to handle `;', `#', `[', and `?' as special
characters when following a `.' just like `whitespace',
`quote', `(' and `"' are today.
Finally, in a symbol, "`" and "," are not recognized as special
either, e.g.
'(a`b,c) => (a\`b\,c)
'(a`(b,c)) => (a\` (b\,c))
I think the last example shows that they should be recognized.
Also, if we fix that for symbols, the "`" and "," should be allowed
after a character constant too, e.g.
`(?a,xx)
'(?a`(b,c))
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2003-02-17 10:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-14 16:47 New space char syntax Kai Großjohann
2003-02-14 17:35 ` Juanma Barranquero
2003-02-14 20:36 ` Kai Großjohann
2003-02-14 23:59 ` Juanma Barranquero
2003-02-15 16:50 ` Kim F. Storm
2003-02-15 17:51 ` Kai Großjohann
2003-02-15 20:44 ` Juanma Barranquero
2003-02-17 7:19 ` Richard Stallman
2003-02-17 7:49 ` Juanma Barranquero
2003-02-17 20:37 ` Richard Stallman
2003-02-17 10:59 ` Kim F. Storm [this message]
2003-02-17 20:37 ` Richard Stallman
2003-02-17 23:48 ` Kim F. Storm
2003-02-15 19:10 ` Richard Stallman
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=5xn0kv895d.fsf@kfs2.cua.dk \
--to=storm@cua.dk \
--cc=emacs-devel@gnu.org \
/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 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).