From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Eli Zaretskii <eliz@gnu.org>
Newsgroups: gmane.emacs.devel
Subject: Re: Edebug corrupting point in buffers.
Date: Wed, 02 Nov 2022 16:00:52 +0200
Message-ID: <83mt99a223.fsf@gnu.org>
References: <Y2A9NINYSfByTztE@ACM> <83wn8fcgvd.fsf@gnu.org>
 <Y2EFztE/GgFF0P3x@ACM> <83iljydh7e.fsf@gnu.org>
 <Y2EiK32B9lxLSFms@ACM> <838rkud9d5.fsf@gnu.org>
 <Y2FSHvmj2H8a5AS6@ACM> <83v8nybnuk.fsf@gnu.org>
 <Y2FWSoSCQnnY9en1@ACM>
 <83pme6bls8.fsf@gnu.org> <Y2JVzZNiWKx/W6KQ@ACM>
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="11190"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: emacs-devel@gnu.org
To: Alan Mackenzie <acm@muc.de>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 02 15:17:18 2022
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
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 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1oqEYP-0002ej-VE
	for ged-emacs-devel@m.gmane-mx.org; Wed, 02 Nov 2022 15:17:18 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-devel-bounces@gnu.org>)
	id 1oqEIm-0003So-J9; Wed, 02 Nov 2022 10:01:11 -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 <eliz@gnu.org>) id 1oqEIl-0003Rl-Jy
 for emacs-devel@gnu.org; Wed, 02 Nov 2022 10:01:07 -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 <eliz@gnu.org>)
 id 1oqEIk-000817-Lv; Wed, 02 Nov 2022 10:01:06 -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=DOIyknl4PhmmIE4NJ6MFXLY06X8tds7urGR0IeFfSqA=; b=JNuH+aMXqBxX
 9dPKXnv0iZvPs6S0TGn9Yo8reFPxUas9MCwPxvBiYdMoGtEHanCpmRCFN9gRL/oMMoC0pZV+N7qQ4
 M8i1kHJ7GHS4Qnn16jskkEb21tcEq312Lih+0r6+xYIR82qK6qYdETTDgDlplvVNNs+vWxwPjW4z3
 n/CZFjogw9hN1DSmptw+I174mpGNpjHyAe/jRe43NPuJbsyM9ByZXSS3QzjXjKwh7PzOs3evuMu0Q
 j237zlGYaPJ15e8lXDpOhoEFUAZqEmneH3oeXxhGtCGoN3VXWCnKwWfkqga2Xd9y4S5iJrWlihgxO
 PH2xt7QaQQJ71cB8yjeESg==;
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 <eliz@gnu.org>)
 id 1oqEIi-0003Yb-Bk; Wed, 02 Nov 2022 10:01:05 -0400
In-Reply-To: <Y2JVzZNiWKx/W6KQ@ACM> (message from Alan Mackenzie on Wed, 2 Nov
 2022 11:34:37 +0000)
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=subscribe>
Original-Sender: "Emacs-devel" <emacs-devel-bounces@gnu.org>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.emacs.devel:299018
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/299018>

> Date: Wed, 2 Nov 2022 11:34:37 +0000
> Cc: emacs-devel@gnu.org
> From: Alan Mackenzie <acm@muc.de>
> 
> (i) Emacs -Q.
> (ii) On a single frame, arrange buffers *scratch*, test-edebug.el, and
>   some other substantial buffer, that I call emacs.README.
> (iii) Put point in emacs.README somewhere other than point-max.
> (iv) Instrument test-edebug for edebug with C-u C-M-x.
> (iv)a Put point into window *scratch*.
> (v) M-: (test-edebug).
> (vi) Step through test-edebug using the space key.
> (vii) Note that the second text insertion happens where point was in the
>   window, not at point-max.  This is the bug.

Yes, I see the problem, but setting edebug-save-windows to nil
eliminates it.  So I think we already have a solution for the rare
situations where this is an issue.