GNU bug report logs -
#46301
28.0.50; cc-mode: add support for c++ lambda expression
Previous Next
Reported by: Utkarsh Singh <utkarsh190601 <at> gmail.com>
Date: Thu, 4 Feb 2021 18:28:02 UTC
Severity: normal
Found in version 28.0.50
Done: Alan Mackenzie <acm <at> muc.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Alan Mackenzie <acm <at> 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
This bug report was last modified 4 years and 133 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.