GNU bug report logs - #78367
31.0.50; Eglot: incoming call trees, wrong positions

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Gerd Möllmann <gerd.moellmann@HIDDEN>; Done: João Távora <joaotavora@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 78367-done <at> debbugs.gnu.org:


Received: (at 78367-done) by debbugs.gnu.org; 11 May 2025 10:38:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 11 06:38:19 2025
Received: from localhost ([127.0.0.1]:58702 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uE44Z-0000xt-4q
	for submit <at> debbugs.gnu.org; Sun, 11 May 2025 06:38:19 -0400
Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:51312)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1uE44X-0000xC-6o
 for 78367-done <at> debbugs.gnu.org; Sun, 11 May 2025 06:38:17 -0400
Received: by mail-wm1-x335.google.com with SMTP id
 5b1f17b1804b1-43d0618746bso26442755e9.2
 for <78367-done <at> debbugs.gnu.org>; Sun, 11 May 2025 03:38:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1746959891; x=1747564691; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=8S6RrySa83tOSEjt8fZyvpz5poOebL2cuubfL2i4BMM=;
 b=iavpS/6C8VNJTWFOV1ncWkfSmDa4dns9KTQahLuARxagob2d7aQHtDYL8e6Ph8HrYa
 pTXkyvl8cld5cm5ycikQCJhldzFgNJXTwkCcamHeKsbykAqNrd7/Dz4aRYIEZA44eBZF
 fvLn3oteSy8+LW291ZskH3G6yShmrJeIqX0Ks4Ok1qAkqrz+ng/FKU5+84s4FxcAnahc
 HHBx4FTGbnP33pehSwfe4mXJHIGj79SJI7G+I8H37xq2Gryaziy/7+P1uM0xozJPuchA
 96Yd0Rh1uz3d9KYo0DEKYYcem+Awt5kvMt4+P8j+4tGwHdAhVNevnORwC/GhI/qzxUC4
 35ZQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1746959891; x=1747564691;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=8S6RrySa83tOSEjt8fZyvpz5poOebL2cuubfL2i4BMM=;
 b=jmC7792RJ11lLE9BYcwZcOIQv3lmUCEmqXorJZyTvc5Htj7shK7WetbdU9ercObrW/
 jH0++zKE6WXMSbAbG4yxgV1HPQkOO/qSffq3DleoXvNBrd5juAHEtbm3ikVi5tWQNJ/a
 8LyV8Mnd+Vth7O7M3pK3GkFV7jwfzZmr5p0kAwthfjKWi9mWeesj2QMVd5lGL0e0StQa
 wixyCGxNqJrlRWUW5l3GCBZfqMEo5jHBMVNMj5zQ223I3Oj424tJDg7vslK9b2gfvLbW
 UMUYl4nNbRM44ujl+Od8Mecf0G+ev/QCWes+Xa6VcOjaGGaKdL0OIsgK1F2DhSUJVCpy
 s0ag==
X-Forwarded-Encrypted: i=1;
 AJvYcCVB8EaIdB9Ao7g+9bQ/+B0cF1vMG69kd+tQtxdhh5qEJC0p53Jw8glqLgzWGyheeFavwdaMkho/QY3K <at> debbugs.gnu.org
X-Gm-Message-State: AOJu0Yx5xX0Q0jHzTaJcXCfn4eu/R2EsmBhOjYxn+GI2oD3UeLR/euV4
 k42XMSYTea5PPGCXEwAjX3i03DLAz5Z/mbh5BPpzGBElDhJOizXJhDix9ls3
X-Gm-Gg: ASbGnctwMYDMlI9ch7ov/4StFMyruknmy+2OHYTWSy0L53BF3GkbWx08v7f8FcU3DcU
 qf8OgAsrXeen1bLo4opf0JMHqsVuwZDsSP6wDorBcGf+3qxt9UusmD5tpLra117B/o6CigOLZ9x
 A4AfrcpniN6YHsum2ebyArmqOqzlFOOaZve9lp/rOHjdQXaqv0NRsZiS7QjyXJmfJ+xYdE0jvpT
 wFpE91ilAFw8v6kaBxhWu+9ngg6Zi0ETrCC6T1OGwKo1mI2660PR57HwPcfnZPDsoMgem/GcqE+
 yjBmVL/Fb3zhytX2gwXl2J9E+fWHf/tn7Il0s+8yCOx/oak9jmiVNinK5PpKuBgJwRV7nbq0BCM
 RnIwmcBgOCyASB3kz1W61Y1QRosLRGqxv9CniftfcRU+ZJl36h5vXEI4b3HvY
X-Google-Smtp-Source: AGHT+IGJDx2ckWOCM1xR8yt34gNE+OcPXgT3lFl+/yqXd7SEf2pXPhe68Wzfc130AOlVwAHIHtUSww==
X-Received: by 2002:a05:600c:8212:b0:43d:b3:fb1 with SMTP id
 5b1f17b1804b1-442d6ddd806mr75751375e9.27.1746959890529; 
 Sun, 11 May 2025 03:38:10 -0700 (PDT)
Received: from pro2 (p200300e0b7136200f9d0b06a4f0459c3.dip0.t-ipconnect.de.
 [2003:e0:b713:6200:f9d0:b06a:4f04:59c3])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-442d67d7795sm91437315e9.8.2025.05.11.03.38.09
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 11 May 2025 03:38:10 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Subject: Re: bug#78367: 31.0.50; Eglot: incoming call trees, wrong positions
In-Reply-To: <874ixrbg83.fsf@HIDDEN>
References: <m28qn367gl.fsf@HIDDEN> <86frhb8z37.fsf@HIDDEN>
 <874ixrbg83.fsf@HIDDEN>
Date: Sun, 11 May 2025 12:38:09 +0200
Message-ID: <m21psv5t66.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78367-done
Cc: Eli Zaretskii <eliz@HIDDEN>, 78367-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN> writes:

> Anyway, the call navigation should be fixed for both outgoing and
> incoming cases in master.

Did you try it?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78367; Package emacs. Full text available.

Message received at 78367-done <at> debbugs.gnu.org:


Received: (at 78367-done) by debbugs.gnu.org; 11 May 2025 10:20:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 11 06:20:46 2025
Received: from localhost ([127.0.0.1]:58564 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uE3na-0008HW-2z
	for submit <at> debbugs.gnu.org; Sun, 11 May 2025 06:20:46 -0400
Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:45199)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1uE3nW-0008H4-Nc
 for 78367-done <at> debbugs.gnu.org; Sun, 11 May 2025 06:20:44 -0400
Received: by mail-wm1-x335.google.com with SMTP id
 5b1f17b1804b1-43cfebc343dso23350025e9.2
 for <78367-done <at> debbugs.gnu.org>; Sun, 11 May 2025 03:20:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1746958835; x=1747563635; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=yvOiCmQk8zgjyx3VjRco4dOsEJpM1H1ayOPwra598NY=;
 b=W+l/p46PJ3nHEkZVS941/nVyFrhW3ksxLpdAM+q+y4u26b/a5jXl4JJ9kaMpFUh8tO
 oZpJ8eB3SW6+NU6rB9mlW8ST9BhfJkVQzo/wmsT9H/XI9EcXTOAfsreUQmkysT9tM6lM
 8EqiTMua68KlfIk85gl6z7NwiFnEHV0IRTcW4Wedrjq30r5UF+dxhiF8Glb+s9jSLTRW
 hXkTGs6xcJrXKF7K8WS33daSDHJ8ae2i4wirVgQOzy8t7sql6WJReIAeV1vBGsgCcSTU
 zdPlg5Wjt+VtaMaAcLdOZiPfILfDh8j3R0V0jTvmsRfBzGZN2q8TxBMA+plVwowbhbZx
 Ma4g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1746958835; x=1747563635;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:c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-Smtp-Source: AGHT+IEJIpRcHbUJk8c59LNw69Xxpd8KxdQPXAOhX55UpTkSGrfUKh6R+TPOVzsz9t8Xaid6/T4a3g==
X-Received: by 2002:a5d:5f82:0:b0:3a0:90be:fe79 with SMTP id
 ffacd0b85a97d-3a1f6429686mr8181566f8f.9.1746958835297; 
 Sun, 11 May 2025 03:20:35 -0700 (PDT)
Received: from krug (87-196-80-78.net.novis.pt. [87.196.80.78])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-3a1f58ec98dsm8771033f8f.25.2025.05.11.03.20.33
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 11 May 2025 03:20:34 -0700 (PDT)
From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#78367: 31.0.50; Eglot: incoming call trees, wrong positions
In-Reply-To: <86frhb8z37.fsf@HIDDEN>
References: <m28qn367gl.fsf@HIDDEN> <86frhb8z37.fsf@HIDDEN>
Date: Sun, 11 May 2025 11:21:16 +0100
Message-ID: <874ixrbg83.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78367-done
Cc: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>,
 78367-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN>
>> Date: Sun, 11 May 2025 07:29:30 +0200
>>=20
>> I am using Eglot/clangd on emcas.git again.

That's good.  Thanks for the report.

>> insdel.c:
>>   469      * amount at least proportional to the size of the buffer.
>>   470      * On my test (a 223.9MB zip file on a Thinkpad T61):
>>   471      * With /5    =3D>  24s
>>   472      * With /32   =3D>  25s
>>   473      * With /64   =3D>  26s
>>   474      * With /128  =3D>  28s
>>   475      * With /1024 =3D>  51s

For good a moment there, I thought you were reporting a performance bug
for a 20yo laptop.

Anyway, the call navigation should be fixed for both outgoing and
incoming cases in master.

>> and so on.
>>=20
>> (BTW, eglot-supplements' call trees list all call sites, both in
>> incoming and outgoing call trees.

Patches welcome!

>> I find that pretty useful.)

Maybe.  Depends on the number of calls you make to given function in
another one.

Jo=C3=A3o




Notification sent to Gerd Möllmann <gerd.moellmann@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to João Távora <joaotavora@HIDDEN>:
You have taken responsibility. Full text available.

Message received at 78367 <at> debbugs.gnu.org:


Received: (at 78367) by debbugs.gnu.org; 11 May 2025 06:02:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 11 02:02:21 2025
Received: from localhost ([127.0.0.1]:56504 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uDzlV-0005Ku-7d
	for submit <at> debbugs.gnu.org; Sun, 11 May 2025 02:02:21 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47462)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uDzlS-0005KV-EB
 for 78367 <at> debbugs.gnu.org; Sun, 11 May 2025 02:02:18 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1uDzlM-0002Hf-QO; Sun, 11 May 2025 02:02:12 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=WXv6hsxbepUDnMAYG+iWJmMGiczA7a5dfF9GhR7efYc=; b=HNmIcNYL5YvrA9At61cH
 aXK6MnNvdD9ON+QCkzubQl+w4VSBmD32I0kCKludSJcOPha5CfsrVO8S0vqtqpaxIFuX5mG86E+q7
 sBDP1r/5UWPRSJakZvl12zRs2A1h5Snp/YZQ9iVAhs6EQwhqDRzYW9jAz4Owv9EJpDVRHM4Wax8Qs
 mMAdwrqtQWytn4kPc0xJIMkrz41kYTG0C4jOlEQ0HuxQQhJcQw8Rng7o0grgXZpIsx0RYxcnm30uX
 Uk09GS3sFvn4Dy5OdLH5vG93yJMTkv5QwPRa/f+QyCYIOQ48XqfJXC3rteNBX8/Z17OuKwVtExMXm
 01H0XyydV6qIsw==;
Date: Sun, 11 May 2025 09:02:04 +0300
Message-Id: <86frhb8z37.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>,
 =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
In-Reply-To: <m28qn367gl.fsf@HIDDEN> (message from Gerd =?utf-8?Q?M?=
 =?utf-8?Q?=C3=B6llmann?= on Sun, 11 May 2025 07:29:30 +0200)
Subject: Re: bug#78367: 31.0.50; Eglot: incoming call trees, wrong positions
References: <m28qn367gl.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 78367
Cc: 78367 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Gerd Möllmann <gerd.moellmann@HIDDEN>
> Date: Sun, 11 May 2025 07:29:30 +0200
> 
> I am using Eglot/clangd on emcas.git again.
> 
> Navigate to insdel.c, function insert_and_inherit, C-u M-x
> eglot-show-call-hierarchy RET and choose incoming call trees. The
> resulting buffer looks like
> 
> [-]  ∘ insert_and_inherit
>  ├─[+]  ◀ Finsert_and_inherit
>  ├─[+]  ◀ Finsert_char
>  └─[+]  ◀ internal_self_insert
> 
> Clicking on Finsert_and_inherit takes me here:
> 
> insdel.c:
>  1389   if (run_mod_hooks)
>  1390     {
>  1391       ptrdiff_t range_length = to - from;
>  1392       prepare_to_modify_buffer (from, to, &from);
>  1393       to = from + range_length;
>  1394     }
> 
> Clicking on internal_self_insert
> 
> insdel.c:
>   469      * amount at least proportional to the size of the buffer.
>   470      * On my test (a 223.9MB zip file on a Thinkpad T61):
>   471      * With /5    =>  24s
>   472      * With /32   =>  25s
>   473      * With /64   =>  26s
>   474      * With /128  =>  28s
>   475      * With /1024 =>  51s
> 
> and so on.
> 
> (BTW, eglot-supplements' call trees list all call sites, both in
> incoming and outgoing call trees. I find that pretty useful.
> 
> - insert_and_inherit insdel.c:582
>   + internal_self_insert internal_self_insert:471
>   + internal_self_insert internal_self_insert:475
>   + Finsert_and_inherit Finsert_and_inherit:1392
>   + Finsert_char Finsert_char:1503
>   + Finsert_char Finsert_char:1509
> )
> 
> In GNU Emacs 31.0.50 (build 1, aarch64-apple-darwin24.4.0) of 2025-05-10
>  built on pro2

Adding João to the discussion.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78367; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 11 May 2025 05:29:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 11 01:29:50 2025
Received: from localhost ([127.0.0.1]:56122 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uDzG0-0002lq-Fz
	for submit <at> debbugs.gnu.org; Sun, 11 May 2025 01:29:50 -0400
Received: from lists.gnu.org ([2001:470:142::17]:56546)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1uDzFw-0002lF-9J
 for submit <at> debbugs.gnu.org; Sun, 11 May 2025 01:29:46 -0400
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 <gerd.moellmann@HIDDEN>)
 id 1uDzFo-0002Tl-6J
 for bug-gnu-emacs@HIDDEN; Sun, 11 May 2025 01:29:36 -0400
Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1uDzFm-0007Hb-Kg
 for bug-gnu-emacs@HIDDEN; Sun, 11 May 2025 01:29:35 -0400
Received: by mail-wm1-x32e.google.com with SMTP id
 5b1f17b1804b1-43cf3192f3bso35275935e9.1
 for <bug-gnu-emacs@HIDDEN>; Sat, 10 May 2025 22:29:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1746941372; x=1747546172; darn=gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:subject:to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=tRQenXKc3JN+T3E24ElQfKxGJR8oNueEfh9ubJpNGnA=;
 b=CfpphwNKlPzPl2Jog3Ds7V02xCTtMvb16jhG2JBwbw9xdwP6hZY1h0eSR8jV7e9eSc
 fzjU7NJBV7OItFlJf3G+NMix74qeXUPwU/UhUvC40kz9aViU7ZjFi7WQ/1g6A9vKqTl1
 ISaIYVwt8PDkl1zjROilwlJwGIbgGDbkAIY31+xcn4TbVHmM9/IsBZQwzZ6zPekr9QOV
 +/Bg5Jifje+cWhMHgFFW1kbwZ0ZCgSwpAB/zgs+N93U36ASk9W/eilJ9pENDKZMULXiE
 wwzs7VoKRpt8u7gDN0leMrVJLcfHAws2mwfFz9Y3qNT2QMzt4wVW5yavUcJeNQTwmuxC
 EEvA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1746941372; x=1747546172;
 h=content-transfer-encoding:mime-version:message-id:date:subject:to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=tRQenXK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5w==
X-Received: by 2002:a05:600c:8714:b0:43d:fa59:a685 with SMTP id
 5b1f17b1804b1-442d6ddf58cmr65492095e9.33.1746941372163; 
 Sat, 10 May 2025 22:29:32 -0700 (PDT)
Received: from pro2 (p200300e0b7136200f9d0b06a4f0459c3.dip0.t-ipconnect.de.
 [2003:e0:b713:6200:f9d0:b06a:4f04:59c3])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-442d67d5c35sm82257015e9.5.2025.05.10.22.29.31
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 10 May 2025 22:29:31 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 31.0.50; Eglot: incoming call trees, wrong positions
X-Debbugs-Cc: 
Date: Sun, 11 May 2025 07:29:30 +0200
Message-ID: <m28qn367gl.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2a00:1450:4864:20::32e;
 envelope-from=gerd.moellmann@HIDDEN; helo=mail-wm1-x32e.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

I am using Eglot/clangd on emcas.git again.

Navigate to insdel.c, function insert_and_inherit, C-u M-x
eglot-show-call-hierarchy RET and choose incoming call trees. The
resulting buffer looks like

[-]  =E2=88=98 insert_and_inherit
 =E2=94=9C=E2=94=80[+]  =E2=97=80 Finsert_and_inherit
 =E2=94=9C=E2=94=80[+]  =E2=97=80 Finsert_char
 =E2=94=94=E2=94=80[+]  =E2=97=80 internal_self_insert

Clicking on Finsert_and_inherit takes me here:

insdel.c:
 1389   if (run_mod_hooks)
 1390     {
 1391       ptrdiff_t range_length =3D to - from;
 1392       prepare_to_modify_buffer (from, to, &from);
 1393       to =3D from + range_length;
 1394     }

Clicking on internal_self_insert

insdel.c:
  469      * amount at least proportional to the size of the buffer.
  470      * On my test (a 223.9MB zip file on a Thinkpad T61):
  471      * With /5    =3D>  24s
  472      * With /32   =3D>  25s
  473      * With /64   =3D>  26s
  474      * With /128  =3D>  28s
  475      * With /1024 =3D>  51s

and so on.

(BTW, eglot-supplements' call trees list all call sites, both in
incoming and outgoing call trees. I find that pretty useful.

- insert_and_inherit insdel.c:582
  + internal_self_insert internal_self_insert:471
  + internal_self_insert internal_self_insert:475
  + Finsert_and_inherit Finsert_and_inherit:1392
  + Finsert_char Finsert_char:1503
  + Finsert_char Finsert_char:1509
)

In GNU Emacs 31.0.50 (build 1, aarch64-apple-darwin24.4.0) of 2025-05-10
 built on pro2




Acknowledgement sent to Gerd Möllmann <gerd.moellmann@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#78367; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 11 May 2025 10:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.