unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Utkarsh Singh <utkarsh190601@gmail.com>
To: Alan Mackenzie <acm@muc.de>
Cc: 46301@debbugs.gnu.org
Subject: bug#46301: 28.0.50; cc-mode: add support for c++ lambda expression
Date: Wed, 24 Feb 2021 09:37:08 +0530	[thread overview]
Message-ID: <87y2fe2jo3.fsf@gmail.com> (raw)
In-Reply-To: <YDVVQB4CQdpMyUrM@ACM>

Alan Mackenzie <acm@muc.de> writes:

> But from the end of that lambda, a further C-M-e takes point to the end
> of bubble_sort.
>
> Why do you think this is a bug?  The lambda form is a function, it is at
> the top level (i.e. not within braces), so why shouldn't C-M-e stop at
> its end?  That's a genuine question, by the way, not a rhetorical one.

I think there was some misunderstanding on my side as I was interpreting
c-end-of-defun as c-end-of-*named*-defun.  This means I was not
considering lambda as an unnamed function but just as a default
argument.

> If anything, the rather unsystematic behaviour of C-M-a near this lambda
> function is of more concern.  And there's the worry that this example
> will break other places where it's assumed that braces cannot occur in
> parameter lists.
>
> But of all the languages there are, trust C++ to be awkward.  ;-)

Yes, C++ can get really ugly sometimes.

The main moto behind my "feature request" was not solving the problem
logically but to be so called "contributor" of GNU Emacs.  Apology for
that.
-- 
Utkarsh Singh





  reply	other threads:[~2021-02-24  4:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-04 15:47 bug#46301: 28.0.50; cc-mode: add support for c++ lambda expression Utkarsh Singh
2021-02-23 19:19 ` Alan Mackenzie
2021-02-24  4:07   ` Utkarsh Singh [this message]
2021-02-25 20:51     ` Alan Mackenzie
2021-02-27 15:47       ` Utkarsh Singh
2021-03-01 19:34         ` 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

  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=87y2fe2jo3.fsf@gmail.com \
    --to=utkarsh190601@gmail.com \
    --cc=46301@debbugs.gnu.org \
    --cc=acm@muc.de \
    /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).