all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Gulshan Singh <gsingh2011@gmail.com>
Cc: Alan Mackenzie <acm@muc.de>, 21409@debbugs.gnu.org
Subject: bug#21409: 24.5; Wrong syntactic information for two line statement in an arglist
Date: Thu, 03 Dec 2020 12:07:18 +0100	[thread overview]
Message-ID: <87eek7taft.fsf@gnus.org> (raw)
In-Reply-To: <CANEZYrdjDBEZNMHxY22Oj-967EesR_0DvZu29k+mbZV-M91cVA@mail.gmail.com> (Gulshan Singh's message of "Thu, 3 Sep 2015 22:50:50 -0700")

Gulshan Singh <gsingh2011@gmail.com> writes:

> In c-mode (and all derivatives), the following code has the wrong
> syntactic information (at least, in my opinion):
>
> foo(bar
>     .baz()
>     .qux());
>
> Putting point at `.baz()` and pressing C-c C-s shows it as an
> `arglist-cont-nonempty`, when I'd expect it to be a
> `statement-cont`. This causes the code to have the wrong indentation, as
> above I would like to have the continued statements to be indented one
> c-basic-offset, not aligned to the opening brace.

(This bug report unfortunately got no response at the time.)

I'm not sure how that should be indented, really -- the current
indentation looks reasonable to me, I think?

Perhaps Alan (added to the Cc's) has an opinion here.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2020-12-03 11:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-04  5:50 bug#21409: 24.5; Wrong syntactic information for two line statement in an arglist Gulshan Singh
2020-12-03 11:07 ` Lars Ingebrigtsen [this message]
2022-03-12  1:52   ` Gulshan Singh
2022-03-12 11:32     ` Alan Mackenzie
     [not found]     ` <YiyE4jK9zIVMK/SX@ACM>
2022-03-13 13:43       ` Alan Mackenzie
2022-04-09 21:43         ` Gulshan Singh
2022-04-23 14:23           ` Alan Mackenzie
2022-04-23 20:10           ` Alan Mackenzie

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=87eek7taft.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=21409@debbugs.gnu.org \
    --cc=acm@muc.de \
    --cc=gsingh2011@gmail.com \
    /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.