From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vincent =?UTF-8?Q?Bela=C3=AFche?= Newsgroups: gmane.emacs.bugs Subject: bug#5852: 23.1; Incorrect references in ses-mode Date: Fri, 29 Dec 2023 13:03:07 +0100 Message-ID: References: <845zfpi242.fsf@gmail.com> <871r7vrbez.fsf@gnus.org> <8735s2zydl.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38843"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?Q?G=C3=B6ran?= Uddeborg , Vincent =?UTF-8?Q?Bela=C3=AFche?= , 5852@debbugs.gnu.org To: Lars Ingebrigtsen , Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 29 13:04:32 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 1rJBbL-0009sD-EX for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Dec 2023 13:04:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJBav-0006mU-Ud; Fri, 29 Dec 2023 07:04:06 -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 1rJBas-0006lw-CB for bug-gnu-emacs@gnu.org; Fri, 29 Dec 2023 07:04:02 -0500 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 1rJBas-00041H-2J for bug-gnu-emacs@gnu.org; Fri, 29 Dec 2023 07:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rJBar-0004QJ-Pc for bug-gnu-emacs@gnu.org; Fri, 29 Dec 2023 07:04:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Vincent =?UTF-8?Q?Bela=C3=AFche?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Dec 2023 12:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5852 X-GNU-PR-Package: emacs Original-Received: via spool by 5852-submit@debbugs.gnu.org id=B5852.170385140716962 (code B ref 5852); Fri, 29 Dec 2023 12:04:01 +0000 Original-Received: (at 5852) by debbugs.gnu.org; 29 Dec 2023 12:03:27 +0000 Original-Received: from localhost ([127.0.0.1]:40840 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJBaJ-0004PV-B8 for submit@debbugs.gnu.org; Fri, 29 Dec 2023 07:03:27 -0500 Original-Received: from mail-yw1-x112f.google.com ([2607:f8b0:4864:20::112f]:47295) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJBaG-0004PH-Th for 5852@debbugs.gnu.org; Fri, 29 Dec 2023 07:03:25 -0500 Original-Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-5e745891a69so54253597b3.2 for <5852@debbugs.gnu.org>; Fri, 29 Dec 2023 04:03:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703851399; x=1704456199; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=SUtow/fEBYGjjYkD33HhxSDbGNc2aews9q38soeLaJc=; b=QwFhA2wUe2WeuM+Txh4VMLujg14+yaAeR3S2B7I3TCNVoqDPBNZyY1wpa8HKcFrpYR JHhXGSikcchbaXAYaeFSDPvK8iE1AmrWU4+VJP7gOjrmpaqkSBVBOemgBMgTQmqLCo0u aQ/Lg7T3mW1sZWZG+nD3RlHTkFVolIcFGG2M7jkCrrGRXBIk6e3b+mZ8++cxIYCf2R3b +gZF064RDsysZPyZoQHohgmmDSDmJYpsuGrK+LUHSQ5I2Eq3NW/XrgbHQYmVvVP2QLZG uoxkKD7HGP6/vbDPXDpwyDRIrGbjS8n+okvYbkvcMjypf7yLq1U3Eqw0qi8W/EhO+rDy BJwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703851399; x=1704456199; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SUtow/fEBYGjjYkD33HhxSDbGNc2aews9q38soeLaJc=; b=TfVnhfu518LzkWux73aOs789ZDCvRdPWseYj8uc6n/FrA1gZr+7FXX4Qn263WdSnx+ xOch1N7dfSgGQncLXuLtgzYswLmITnFDc997WPaSveKNferZ9CUT7JlRJ3yU83MnjxYz BYurg8sYvRxEp0AlIVg5OlIUntwYamIYMPuVsIshwuttUlLHuHF2XqD/Lcnbc9nWe/E7 D63gcZDPLJbebqXjan4EjbQFq8tg9yAn1OtmhbrdlLC5wT19YLAAYdlA+EsqLdu68eys xVTDR9uOvnx4zkgQECfHQXjici4tstWHU5d1ZGTFHOl1uirUwC40seGBhBaMoMh2gRC3 CL3w== X-Gm-Message-State: AOJu0YyYgdf37Z4wSPbQZWbHLEE2N8o6BTUxfyu8J94udl40Racu222u cr8g23fjr7P8QdXHnAZuzzNhw817JR4Nx8IkCWI= X-Google-Smtp-Source: AGHT+IFMsJExzGP8jLBwq/TpmcaUwaI4lTjFDE1x8JOFNDm4awnsvt2jo+krNneOYPXPyS+c3+jSWeLrBDxmqNcGJCo= X-Received: by 2002:a81:73c2:0:b0:5de:a315:b72c with SMTP id o185-20020a8173c2000000b005dea315b72cmr7659906ywc.95.1703851399023; Fri, 29 Dec 2023 04:03:19 -0800 (PST) In-Reply-To: <8735s2zydl.fsf@gnus.org> 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:277010 Archived-At: Dear all, I am _very very_ glad to a announce that I have fixed bug#5852 ! I just pushed the fix to master now. Thank you again to G=C3=B6ran for the report, without which this would not have been impossible. The bug was only loosely time dependent. What happened is that the data area update is deferred on the command hook, if I try to reproduce the bug by doing some kdb macro, it seems that the command hook is not called in between the two yanks, and this hides the bug. That was my mistake during my first investigation. Translating the manual to French helped me be more aware of all the arcanes of SES. The root cause of the bug has nothing to do with copy/cut/paste, it was far deeper, the formula setting function was bugged, as it did not registered cells the reference list of which is changed by the formula setting as needing rewrite to the data area ! It was hard to realized where the bug was, because the data structures in memory was OK, but there was a discrepancy between the data areay and the data structures, so the bugs only gets manifest when you reload a sheet --- or as in the new test if you call ses-mode again. So as long as you do not reload a sheet everything is OK. @Stefan Kangas is there any record book for longest lived bugs, maybe I can get a prize for this 13 years old bug, unless Richard has left some bug form the 1970 or so version of Emacs :-P ? Happy end of year to you all ! Vincent. Le dim. 25 juil. 2021 =C3=A0 08:44, Lars Ingebrigtsen a = =C3=A9crit : > > Vincent Bela=C3=AFche writes: > > > Just to say that I did the test manually on my home PC a couple of > > time, and I could not reproduce the problem. > > That is quite annoying, yesterday I reproduced it on my office PC once. > > Yeah, timing dependent bugs are really annoying to try to debug.. > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no