From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.devel Subject: Re: Calling C++ hackers. Please try out the new handling of C++11 lambda functions in CC Mode. Date: Wed, 24 Aug 2016 20:27:58 +0100 Message-ID: References: <20160815122412.GA4515@acm.fritz.box> <1471643100.1410.3.camel@gmail.com> <20160820151955.GB2529@acm.fritz.box> <1471730790.1410.16.camel@gmail.com> <20160821162204.GB3813@acm.fritz.box> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1472066951 24568 195.159.176.226 (24 Aug 2016 19:29:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 24 Aug 2016 19:29:11 +0000 (UTC) Cc: Matthias Meulien , Emacs Development To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 24 21:29:07 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcdrG-00065q-Rw for ged-emacs-devel@m.gmane.org; Wed, 24 Aug 2016 21:29:06 +0200 Original-Received: from localhost ([::1]:53027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcdrD-0004wd-R1 for ged-emacs-devel@m.gmane.org; Wed, 24 Aug 2016 15:29:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcdqh-0004wX-Fo for emacs-devel@gnu.org; Wed, 24 Aug 2016 15:28:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcdqf-0000YI-F6 for emacs-devel@gnu.org; Wed, 24 Aug 2016 15:28:30 -0400 Original-Received: from mail-ua0-x234.google.com ([2607:f8b0:400c:c08::234]:35290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcdqf-0000Y3-Ad for emacs-devel@gnu.org; Wed, 24 Aug 2016 15:28:29 -0400 Original-Received: by mail-ua0-x234.google.com with SMTP id n59so46452924uan.2 for ; Wed, 24 Aug 2016 12:28:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=FNBj0v+wZlWVUORrGFZdncJGaOiVbWF13zCW/zItyH4=; b=Ouzc8LslRgycloPPXn9fTPprPonKCPI2XlXweJ1rWxSKlHHQ8icilKhqYU/w6m3DZZ FWSKAtaBBTIwuVeEk601lHNQv6q/vdMvIZefnkn5iKchE+fm2HGnYKFOzgWqwm1Up0ud daxwf37dp4EkOU/kQUnx68/snmQwUq/xOfGHRcZdWcvOVpVYvC6spW1ATo79M7e+d0NK tZeCl+w81AuiQq56yLQuXMzrk03lJvoIWgtNyeHnT4QwB/RzRB9tVDvtX3T00TUmHNQu W2qJMOn9v98+qmJYecFrySwpN5LpX5RKgxMv63y6L+kl5vWQdDp1bobcGAuKtaf2tKRe LSsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=FNBj0v+wZlWVUORrGFZdncJGaOiVbWF13zCW/zItyH4=; b=DoxuvZkljSlsA5E/2ksrCIWLZxreekWhJjj5k3t8n9s9Sb3dGEKTO2jG0xu/dgPyz+ kkGo+c84Qm23SwGlKK6JHKbVxlMUbyiX2K/abtstyNG8OQj7D+LETE7lmaKVmStoMixE jsp+s9TJIDjzxRfEIZr6Y04ZKKAloR8w4WCRmWpW2VN+NpWkz7Tmr2sGfoMeC1CcM6Ok 64JVb0lgZrFDe0A/4Y3uHhZGNn0LwfA3dr6u2Y9w8xv/AMtTODZXVzW8SBGt0IOQgt31 xbMBjwnfCtDfQDCjGDBCKstg/7JzCOXJRdonxWn8YGhCA1qbhAgnCcPz8BIXSc/CnO4V TB7A== X-Gm-Message-State: AE9vXwPNkl01UBhpCjvCuCPp5pH+/RbHim1VhiUNEreRpCLWA4448j0utjlRRhQPiZcTAJGKwqOKVrtxbpa8zQ== X-Received: by 10.176.2.141 with SMTP id 13mr2841552uah.7.1472066908686; Wed, 24 Aug 2016 12:28:28 -0700 (PDT) Original-Received: by 10.176.1.111 with HTTP; Wed, 24 Aug 2016 12:27:58 -0700 (PDT) In-Reply-To: <20160821162204.GB3813@acm.fritz.box> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c08::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:206784 Archived-At: Hi Alan, Thanks for this! I encountered a problem while trying to come up with an example so I could suggest a different default indentation style for lambda bodies: int main () { std::cout << ([] (int x) -> int { return 2 * x; } (10)) << std::endl; } Never mind the default indentation style, life's too short! But here is the problem I mentioned. I just pulled from master and recompiled and the bug is still present (as of your commit 799a8a3338389013e8a76a70f507664ccb09a14f). >From emacs -Q: C-x b x RET ; switch to a new buffer M-x c++-mode RET { } C-p ; insert a pair of braces and put point between them [ ; insert a left square bracket Emacs freezes. It can be woken up by holding down C-g for a few seconds, at which point the *Messages* buffer has this: Error during redisplay: (jit-lock-function 55) signaled (quit) Error during redisplay: (jit-lock-function 57) signaled (quit) Error during redisplay: (jit-lock-function 60) signaled (quit) Quit [7 times]