From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Error in C++ mode with Emacs 27.0.90 Date: Sun, 29 Mar 2020 01:18:13 +0200 Message-ID: <3d764ea5-0d60-1070-0d8a-f9820d013033@yandex.ru> References: <1385091004.1458082.1585083014184@mail1.libero.it> <2124649786.1598258.1585324562989@mail1.libero.it> <20200328151944.GF7449@ACM> <56971920.1649844.1585416890173@mail1.libero.it> <20200328201057.GH7449@ACM> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="91634"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 Cc: emacs-devel@gnu.org To: Alan Mackenzie , Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 29 00:18:50 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 1jIKj4-000Nl1-6y for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Mar 2020 00:18:50 +0100 Original-Received: from localhost ([::1]:60782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIKj3-0002MS-8s for ged-emacs-devel@m.gmane-mx.org; Sat, 28 Mar 2020 19:18:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42829) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIKiY-0001wf-Jj for emacs-devel@gnu.org; Sat, 28 Mar 2020 19:18:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIKiX-0006V3-JE for emacs-devel@gnu.org; Sat, 28 Mar 2020 19:18:18 -0400 Original-Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:34155) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jIKiX-0006UQ-9h for emacs-devel@gnu.org; Sat, 28 Mar 2020 19:18:17 -0400 Original-Received: by mail-wr1-x42f.google.com with SMTP id 65so16484588wrl.1 for ; Sat, 28 Mar 2020 16:18:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=wRWhw31YGSOrlQ9YNKTNAlXtw95D9ld1YpfTh28tInQ=; b=QRL3GmB4AnUrpO+6pSykSVUlEzUO2burZgdAX0+rEBBOGJzaBDfcVChBNbT+hGlR7D gv9oOAv1PtwHHjAot+6ucDz5XPojnIVOLYX5iX3CERPgKuPRp8pUxd+pqXzr/HakCxnW tccIVJw9pMQyFcu+VXP9mOBDOaleluEMGT8iyQdjjckvDUrOB8suJQofgufA58msCxwJ 9VEq3A+eHHjKB9V30tHGYOR6dSsqwcrpu5a/iCBxxlmu9wkOnRX7b8HTubggizuwgbp4 +Bp2FMXe7kwEBqSbX/QB/bxmPodtKIV+ltVDgIFRve3ITU1n/i6Co+EnIhNWlhqcQwH1 NhUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=wRWhw31YGSOrlQ9YNKTNAlXtw95D9ld1YpfTh28tInQ=; b=UClCQFMv7s+YuUOgj3FoUegArw6dC0RprZhdFWybDIzBKjekMCKh035VDiMIhW5wBv jo85dSMCrAektU8L39qfwRU91OlbaprT5gwb8hW1jhj4Ms2XsJ+W4fF4aNgQbe5hTtHK ZXhmq/f+LPoTmR7cU5ojyay/PukIrJvROW5+Rx/AOwc6P9LjbCwI0aHQtmMW/qbA9da+ 73ykI+wJ9Bwix2PjhB890YcBn+dFMKDBN7obU1TE8GjOuFfO4OAV+HIOUvKuHIC2S7xp bMEIuB89Hl5CguSyIRNHJrQqCtimTK2XoqEGX9Tfka2S1iO95jMutX3CxeLWIbr8Rppd EI4g== X-Gm-Message-State: ANhLgQ0tIsGk8tLgJb14UC1B3AEBltx24PHDA2YJJ5jo+XDwaHHb+N5M gz7SidM50nnuTYDWrkax1paQfHZD X-Google-Smtp-Source: ADFU+vs8CsCAfnEHGeQDJohE63P623HkWEr1kAVIMXTFz1uJbctKABzVvaNnk6/Hsbyq+AyC15sokA== X-Received: by 2002:a5d:67cb:: with SMTP id n11mr6999008wrw.104.1585437496012; Sat, 28 Mar 2020 16:18:16 -0700 (PDT) Original-Received: from [192.168.0.2] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id t21sm14032416wmt.43.2020.03.28.16.18.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 28 Mar 2020 16:18:15 -0700 (PDT) In-Reply-To: <20200328201057.GH7449@ACM> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42f 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:245914 Archived-At: Hi Alan, On 28.03.2020 22:10, Alan Mackenzie wrote: > I think the following patch fixes the trouble. Please try it out and > report on this list how well it works I wonder if we could rewrite the related code such as not to depend on whether a list has one element or several. That sounds ugly. Though the change would likely take a fair amount of rework. In any case, imenu--create-keymap is also called from imenu--mouse-menu, which probably need the same kind of fix.