From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#72765: Eglot + Clangd + Company + non-empty suffix = duplicate text Date: Tue, 10 Sep 2024 14:47:42 +0300 Message-ID: <86bk0vvig1.fsf@gnu.org> References: <83e5b9c4-0f5f-49c4-a4b2-fe553c59b2f6@gutov.dev> <86o75bftql.fsf@gnu.org> <119819e3-fc54-4f9a-9075-b07af637db12@gutov.dev> <864j71dw8e.fsf@gnu.org> <48e0fa23-623e-4a73-b968-ba10d766cf37@gutov.dev> <87y14bwvyd.fsf@gmail.com> <9a5884da-44cc-4f9a-9d4a-caf830617c7f@gutov.dev> <6805f597-20ab-4c97-b1bf-1b15856364e0@gutov.dev> <76a2f902-5876-42a3-ad06-b95d6a9959c1@gutov.dev> <867cblvym6.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14967"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72765@debbugs.gnu.org, joaotavora@gmail.com To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 10 13:48:20 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 1snzM3-0003c0-Lk for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Sep 2024 13:48:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1snzLj-0007Rn-B3; Tue, 10 Sep 2024 07:47:59 -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 1snzLh-0007RT-QK for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2024 07:47:57 -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 1snzLh-0005iq-GL for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2024 07:47:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=lsaQDN3/s9syR/S30UKiSezbffpLjF34RpRqWlH/R4E=; b=vXgbnosM3v9zTTUl7e+qCfZ5kkhMAGBN2jxUSW8Ns2KYJLv2zEeHeH+l9csR15NBFnnudRfGXmVGADoIoV7szENv1vQ2/G33Xotpeq0CHr8UcTjPQB0mk4wvaq1l7HcL/YwUBx5k75NkESGb3+CFobBj+Yo83K/1YzVV86YA9Eg9GHL4DN5nHCiZhjaVeJFh++o9cOrQ66ic2ShBPByWKcoBEeqhjmh/EZwiB+C/ssK9msc6F1mN3WfLRRprzKtTlEI3Y2Zo3yb2LNKk00u7hxagVU1voH4AcRgZZM9mUvUFihQCMbrUX68oGFyp4j7Y0cSQDz1VEpyAUKqrfAgl2g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1snzLm-0006jN-8S for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2024 07:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Sep 2024 11:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72765 X-GNU-PR-Package: emacs Original-Received: via spool by 72765-submit@debbugs.gnu.org id=B72765.172596888025865 (code B ref 72765); Tue, 10 Sep 2024 11:48:02 +0000 Original-Received: (at 72765) by debbugs.gnu.org; 10 Sep 2024 11:48:00 +0000 Original-Received: from localhost ([127.0.0.1]:34961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snzLj-0006j7-HX for submit@debbugs.gnu.org; Tue, 10 Sep 2024 07:47:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snzLh-0006iu-RS for 72765@debbugs.gnu.org; Tue, 10 Sep 2024 07:47:58 -0400 Original-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 ) id 1snzLW-0005fo-Co; Tue, 10 Sep 2024 07:47:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=lsaQDN3/s9syR/S30UKiSezbffpLjF34RpRqWlH/R4E=; b=rMNEOX/5IcmG csdATSdbMl7PkDJAve3mQIh6njxFeBDMT77MX57Zboa/gOrrAMvCKXghDJQjGiJ6O6GbqUt35qvl6 Rd6Ti+8Ebb3UxTsAgh2AK7ACbpE1lhLq0y0ejw+JvOAm9ppFbohF9nQpqz+badBRfbNdvIpX/kgzx 55FSyTLqxOsx439ttw4kUhSE4WPPu23EYM60oNC0t2Hw8mKQfTQQdE6hqr23RDGuULoTbqTmGguhO IxBOESgbhI1hJiOwvqra3RVE/fY4KDVcOFV4QeFJdNx/tlhBoys6DK8Kjh3U0/NoWC29DioCek1FG EJEVRY7j9Kpa7hiDyZFIPg==; In-Reply-To: (message from Dmitry Gutov on Tue, 10 Sep 2024 03:58:58 +0300) 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:291553 Archived-At: > Date: Tue, 10 Sep 2024 03:58:58 +0300 > Cc: joaotavora@gmail.com, 72765@debbugs.gnu.org > From: Dmitry Gutov > > >> The backtrace that I managed to generate is attached. > > > > Thanks. Please try the patch below. > > Thanks! The patch takes care of the crash AFAICS (no core dump now), but > alas not of the original test failure. I installed the patch on the emacs-30 branch. > > P.S. I'm not at all sure this is the last segfault you will see > > because you are playing with fire: you are not supposed to reset > > redisplay-skip-initial-frame to nil in batch-mode tests that test > > redisplay-related features! > > Isn't that the main/only purpose of this variable? You mean, playing with fire? Yes, but you need to be aware of that. This variable was introduced relatively recently for use by test/src/xdisp-tests.el; anywhere else you are on your own ;-)