all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Andreas Schwab <schwab@linux-m68k.org>,
	Stefan Kangas <stefan@marxist.se>
Cc: 11314@debbugs.gnu.org
Subject: bug#11314: 24.1.50; Regression: incorrect Lisp indentation for `if' with `@@@@@@'
Date: Fri, 1 Nov 2019 14:23:54 -0700 (PDT)	[thread overview]
Message-ID: <5e0c13fe-fb7f-4837-ab59-89abc4798119@default> (raw)
In-Reply-To: <8736f72unz.fsf@igel.home>

> >> (if (alpha beta)
> >>     @@@@@@
> >>     bbbbbb
> >>
> >> Yet @@@@@@ is a perfectly good symbol/variable name etc.
> >> This regression was introduced in Emacs 22.
> >
> > I can reproduce this on current master.
> 
> That's because @ has the prefix syntax flag (for ,@).

That explains the implementation bug, I guess.

But there's no backquote or comma here.
And `@@@@@@' is just a normal symbol.

Just as we don't treat comma the same inside
and outside backquote (we raise an error for
the latter), ideally we shouldn't treat @ the
same inside and outside backquote (symbol
syntax for the latter).

And presumably the only uses of @ inside
backquote that should lead to different
indentation would only be when @ follows
comma.





      reply	other threads:[~2019-11-01 21:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-23  0:56 bug#11314: 24.1.50; Regression: incorrect Lisp indentation for `if' with `@@@@@@' Drew Adams
2012-04-24  0:58 ` Stefan Monnier
2012-04-24  1:21   ` Drew Adams
2012-09-17  0:02     ` Drew Adams
2019-11-01 19:59 ` Stefan Kangas
2019-11-01 20:44   ` Andreas Schwab
2019-11-01 21:23     ` Drew Adams [this message]

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=5e0c13fe-fb7f-4837-ab59-89abc4798119@default \
    --to=drew.adams@oracle.com \
    --cc=11314@debbugs.gnu.org \
    --cc=schwab@linux-m68k.org \
    --cc=stefan@marxist.se \
    /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.