From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!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: Sat, 29 Feb 2020 21:13:01 +0100 Message-ID: <845zfpi242.fsf@gmail.com> References: <201004071615.o37GFETu010061@freddi.uddeborg> Reply-To: Vincent =?UTF-8?Q?Bela=C3=AFche?= Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="57573"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?Q?G=C3=B6ran?= Uddeborg , 5852@debbugs.gnu.org, Vincent =?UTF-8?Q?Bela=C3=AFche?= To: stefan@marxist.se Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 29 21:14:12 2020 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 1j88V1-000Ett-Mp for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Feb 2020 21:14:11 +0100 Original-Received: from localhost ([::1]:35534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j88V0-0004Fe-Q4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Feb 2020 15:14:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48105) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j88Ut-0004FQ-BS for bug-gnu-emacs@gnu.org; Sat, 29 Feb 2020 15:14:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j88Ur-000811-UQ for bug-gnu-emacs@gnu.org; Sat, 29 Feb 2020 15:14:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57706) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j88Ur-00080w-Qz for bug-gnu-emacs@gnu.org; Sat, 29 Feb 2020 15:14:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j88Ur-0006Pv-LP for bug-gnu-emacs@gnu.org; Sat, 29 Feb 2020 15:14: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: Sat, 29 Feb 2020 20:14: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.158300719924604 (code B ref 5852); Sat, 29 Feb 2020 20:14:01 +0000 Original-Received: (at 5852) by debbugs.gnu.org; 29 Feb 2020 20:13:19 +0000 Original-Received: from localhost ([127.0.0.1]:35446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j88UA-0006Om-RZ for submit@debbugs.gnu.org; Sat, 29 Feb 2020 15:13:19 -0500 Original-Received: from smtp06.smtpout.orange.fr ([80.12.242.128]:17992 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j88U8-0006OY-Bh for 5852@debbugs.gnu.org; Sat, 29 Feb 2020 15:13:17 -0500 Original-Received: from AigleRoyal ([90.32.173.209]) by mwinf5d41 with ME id 8kD62200A4XS2Fu03kD6z7; Sat, 29 Feb 2020 21:13:09 +0100 X-ME-Helo: AigleRoyal X-ME-Auth: dmluY2VudGJlbGFpY2hlQG9yYW5nZS5mcg== X-ME-Date: Sat, 29 Feb 2020 21:13:09 +0100 X-ME-IP: 90.32.173.209 In-Reply-To: <874kva84pu.fsf@stefankangas.se> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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" Xref: news.gmane.io gmane.emacs.bugs:176692 Archived-At: Dear Stefan and G=C3=BCran, I confirm that the bug still exists, I followed the instructions by G=C3=BCran and I reproduced the same result. Actually, after doing all these and typing: M-x ses-repair-cell-reference-all I get the following answer=C2=A0: --8<----8<----8<----8<----8<-- begin -->8---->8---->8---->8---->8---- Warning (emacs): ----------------------------------------------------------= ------ Some references were corrupted. The following is a list where each element ELT is such that (car ELT) is the reference of cell CELL with corruption, and (cdr ELT) is a property list where * property =E2=80=98:corrupt-property=E2=80=99 means that property =E2=80=98:ses-repair-reference=E2=80=99 of cell CELL was initial= ly non nil, * property =E2=80=98:missing=E2=80=99 is a list of missing references * property =E2=80=98:irrelevant=E2=80=99 is a list of non needed references ((B2 :irrelevant (B4))) --8<----8<----8<----8<----8<-- end -->8---->8---->8---->8---->8---- This shows that the cut and paste can actually breaks the reference list in some cases. Please note that 'ses-repair-cell-reference-all' is the command that I added to SES after I became the maintainer in order to fix broken reference lists, as this can still happen if you type C-g during some cell editing post-commands. However I hadn't realized that even by normal editing (no C-g) you can get broken references. I will investigate why and feed back once I have a better idea of what is happening. VBR, Vincent. Le 29/02/2020 =C3=A0 04:14, Stefan Kangas a =C3=A9crit : > Hi Vincent, > > Could you please take a look at the below bug report? It was reported > in 2010, before you were listed as the maintainer of ses.el. > > Thanks in advance. > > Best regards, > Stefan Kangas > > > G=C3=B6ran Uddeborg writes: > >> I discovered this when emacs sometimes complains that I have circular >> references in ses-mode files where there shouldn't be any. When >> investigating the ses file I've noticed some cells contain references >> that are incorrect. When I remove these incorrect references, the >> complaints about circular references go away, so I strongly suspect >> the problems are related. And even if I'm wrong, the incorrect >> references is a bug. >> >> While I haven't been able to create a simple test case where I get a >> circular reference complaint, I can easily get to a state where there >> are incorrect references. Create a ses file with these keystrokes: >> >> C-x C-f s . s e s 1 C-o 2 >> ( + SPC B 1 SPC A 2 >> C-n C-o 3 ( + SPC B 2 SPC A 3 C-a >> C-o 4 C-p C-SPC C-f M-w C-n C-b C-y C-n C-y >> C-x C-s >> >> In the resulting file, cell B2 has cell B4 incorrectly listed among >> its references: >> >> (ses-cell B2 3 (+ B1 A2) nil (B3 B4)) >> >> Only B3 does actually reference B2. >> >> >> In GNU Emacs 23.1.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.18.3) >> of 2009-12-02 on x86-3.fedora.phx.redhat.com >> Windowing system distributor `Fedora Project', version 11.0.10705000 >> configured using `configure '--build=3Dx86_64-redhat-linux-gnu' '--host= =3Dx86_64-redhat-linux-gnu' '--target=3Dx86_64-redhat-linux-gnu' '--program= -prefix=3D' '--prefix=3D/usr' '--exec-prefix=3D/usr' '--bindir=3D/usr/bin' = '--sbindir=3D/usr/sbin' '--sysconfdir=3D/etc' '--datadir=3D/usr/share' '--i= ncludedir=3D/usr/include' '--libdir=3D/usr/lib64' '--libexecdir=3D/usr/libe= xec' '--localstatedir=3D/var' '--sharedstatedir=3D/var/lib' '--mandir=3D/us= r/share/man' '--infodir=3D/usr/share/info' '--with-dbus' '--with-gif' '--wi= th-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm'= '--with-x-toolkit=3Dgtk' 'build_alias=3Dx86_64-redhat-linux-gnu' 'host_ali= as=3Dx86_64-redhat-linux-gnu' 'target_alias=3Dx86_64-redhat-linux-gnu' 'CFL= AGS=3D-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexcep= tions -fstack-protector --param=3Dssp-buffer-size=3D4 -m64 -mtune=3Dgeneric= '' >> >> Important settings: >> value of $LC_ALL: nil >> value of $LC_COLLATE: nil >> value of $LC_CTYPE: nil >> value of $LC_MESSAGES: nil >> value of $LC_MONETARY: nil >> value of $LC_NUMERIC: nil >> value of $LC_TIME: nil >> value of $LANG: sv_SE.utf8 >> value of $XMODIFIERS: nil >> locale-coding-system: utf-8-unix >> default-enable-multibyte-characters: t >> >> Major mode: SES >> >> Minor modes in effect: >> tooltip-mode: t >> tool-bar-mode: t >> mouse-wheel-mode: t >> menu-bar-mode: t >> file-name-shadow-mode: t >> global-font-lock-mode: t >> font-lock-mode: t >> blink-cursor-mode: t >> global-auto-composition-mode: t >> auto-composition-mode: t >> auto-encryption-mode: t >> auto-compression-mode: t >> line-number-mode: t >> transient-mark-mode: t >> >> Recent input: >> 1 C-o 2 =20 >> ( + SPC B 1 SPC A 2 =20 >> C-n C-o 3 ( + SPC B 2 SPC A 3 C-n=20 >> C-o C-p C-o 4 C-p C-SPC C-f M-w C-n C-b C-y=20 >> C-n C-y C-x C-s M-x r e p o r t - e m a=20 >> c s - b u g >> >> Recent messages: >> [2 times] >> Yanking...done >> Mark set >> Yanking...done >> [2 times] >> Yanking...done >> [2 times] >> Yanking...done >> Saving file /home/g=3Df6ran/x.ses... >> Wrote /home/g=3Df6ran/x.ses