From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Utkarsh Singh Newsgroups: gmane.emacs.bugs Subject: bug#46301: 28.0.50; cc-mode: add support for c++ lambda expression Date: Wed, 24 Feb 2021 09:37:08 +0530 Message-ID: <87y2fe2jo3.fsf@gmail.com> References: <87czxfx2b9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16628"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46301@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 24 05:06:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lElRB-0004DU-Sh for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Feb 2021 05:06:09 +0100 Original-Received: from localhost ([::1]:36230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lElRA-0003uB-Kg for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 23 Feb 2021 23:06:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lElR4-0003tp-5i for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2021 23:06:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49712) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lElR3-0003Qp-Tf for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2021 23:06:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lElR3-0002MP-NE for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2021 23:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Utkarsh Singh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Feb 2021 04:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46301 X-GNU-PR-Package: emacs Original-Received: via spool by 46301-submit@debbugs.gnu.org id=B46301.16141395229017 (code B ref 46301); Wed, 24 Feb 2021 04:06:01 +0000 Original-Received: (at 46301) by debbugs.gnu.org; 24 Feb 2021 04:05:22 +0000 Original-Received: from localhost ([127.0.0.1]:33025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lElQP-0002LN-Ue for submit@debbugs.gnu.org; Tue, 23 Feb 2021 23:05:22 -0500 Original-Received: from mail-pl1-f174.google.com ([209.85.214.174]:32864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lElQO-0002L7-2j for 46301@debbugs.gnu.org; Tue, 23 Feb 2021 23:05:20 -0500 Original-Received: by mail-pl1-f174.google.com with SMTP id d16so424786plg.0 for <46301@debbugs.gnu.org>; Tue, 23 Feb 2021 20:05:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:cc:date:message-id :mime-version; bh=4xHX6KkLNjEITnOmeZUZKYklM5vzpxXOQdAaTo2dT60=; b=B/j3KS3UgMfM9xHCgVtsAF4WW9pt0x3ps3oj3XFDidm2JGOemRF4IYSKc47vd7THxC /FUCScgrxaLuMWlcp0yywJRNz5IWBRMJ06vbapfXuTVWt4cMWRcNGc1BlxZKjGMnotd9 dUpUUOQKlUDH7KDq1N1da4eZ0XfeZQZFHaeGyyrsNcPrx9J7Yw4YEgUZsydZ3848Hu6z qq56gXInUU1f/JHn22Bwwo8lt51gsmfcxb/1sXzSQQYxSqsuz1/kA9b785lGO5xVb8rb jcysV6G5ieAGaLqNQJ+CSd1D64GYqkcByrR7dc8x/nepT/CvxY9bhtpBO3CvO530lnQa XASA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:cc:date :message-id:mime-version; bh=4xHX6KkLNjEITnOmeZUZKYklM5vzpxXOQdAaTo2dT60=; b=OIlmamNxZBZERUCfEdzgxOWl+sD9EkSoPJ/aDvGzRmEn0uEyaYHan/QfwPSpW7Km3T LjrWqyHqpbTQEF02qymSNS7YG/l5UtUCgxZwuDtU52djoYJx9nvq+WMBe501hmTS1h8s MIkxV5p4HciMCyemxkK+SiH8QMtgNYrAz6qRGk4kkbYD7qMkls3qmMPMKo15cyzRCCK3 3fnGR3ZgidOqilu3JY4r8S6L/YO5H9GWthhLVNKt24RNH+97pDE/ceq1Hnz2MO7uqRZv uGohMSuu/TcQO//eG/QGm1hh9JealWh4D5oXrpPCMCcmAdC2GlOlbLPQe7B/Vr2mraZ6 NLEw== X-Gm-Message-State: AOAM531knH6jgOHQ+sh3bs5O+O8qvyuS2iDhUsPpiOiLuUTSxIGwVwll CQ6CXTMSbjZQWg062LNWCIu5nzi+qA2MLw== X-Google-Smtp-Source: ABdhPJza8v3D8QhNDbT+HvdA0DEKGyL6nTt+gyLGdTOEFRib3GtkwRBVkI9dIKuWistV0HI7YaxEow== X-Received: by 2002:a17:90a:d492:: with SMTP id s18mr2236268pju.37.1614139514182; Tue, 23 Feb 2021 20:05:14 -0800 (PST) Original-Received: from localhost ([103.77.0.122]) by smtp.gmail.com with ESMTPSA id 190sm480510pgh.81.2021.02.23.20.05.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Feb 2021 20:05:13 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:200701 Archived-At: Alan Mackenzie 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