From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: New space char syntax
Date: 18 Feb 2003 00:48:03 +0100 [thread overview]
Message-ID: <5x3cmm79l8.fsf@kfs2.cua.dk> (raw)
In-Reply-To: <E18ks1Q-0004fS-00@fencepost.gnu.org>
Richard Stallman <rms@gnu.org> writes:
> 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:
>
> This complication makes the question tricky; neither alternative
> is entirely right.
>
> I can change it so that '(?a. ?b) is allowed,
> but then shouldn't '(?a.?b) be legal too?
>
> I don't think so. I think . should be allowed after the character
> constant if it is a dotted-pair dot, but not if it starts a symbol.
Fixed.
I changed the syntax to allow a character constant after a dotted-pair
dot, so actually '(?a.?b) does work. I don't see why it shouldn't be
so.
>
> I suggest to handle `;', `#', `[', and `?' as special
> characters when following a `.' just like `whitespace',
> `quote', `(' and `"' are today.
>
> Those cases are simply bugs. Thanks for identifying them.
Fixed.
Actually, I found that "," was always recognized after a dotted-pair dot,
even when not inside a backquote; I fixed that too.
>
> 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.
>
> It seems logical to handle them like singlequote.
Done.
>
> Also, if we fix that for symbols, the "`" and "," should be allowed
> after a character constant too, e.g.
>
> `(?a,xx)
> '(?a`(b,c))
>
> I agree.
Done.
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2003-02-17 23:48 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
2003-02-17 20:37 ` Richard Stallman
2003-02-17 23:48 ` Kim F. Storm [this message]
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=5x3cmm79l8.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).