all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Artur Malabarba <bruce.connor.am@gmail.com>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Why is ,. (comma-dot) treated specially?
Date: Wed, 21 Jan 2015 21:58:20 -0200	[thread overview]
Message-ID: <CAAdUY-JS1NPUWXrBakPd-8Jr4sB7ZZvMw5ud1rwBZweh+W=Ohg@mail.gmail.com> (raw)

I ran into a problem the other day where writing
    `(message ,.some-var)
unexpectedly split the .some-var symbol without evaluating anything:
    (message (\,\. some-var))

Meanwhile, adding a space after the comma:
    `(message , .some-var)
yielded the expected result:
    (message [value of .some-var])

Upon inspecting `lread.c', I see that indeed ",." is treated specially
(look for references to Qcomma_dot), similarly to how ",@" is special.
On the other hand, I can find no mention of this "comma-dot" anywhere
inside backquote.el.

Is this a feature that was planned but is not yet finished? Why is the
dot handled specially after a comma if we don't do anything with it?



Cheers



             reply	other threads:[~2015-01-21 23:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-21 23:58 Artur Malabarba [this message]
2015-01-22 13:54 ` Why is ,. (comma-dot) treated specially? Stefan Monnier

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAdUY-JS1NPUWXrBakPd-8Jr4sB7ZZvMw5ud1rwBZweh+W=Ohg@mail.gmail.com' \
    --to=bruce.connor.am@gmail.com \
    --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 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.