From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#64682: [PATCH] eglot.el: Avoid premature bailout in eglot-imenu Date: Mon, 17 Jul 2023 14:38:37 +0100 Message-ID: References: <87mszuybrc.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29271"; mail-complaints-to="usenet@ciao.gmane.io" To: Brian Leung , 64682-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 17 15:39:38 2023 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 1qLORu-0007Pf-IR for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Jul 2023 15:39:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qLORO-0002GN-Gr; Mon, 17 Jul 2023 09:39:06 -0400 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 1qLORK-0002FZ-Ss for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2023 09:39:05 -0400 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 1qLORK-0007Td-L2 for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2023 09:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qLORK-0005b1-GB for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2023 09:39:02 -0400 Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Jul 2023 13:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 64682 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 64682@debbugs.gnu.org, joaotavora@gmail.com, leungbk@posteo.net Original-Received: via spool by 64682-done@debbugs.gnu.org id=D64682.168960113921498 (code D ref 64682); Mon, 17 Jul 2023 13:39:02 +0000 Original-Received: (at 64682-done) by debbugs.gnu.org; 17 Jul 2023 13:38:59 +0000 Original-Received: from localhost ([127.0.0.1]:49494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qLORG-0005ag-VB for submit@debbugs.gnu.org; Mon, 17 Jul 2023 09:38:59 -0400 Original-Received: from mail-oo1-xc34.google.com ([2607:f8b0:4864:20::c34]:56423) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qLORC-0005aQ-MF for 64682-done@debbugs.gnu.org; Mon, 17 Jul 2023 09:38:57 -0400 Original-Received: by mail-oo1-xc34.google.com with SMTP id 006d021491bc7-563439ea4a2so2871194eaf.0 for <64682-done@debbugs.gnu.org>; Mon, 17 Jul 2023 06:38:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689601129; x=1692193129; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ur2+4dcIzRvW53iQxewXGaZZvXuXS3YVD1jwZUYGWJU=; b=KuQP0lroPnNmMAebEwUa0KS+qwcZxoWMDgmOGQX6q93SEAZp0IIyRIpbboce3FFakW mX9wWArKuqfE/Vpss/dI/5f5b/SFQ5RAPm0ojpB7m3QTDD1o7O7fShTivbX5M1BT2vnL CsmNp55lf8pu0TQ6yrAtJXMrbrIy/8P+9r9hV0tnR5sYGzTPxGGzd8hg5sud5wWUjTjx ZzErzHHIZAvN7Ij6zuE0hV3Y3eExidDZW9MdX0SFHSWyH2uoJqfsVzG4Gf8hMIhhJP+8 8BqX5Tcv5O8btpyrs21whj65E7XVcSAHzKsMaDTORjhLLizkRQKVkbKq+TfBnfDB5cWu oO0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689601129; x=1692193129; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ur2+4dcIzRvW53iQxewXGaZZvXuXS3YVD1jwZUYGWJU=; b=EW6qR5ThQyrZRObX8L1xxxC/3Cetaa2AgON0vHBHqdFTGnmxCouXJvXYr7GbGx+Ojx 9ixs9yr6dmoJ3zE0IokzVx+c4tuYzNFH1gox+Eqh4MH6ALl0dEWaRXrRbpDpSSfuXRpe BSX9kvg+ubWiag/m9Yxcb3kUXJQm7cMdHn1Gflad4d5xrx0rGfS3suwnJEX0BlulctHu UwcHWbS5SmxjaEunZe/d+xPZARcLT4DGKRqp9i/NkFpQAjoKE6loS5J4Wi3j4BvUF1Oj 7j6dhze98DsqqCnPY+/zaQkzD9r4wEGAtRu4jCZFswLZpIkfS1sxoSHgJykNO2oQmDx6 33LQ== X-Gm-Message-State: ABy/qLYXpMlFUi+bPQ/XnKGaPyoTkXxyRh3WT67QeDC6c84VLW4hRZ+M Q8E71Xyu74nZkJ6F6R3m73uy0AGWadnK/0cPHgg= X-Google-Smtp-Source: APBJJlF3eKhbp4NFXKA4mjjZBxWIPZ8dwPhHUXJU3xKW5Ld/+Tc61ML+M3sp7W7+ypLOvD6x+TK+EnFpFzAACFX9Avs= X-Received: by 2002:a4a:395e:0:b0:566:3723:a029 with SMTP id x30-20020a4a395e000000b005663723a029mr3924711oog.3.1689601128801; Mon, 17 Jul 2023 06:38:48 -0700 (PDT) In-Reply-To: <87mszuybrc.fsf@posteo.net> 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:265397 Archived-At: Thanks. Pushed to master as 7446a8c34e2b793df52dbf56b630e20f8c10568c, and closing. Jo=C3=A3o On Mon, Jul 17, 2023 at 1:17=E2=80=AFPM Brian Leung wr= ote: > > Tags: patch > > On current master branch, running M-: (eglot-imenu) in buffers > using LSP servers supporting the textDocument/documentSymbol > request always results in an early exit since the server > capability is NOT named "textDocument/documentSymbol", but rather > "documentSymbolProvider". > > This patch corrects that, so that now (eglot-imenu) works as > expected. > > In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, > cairo > version 1.16.0, Xaw3d scroll bars) > Repository revision: c5fa58cbc4a33a0a65494b9ab2e35d4f30ab849b > Repository branch: master > Windowing system distributor 'The X.Org Foundation', version > 11.0.12101008 > System Description: NixOS 23.11 (Tapir) > > Configured using: > 'configure > --prefix=3D/nix/store/rl8pgvclyashprbz6xr84x6l0n9q37l2-emacs-git-2023071= 5.0 > --disable-build-details --with-modules --with-x-toolkit=3Dlucid > --with-xft --with-cairo --with-native-compilation > --with-tree-sitter' --=20 Jo=C3=A3o T=C3=A1vora