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; we need buffer-point and set-buffer-point, perhaps. Date: Mon, 31 Oct 2022 15:16:28 +0200 Message-ID: <83v8o0dtg3.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11133"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 31 14:22:41 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 1opUkS-0002fH-Nk for ged-emacs-devel@m.gmane-mx.org; Mon, 31 Oct 2022 14:22:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opUem-00038E-GQ; Mon, 31 Oct 2022 09:16:48 -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 1opUek-0002yo-08 for emacs-devel@gnu.org; Mon, 31 Oct 2022 09:16:46 -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 1opUej-00048s-HN; Mon, 31 Oct 2022 09:16:45 -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=jqPOWBPTxyQWyyHl6pVfCQ5+NxZeEL/NJx6pdj+O+Xs=; b=JuI1wLkPhhxC TKLReQcT3W0Oi1Fgfgl+wcB/FzWkoXXqrKNEt9T9MizY5x0buCoI1Ynpzcm2WGQ86qVP+LkDiexvt +dX0eAPq3EKnz9BzJAVicMqi3FQ6t9inmz6Dv07MVnBfxsZt8mO4S4jMbBVkP2LnZ/5FPgxsOfUaK Gu2j4Rtqi6g4f6288mS8pTGh3GIIgbb5TbpBlQN7eU4X3d0GzmqWYeWM+I1DBdv/RNKTEhRLavRK3 AywxRtMO2Hqpjb31/h80dZOXdKKsh/CgiPR9UtcMn7LwXg/Tg+CwEDZ4WlVg4UiaIra4Zba1RZGJM g3vswhLt1RfzWN0PE9TNNw==; 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 1opUeh-0006yM-Uz; Mon, 31 Oct 2022 09:16:45 -0400 In-Reply-To: (message from Alan Mackenzie on Mon, 31 Oct 2022 11:43:15 +0000) 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+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:298850 Archived-At: > Date: Mon, 31 Oct 2022 11:43:15 +0000 > From: Alan Mackenzie > > A few weeks ago, I was attempting to edebug a program which itself > scanned through a buffer B. That buffer was also displayed in a window > (or possibly two windows). Each time the program went into edebug, the > point in B got corrupted. > > Setting edebug-save-displayed-buffer-points didn't help. Did you try switch-to-buffer-preserve-window-point?