From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?G=C3=B6ran?= Uddeborg Newsgroups: gmane.emacs.bugs Subject: bug#5852: 23.1; Incorrect references in ses-mode Date: Wed, 7 Apr 2010 18:15:14 +0200 Message-ID: <201004071615.o37GFETu010061@freddi.uddeborg> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1270692271 7204 80.91.229.12 (8 Apr 2010 02:04:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 8 Apr 2010 02:04:31 +0000 (UTC) To: 5852@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 08 04:04:24 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nzh6T-0000Mr-79 for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Apr 2010 04:04:21 +0200 Original-Received: from localhost ([127.0.0.1]:41226 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nzh6S-0003xz-EY for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Apr 2010 22:04:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NzY7F-0002dP-Uw for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2010 12:28:33 -0400 Original-Received: from [140.186.70.92] (port=50593 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzY7E-0002dE-Hx for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2010 12:28:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NzY7D-0006NF-4N for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2010 12:28:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32867) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzY7C-0006N9-W0 for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2010 12:28:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NzY4n-0003dm-Qr; Wed, 07 Apr 2010 12:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?G=C3=B6ran?= Uddeborg Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Apr 2010 16:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 5852 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.127065750313979 (code B ref -1); Wed, 07 Apr 2010 16:26:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Apr 2010 16:25:03 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzY3q-0003dI-IO for submit@debbugs.gnu.org; Wed, 07 Apr 2010 12:25:02 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzXue-0003YY-KB for submit@debbugs.gnu.org; Wed, 07 Apr 2010 12:15:33 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:59143) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NzXuZ-0000Jg-EO for submit@debbugs.gnu.org; Wed, 07 Apr 2010 12:15:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NzXuY-0003yN-NV for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2010 12:15:26 -0400 Original-Received: from [140.186.70.92] (port=41020 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzXuX-0003xB-15 for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2010 12:15:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NzXuV-0004yJ-05 for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2010 12:15:24 -0400 Original-Received: from smtprelay-h22.telenor.se ([195.54.99.197]:36243) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzXuU-0004xg-N0 for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2010 12:15:22 -0400 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h22.telenor.se (Postfix) with ESMTP id 2F52BC3DC for ; Wed, 7 Apr 2010 18:15:17 +0200 (CEST) X-SENDER-IP: [83.227.168.100] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApZeAJ9MvEtT46hkPGdsb2JhbACED4NVh3EBi0sMAQEBATUtvFGFCQQ X-IronPort-AV: E=Sophos;i="4.51,379,1267398000"; d="scan'208";a="60743808" Original-Received: from ua-83-227-168-100.cust.bredbandsbolaget.se (HELO mimmi.uddeborg.se) ([83.227.168.100]) by ipb2.telenor.se with ESMTP; 07 Apr 2010 18:15:17 +0200 Original-Received: from freddi.uddeborg (freddi.uddeborg [172.17.0.3]) by mimmi.uddeborg.se (8.14.3/8.14.3) with ESMTP id o37GFETI010548 for ; Wed, 7 Apr 2010 18:15:15 +0200 Original-Received: from freddi.uddeborg (localhost.localdomain [127.0.0.1]) by freddi.uddeborg (8.14.3/8.14.2) with ESMTP id o37GFE9U010062 for ; Wed, 7 Apr 2010 18:15:14 +0200 Original-Received: (from goeran@localhost) by freddi.uddeborg (8.14.3/8.14.2/Submit) id o37GFETu010061; Wed, 7 Apr 2010 18:15:14 +0200 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Wed, 07 Apr 2010 12:25:00 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 07 Apr 2010 12:26:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Wed, 07 Apr 2010 22:00:02 -0400 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36036 Archived-At: 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=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'target_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'' 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 ( + SPC B 1 SPC A 2 C-n C-o 3 ( + SPC B 2 SPC A 3 C-n C-o C-p 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 M-x r e p o r t - e m a 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=f6ran/x.ses... Wrote /home/g=f6ran/x.ses