From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#61369: Problem with keeping tree-sitter parse tree up-to-date Date: Wed, 08 Feb 2023 19:20:19 +0100 Message-ID: <87ttzw6mu4.fsf@thornhill.no> References: Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37323"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61369@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 08 19:21:18 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 1pPp4F-0009ND-WC for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Feb 2023 19:21:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPp45-00061v-Ic; Wed, 08 Feb 2023 13:21:05 -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 1pPp43-00061R-5Y for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2023 13:21:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pPp42-0000IX-SW for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2023 13:21:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pPp42-0007xf-7S for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2023 13:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Feb 2023 18:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61369 X-GNU-PR-Package: emacs Original-Received: via spool by 61369-submit@debbugs.gnu.org id=B61369.167588043030529 (code B ref 61369); Wed, 08 Feb 2023 18:21:02 +0000 Original-Received: (at 61369) by debbugs.gnu.org; 8 Feb 2023 18:20:30 +0000 Original-Received: from localhost ([127.0.0.1]:56626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPp3V-0007wL-UV for submit@debbugs.gnu.org; Wed, 08 Feb 2023 13:20:30 -0500 Original-Received: from out-82.mta0.migadu.com ([91.218.175.82]:46690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPp3Q-0007w4-Qv for 61369@debbugs.gnu.org; Wed, 08 Feb 2023 13:20:28 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1675880422; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=pIlYZm5qQNMOWU+xFrEavNMrA/CrdoxlGwNGeB8Bjh0=; b=SaXuDB82p6AsP7xp54IclzxoqUQow200lreYrVZLC7PnI4ucT0WYT937YnqzWaw5Uieq4U bOW2g4topxKsT3sRZ/Ove8UZiK16XU+UndINSFsyf4ocw4fE3SWI+TltecUw2WHBbc91Ei 3d36PoX3BegYdW6wcJXwahiT0QZygQpbglanhgAxDU58L/zi4xM795Sycv1zo+tEn/Eskw BriZ04dBqHP3PDzkf5r2BTQG+8zj03ET2VRn0fQju5EoqOGS+8bTk5UCZj5Qdk8/9Mz/oc gVAAopUk1jkEkIGmNas1D5aTWou5QBYoYdxAsSmY7HzWo9Sx8Jfhb80ztgSYSQ== In-Reply-To: (Dmitry Gutov's message of "Wed, 8 Feb 2023 17:34:25 +0200") X-Migadu-Flow: FLOW_OUT 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:255157 Archived-At: Dmitry Gutov writes: > 1. Have some buffer with text > > "use std::Path::{self, Path, PathBuf}; // good: std is a crate name > ... (maybe something else > " > > 2. Have this text in a different buffer (I used scratch): > > " > > > let date = DateTime::::from_utc(date, chrono::Utc); > " > > Meaning, the buffer starts with two empty lines. > > 3. Select the first line from the first buffer including the trailing newline, > yank and then paste at the beginning of the second buffer. > > The second buffer will now look like this: > > "use std::Path::{self, Path, PathBuf}; // good: std is a crate name > > > let date = DateTime::::from_utc(date, chrono::Utc); > " I just want to confirm that I can reproduce this, and that if you skip the trailing newline from the use-statement, I don't get this behavior. So it seems like the newline is the crucial point, right? Theo