From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: Error in C++ mode with Emacs 27.0.90 Date: Fri, 27 Mar 2020 16:56:02 +0100 (CET) Message-ID: <2124649786.1598258.1585324562989@mail1.libero.it> References: <1385091004.1458082.1585083014184@mail1.libero.it> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="85293"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 27 16:56:43 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jHrLf-000M50-32 for ged-emacs-devel@m.gmane-mx.org; Fri, 27 Mar 2020 16:56:43 +0100 Original-Received: from localhost ([::1]:43452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHrLe-0004od-6V for ged-emacs-devel@m.gmane-mx.org; Fri, 27 Mar 2020 11:56:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57098) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHrL5-00048H-SA for emacs-devel@gnu.org; Fri, 27 Mar 2020 11:56:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jHrL4-0003MC-BO for emacs-devel@gnu.org; Fri, 27 Mar 2020 11:56:07 -0400 Original-Received: from smtp-31-i2.italiaonline.it ([213.209.12.31]:53779 helo=libero.it) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jHrL4-0003C8-3M for emacs-devel@gnu.org; Fri, 27 Mar 2020 11:56:06 -0400 Original-Received: from oxapps-32-140.iol.local ([10.101.8.186]) by smtp-31.iol.local with ESMTPA id HrL0jq1yw2faeHrL0j4Yn5; Fri, 27 Mar 2020 16:56:03 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2014; t=1585324563; bh=/Prdi7mQt3+KxsUuPv8O+h2TviegSvRfTWOZCpRhA6U=; h=From; b=PAYtk9zOElSvpQTAJGQO6OJoz5JUU1yxd3ODHGgpuMupxPJ8VdC9JEUPuk9fytE3C +boSNI9m1KwreInGV8HdG7WUHwP3SU3nJj+ImfXrFHQ3rV8rUNI/wfdpSq96ExTWlB /Izm4Sbt4y+73tG+ErexMO9zPniUUCOPSbmXJrkkm6c1oMNZhau08aCWA8MGf++Bmn sfly4cuW/HM+rZ2WCo7/6V4uByTk66OFEdrcPGgNf7IF+ge0TprPltTTJAMC6JWufk +u5oI3LPpLDK/TXlkfKrlUmGgnFGJTAvTvU/ZlsyEDZH+l5XZR/a+ci2R6gzkMZBwX gxGKYKQMyy4QQ== X-CNFS-Analysis: v=2.3 cv=OPZZIhSB c=1 sm=1 tr=0 a=qkOSiYCk3bwuzbNQXz+RSQ==:117 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=4AzCvzHv44AA:10 a=IkcTkHD0fZMA:10 a=NYsujc5m4lEA:10 a=ZxSGunPXjynDCznXgb4A:9 a=QEXdDO2ut3YA:10 In-Reply-To: <1385091004.1458082.1585083014184@mail1.libero.it> X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.1-Rev25 X-Originating-IP: 79.55.229.200 X-Originating-Client: open-xchange-appsuite x-libjamsun: bKi1nLVRnuDSa1EK4kx0YYoxxEg20Le0 x-libjamv: alJ5UrXcatM= X-CMAE-Envelope: MS4wfIY4Ev8rmWqoiQybGPd/NNag3G6hl0UnwzHQtiit5+lw08EYWleB39zYj0/34kvda+4cBmPFZ6k6I+IHAGcvviO5JiHwuUhL7oCe4UJxfZISPVG4jTD/ 4/lYKU8UDQ2fNgWPr3dZObAIhNrDVk7MUgnLyQgHlDdDqo8XrxZYSMk18ZKeulml7bI3vL78CePAWw== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 213.209.12.31 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245842 Archived-At: > Il 24 marzo 2020 alle 21.50 Angelo Graziosi ha scritto: > > > I found an error with C++ mode which I can reproduce with this init.el: > > ------------------------------------------- > $ cat init.el > > ;; C/C++ modes > (defun my-c-mode () > "My customization for `c-mode' and `c++-mode'." > (interactive) > > ;; No indent for open bracket > (c-set-offset 'substatement-open 0) > > ;; Add index of func. to menu bar > (imenu-add-to-menubar "Functions") > ) > > ;; c++-mode > (add-hook 'c++-mode-hook 'my-c-mode) > > (setq imenu-auto-rescan t) > > ;; The default is 60000 > (setq imenu-auto-rescan-maxout 500000) > > ;; Show in which function is the cursor > (which-function-mode 1) > ------------------------------------------- > > (maybe it can be reduced...) and this test case: > > ----------------------------------- > $ cat foobar.cpp > int main() > { > return 0; > } > ----------------------------------- > > When I visit it with C-x C-f, I get this error in minibuffer: > > Error in menu-bar-update-hook (imenu-update-menubar): (wrong-type-argument sequencep #) > > The error disappears if I add a space before 'int main()', i.e. with ' int main()' > > I have seen that both on GNU/Linux and Windows builds of 27.0.90. > Both Emacs 27 branch and master are affected by this issue. > Ciao, > Angelo.