unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Vincent Belaïche" <vincent.belaiche@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>, Stefan Kangas <stefan@marxist.se>
Cc: "Göran Uddeborg" <goeran@uddeborg.se>,
	"Vincent Belaïche" <vincent.b.1@hotmail.fr>,
	5852@debbugs.gnu.org
Subject: bug#5852: 23.1; Incorrect references in ses-mode
Date: Fri, 29 Dec 2023 13:03:07 +0100	[thread overview]
Message-ID: <CAPAOBV-m5bYvSH+V9zFexuTL6768pBzm2sHzv36VhfgyaB3HGg@mail.gmail.com> (raw)
In-Reply-To: <8735s2zydl.fsf@gnus.org>

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öran 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 à 08:44, Lars Ingebrigtsen <larsi@gnus.org> a écrit :
>
> Vincent Belaïche <vincent.belaiche@gmail.com> 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





  parent reply	other threads:[~2023-12-29 12:03 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-07 16:15 bug#5852: 23.1; Incorrect references in ses-mode Göran Uddeborg
2020-02-29  3:14 ` Stefan Kangas
2020-02-29 20:13   ` Vincent Belaïche
2021-07-18 13:36     ` Lars Ingebrigtsen
2021-07-24 21:46       ` Vincent Belaïche
2021-07-25  5:48         ` Vincent Belaïche
2021-07-25  5:56           ` Vincent Belaïche
2021-07-25  6:17             ` Vincent Belaïche
2021-07-25  6:18               ` Vincent Belaïche
2021-07-25  6:32                 ` Vincent Belaïche
2021-07-25  6:38                   ` Vincent Belaïche
2021-07-25  6:44                     ` Lars Ingebrigtsen
2021-07-25 17:27                       ` Vincent Belaïche
2021-07-30 21:01                         ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-02 21:02                           ` Vincent Belaïche
2023-12-29 12:03                       ` Vincent Belaïche [this message]
2023-12-29 12:36                         ` Stefan Kangas
2023-12-29 14:19                           ` Eli Zaretskii
2023-12-29 15:19                             ` Vincent Belaïche
2023-12-29 22:01                         ` Göran Uddeborg
2024-01-14 13:17 ` Mattias Engdegård
2024-01-14 13:35   ` Mattias Engdegård

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPAOBV-m5bYvSH+V9zFexuTL6768pBzm2sHzv36VhfgyaB3HGg@mail.gmail.com \
    --to=vincent.belaiche@gmail.com \
    --cc=5852@debbugs.gnu.org \
    --cc=goeran@uddeborg.se \
    --cc=larsi@gnus.org \
    --cc=stefan@marxist.se \
    --cc=vincent.b.1@hotmail.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).