From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Felician Nemeth Newsgroups: gmane.emacs.bugs Subject: bug#69657: Missing imenu entries with eglot Date: Fri, 08 Mar 2024 22:44:19 +0100 Message-ID: <87a5n8s8jw.fsf@betli.tmit.bme.hu> References: <87frx0ze5n.fsf@mailbox.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33596"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Cc: 69657@debbugs.gnu.org To: Sebastian Poeplau Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 08 22:46:48 2024 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 1rii3D-0008c0-Od for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Mar 2024 22:46:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rii2w-00066G-O1; Fri, 08 Mar 2024 16:46:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rii2w-000667-7G for bug-gnu-emacs@gnu.org; Fri, 08 Mar 2024 16:46:30 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rii2v-0000hP-VE for bug-gnu-emacs@gnu.org; Fri, 08 Mar 2024 16:46:29 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rii3S-0002da-5b for bug-gnu-emacs@gnu.org; Fri, 08 Mar 2024 16:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Felician Nemeth Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Mar 2024 21:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69657 X-GNU-PR-Package: emacs Original-Received: via spool by 69657-submit@debbugs.gnu.org id=B69657.170993436310055 (code B ref 69657); Fri, 08 Mar 2024 21:47:02 +0000 Original-Received: (at 69657) by debbugs.gnu.org; 8 Mar 2024 21:46:03 +0000 Original-Received: from localhost ([127.0.0.1]:59808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rii2V-0002c5-2K for submit@debbugs.gnu.org; Fri, 08 Mar 2024 16:46:03 -0500 Original-Received: from mail-lj1-f179.google.com ([209.85.208.179]:56713) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rii2S-0002ba-MC for 69657@debbugs.gnu.org; Fri, 08 Mar 2024 16:46:01 -0500 Original-Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-2d27184197cso31457841fa.1 for <69657@debbugs.gnu.org>; Fri, 08 Mar 2024 13:45:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709934262; x=1710539062; darn=debbugs.gnu.org; h=mime-version:face:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=YJ5xQn4LUGH8+WDU1Qu37CehJJ6XW/CQmyQdxu1xjk8=; b=cvmZs5zzYpONdDA09BR5r6ohJ1s4clNNpmT/fJLLfKboqPL31jRFYl4RXqcKFvwJtD Vx30L2iu4wJa0qxpuaSqw1FSZGxOAiCbUGRI6/UARBae1LIS4lMvFot/d+n+BwwNnSCE RXZ3IjGXVBq8UPATgBO5JYyk+xPcFA6nUSN9MhbKWKjVjDfM3xRd63P+NrDDLBMZf9u4 lD3J+/08+A21F926ookUBouaiksO2pIox7OIP0Xr1q71pen7Z380UaSrp2Xi31LAXKzl R7s3vGSnWXGSc3ul1ptgXpU17/BwiSUn2jDLs72OGqA0dvQbDjZK5+Vx7a6wluux+yhT ZsJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709934262; x=1710539062; h=mime-version:face:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=YJ5xQn4LUGH8+WDU1Qu37CehJJ6XW/CQmyQdxu1xjk8=; b=Jf0jz9BHcGuaGTkVmnZxMpN5AKvjPvabu15/JEHGxxTOAkShkdKU2TIo0H5jJkZeeu VtF05j6GNkgzK+1pe3oe+FXhKfaVobdL5FYjeHWWwLY/oVo1Ge58+woyqKdclVbdUINm xjc30dTfUFQB+/lBwq/hwTQN79eAafL9D+Xq9BcKckzXRZTDdSHhAKt8SAPRziJM+fCS oBq//GtiCtVbtLDrKl2we1fzfyWDdKTc2YsxSPsXG+Ugn1vO6f2eqZxOQ0RiQopZbVDw I963u2erWjp9n13Xy3FTcuI0KDV3tBDv2VJVavA/DTbVUN0gaaSvTzYc5jHVEEM+Rq8b tpNA== X-Gm-Message-State: AOJu0YyKcQT57WKHSmOtMQGV/HEmajKHwO5NkBFEZofdkZJpTVlXn7XA bwCdFNIa94G1q5HyG6AodgiXUTFVapZTIgeFaImXsJL8V786y5VpShCqveRO X-Google-Smtp-Source: AGHT+IEoJeAnl8uFEbLAIFemnlzwCvb5ngxKQ0wW9mPE1vPbaH5WSjJtC4AzvkTzr4PstyFeuhiF3w== X-Received: by 2002:a2e:9357:0:b0:2d2:a2f5:5970 with SMTP id m23-20020a2e9357000000b002d2a2f55970mr318871ljh.27.1709934261272; Fri, 08 Mar 2024 13:44:21 -0800 (PST) Original-Received: from betli.gmail.com (catv-213-222-160-137.catv.fixed.vodafone.hu. [213.222.160.137]) by smtp.gmail.com with ESMTPSA id x1-20020a056402414100b005683b6d8809sm66832eda.19.2024.03.08.13.44.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 13:44:20 -0800 (PST) In-Reply-To: <87frx0ze5n.fsf@mailbox.org> (Sebastian Poeplau via's message of "Fri, 08 Mar 2024 21:01:24 +0100") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEWOdXElERN7LDLZs6/l 0dDQq6TepMcqAAACW0lEQVQ4jWWSzY7bMAyEaSm6mypylxjkroTRvUW8d9lavf+r7NDOZotWQHzg lyGHP0Sn5ed9qKrLWWIWos9/QJWIeCSywPNTd/AE0LtwFj7A+3WT5PwfeBrQKcsBnkfwVcNySWQr 3i34XN6gRNgis/v4uwSKHCD9lPitB0Aq9BHfHX4cgsI7cJJfLdZg/4bbCzoRmkD9MsagQSBDedZi CgNxkVSJmSOStTBUBKkywEnEoZzbwWj+ACiVJkF6pOpak2PMCqkMYDpaw+gatLR8atMOrB3JGzmm 3rSQo+tkxU+UAbhQSgtslULhsXKk6+IyQ1QTzeQB0MzjlpkCEUCeUdviWrwBcxVqpZjP+v0MYPA0 aq2rvIEZe4GRM0v+9QIB03rsABVSk5y+Mz3LSzExtJLlCCO6dV1uzDQFTBad+gO0TqqL9XE8x4ek +orvYiMJgzC8e+r6TqaPaK6QyqVNvoHtsRrooQ6tTi4vgaSkd8wIikodB3B0iIk58avsDdYNajpS bSKJ+mQnipGszB6zW4lGgsOkKHE2RWVcBpwhaIv3BYIAu3WsnC7YYKLRchp6w8fRGZIWiZuFsVai 7gbcUcJEhiDZ3K1+uzZvBlfaEO8oH4MLu6/hrKVM7QpQcIXJFuC1XjfbfKRxNslk94l9cYcEihV2 HWyNDQAXaLsvnrSyp7HaQhrAn13V6/XW11nh0XINBOEAV+tHK4EvAGNGvEwc0eZw8Vyr56imYEsV sOW9jxm/yb9AH1ufqGMviIK7A0Tc/723oM3tJ4HTOu9gDr3ftbdkxfdjsUv5AqWKwyfCYo5WAAAA AElFTkSuQmCC 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:281275 Archived-At: > 1. Put this code in a C++ source file, e.g., test.cpp: > > class Foo { > void bar() {} > }; > > 2. Start eglot with clangd. > 3. Invoke imenu; there will be a single entry "bar", nested under "Foo". > In particular, there is no entry that lets you jump to Foo. How do you invoke imenu? If I type M-x imenu-add-menubar-index RET, then I cannot select "Foo" as you wrote above. However, if I apply the patch, the menu looks exactly the same. On the other hand, the patch seems to ruin breadcrumb-mode: putting the point after "{}", the breadcrumb header line shows: "dir/test.cpp: Class > Foo" instead of the original "dir/test.cpp: Class > Foo > bar". $ clangd --version Debian clangd version 14.0.6 Features: linux+grpc