From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jonathon McKitrick via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#62216: Narrowing down the issue Date: Sun, 23 Jul 2023 13:58:34 +0000 Message-ID: References: Reply-To: Jonathon McKitrick Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3749"; mail-complaints-to="usenet@ciao.gmane.io" To: 62216@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 23 15:59:24 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 1qNZcJ-0000sK-Vz for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Jul 2023 15:59:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNZbz-0003Cf-63; Sun, 23 Jul 2023 09:59:03 -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 1qNZby-0003CS-8J for bug-gnu-emacs@gnu.org; Sun, 23 Jul 2023 09:59:02 -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 1qNZby-0003Ua-0w for bug-gnu-emacs@gnu.org; Sun, 23 Jul 2023 09:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNZbx-0004Sd-Th for bug-gnu-emacs@gnu.org; Sun, 23 Jul 2023 09:59:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Jonathon McKitrick Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Jul 2023 13:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62216 X-GNU-PR-Package: emacs Original-Received: via spool by 62216-submit@debbugs.gnu.org id=B62216.169012073117131 (code B ref 62216); Sun, 23 Jul 2023 13:59:01 +0000 Original-Received: (at 62216) by debbugs.gnu.org; 23 Jul 2023 13:58:51 +0000 Original-Received: from localhost ([127.0.0.1]:41074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNZbn-0004SF-GE for submit@debbugs.gnu.org; Sun, 23 Jul 2023 09:58:51 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:55836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNZbi-0004S2-Fu for 62216@debbugs.gnu.org; Sun, 23 Jul 2023 09:58:50 -0400 Original-Received: from sdf.org (IDENT:jcm@sdf.org [205.166.94.16]) by mx.sdf.org (8.16.1/8.14.5) with ESMTPS id 36NDwYnH014969 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for <62216@debbugs.gnu.org>; Sun, 23 Jul 2023 13:58:45 GMT Original-Received: (from jcm@localhost) by sdf.org (8.16.1/8.12.8/Submit) id 36NDwY5D027323 for 62216@debbugs.gnu.org; Sun, 23 Jul 2023 13:58:34 GMT Content-Disposition: inline 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:265907 Archived-At: After some exhaustive git bisecting and init file tweaking, I've narrowed it down to a surprising culprit: desktop mode I've been unable to reproduce the issue in my other projects, but I'm still working on it. The commit that introduces the bug is b950b46f514989442fdd9937a0e96d53a3affa88. I don't think it's a bug per-se, simply a problematic interaction with desktop mode. I've been able to build a non-graphic version from source that reverts this commit and does not have the issue. I'm currently working on a local homebrew tap that will build a macos version, applying the same patch to my local build. Here's the latest: Emacs 30 HEAD on MacOS, built weekly, sometimes nightly. I open a large clojure project to a file with many changes. Then I checkout another branch, either in a terminal or using magit. When the file I'm viewing reverts, there seems to be a large chunk of code that was erroneously inserted at the end of the buffer. This code is part of the diff, appended in the wrong place. I don't have any other projects that present the same issue so far. Jonathon McKitrick -- 'My other computer is your Linux box.'