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.devel Subject: Re: Edebug corrupting point in buffers. Date: Fri, 04 Nov 2022 08:34:24 +0200 Message-ID: <8335az6xe7.fsf@gnu.org> References: <83wn8fcgvd.fsf@gnu.org> <83iljydh7e.fsf@gnu.org> <838rkud9d5.fsf@gnu.org> <83v8nybnuk.fsf@gnu.org> <83pme6bls8.fsf@gnu.org> <83mt99a223.fsf@gnu.org> <834jvf7ruw.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28675"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 04 07:35:52 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oqqIy-0007EC-MQ for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Nov 2022 07:35:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqqHk-0008On-Ro; Fri, 04 Nov 2022 02:34:36 -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 1oqqHi-0008Nm-CX for emacs-devel@gnu.org; Fri, 04 Nov 2022 02:34:34 -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 1oqqHg-0004XJ-UT; Fri, 04 Nov 2022 02:34:32 -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=gHh8RT1tnqYuhBuUeYepA27gmmMzJ7if13HvQayEPHg=; b=ZG6XCmaM6te6 vsKl35agc75MKtpyzasnfc5eC7WaSXNH+bi+nXU9rajvomo6UGlkNpoqC/dsKJrWb8e8GFIx0kR61 PfALRcyN9ec0Nw9zEKoHBMoLlX3PPXFXMDcy9KMtORxtn9dI2XXbgJFzfpHyrQQoXjocIypRA1h3a WTVpekmavWpPDwP+NU10DV5SSSNE83o+1QL7kr8CEQZ1fUAid1qLc1kWIhuPWlPHl+WDFtirC7WZV HyO+OL3FOTcey8TpN+8CiMT4vDt+nj7xsxCkLmK/Nrz7LAxeSn5acSvGOz/4TBXw+kLVV9VIbsxil 0c42gE1Ir0CjISYoluP+oA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqqHf-0001nZ-9Z; Fri, 04 Nov 2022 02:34:32 -0400 In-Reply-To: (message from Stefan Monnier on Thu, 03 Nov 2022 16:39:23 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299109 Archived-At: > From: Stefan Monnier > Cc: acm@muc.de, emacs-devel@gnu.org > Date: Thu, 03 Nov 2022 16:39:23 -0400 > > > I think before digging into the reasons, we should decide what kind of > > behavior we would consider "correct" and/or "useful" in the relevant > > use cases with Edebug. The answer is not easy, because AFAIU Edebug > > cannot easily know which window(s) and which buffer(s) are affected by > > the program being debugged. > > If we follow the model or "traditional debuggers" which run in > a separate process, then it would make a lot of sense for Edebug to > save&restore points in all the buffers that it (Edebug) touches, so as > to better preserve the behavior we get when Edebug is not invoked. > > For that Edebug doesn't need to know which buffers are affected by the > program being debugged, it just needs to know the buffers that it > (itself) affects, which doesn't sound impractically difficult. What do you mean by "the buffers that Edebug touches", exactly? "Touches" or "affects" in what sense? The next question is "how would Edebug know which buffers it touches?" And the next one after that would be "what about buffers Edebug touches that are displayed in more than one window?"