From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Update tables 8.3.1 Date: Sat, 08 Aug 2015 23:18:51 +0200 Message-ID: <87614p1nt0.fsf@gmx.us> References: <55C63F40.4050400@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOBWC-0005uC-Rt for emacs-orgmode@gnu.org; Sat, 08 Aug 2015 17:19:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOBW9-00066i-Le for emacs-orgmode@gnu.org; Sat, 08 Aug 2015 17:19:04 -0400 Received: from plane.gmane.org ([80.91.229.3]:51876) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOBW9-00066P-E9 for emacs-orgmode@gnu.org; Sat, 08 Aug 2015 17:19:01 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZOBW7-0002Ka-07 for emacs-orgmode@gnu.org; Sat, 08 Aug 2015 23:18:59 +0200 Received: from p5b0dcb05.dip0.t-ipconnect.de ([91.13.203.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Aug 2015 23:18:58 +0200 Received: from rasmus by p5b0dcb05.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Aug 2015 23:18:58 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hi Scott, Scott Randby writes: > I'm beginning to wonder if upgrading to 8.3.1 is a mistake. I had no > trouble at all with 8.2.10, but many problems with 8.3.1. My latest > issue follows. We appreciate your bug reports. If you have got the time, please keep testing Org 8.3 and let us know about errors you find. > When I update a table (using C-u C-c *, or C-u C-c C-c, or M-x > org-table-recalculate), the table doesn't update and I get the following > error message: > > Wrong type argument: number-or-marker-p, (4) I see this as well. > I can provide example tables if necessary. The example below is sufficient. > I tried the example table given in section 3.5.10 of the documentation > and I get the same error. > > |---+---------+--------+--------+--------+-------+------| > | | Student | Prob 1 | Prob 2 | Prob 3 | Total | Note | > |---+---------+--------+--------+--------+-------+------| > | ! | | P1 | P2 | P3 | Tot | | > | # | Maximum | 10 | 15 | 25 | 50 | 10.0 | > | ^ | | m1 | m2 | m3 | mt | | > |---+---------+--------+--------+--------+-------+------| > | # | Peter | 10 | 8 | 23 | 41 | 8.2 | > | # | Sam | 2 | 4 | 3 | 9 | 1.8 | > |---+---------+--------+--------+--------+-------+------| > | | Average | | | | 25.0 | | > | ^ | | | | | at | | > | $ | max=50 | | | | | | > |---+---------+--------+--------+--------+-------+------| > > #+TBLFM: $6=vsum($P1..$P3)::$7=10*$Tot/$max;%.1f::$at=vmean(@-II..@-I);%.1f > > Error message: Wrong type argument: number-or-marker-p, (6) > > I will appreciate any help with this issue. If it can't be fixed, I will > have to downgrade to 8.2.10. Can you try the attached patch? It seems to work on the example from the manual, but you likely have more straining examples at hand. Thanks, Rasmus -- Enough with the bla bla! --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-org-table-Fix-typo.patch >From 5fbcbffea86757e068a866643f3e7470dae1e10f Mon Sep 17 00:00:00 2001 From: Rasmus Date: Sat, 8 Aug 2015 23:11:39 +0200 Subject: [PATCH 1/5] org-table: Fix typo * org-table.el (org-table-goto-field): Fix typo. --- lisp/org-table.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-table.el b/lisp/org-table.el index 62de402..ef6427c 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -2567,7 +2567,7 @@ This function assumes the table is already analyzed (i.e., using (string-to-number (match-string 2 ref)))) (t (user-error "Unknown field: %s" ref)))) (line (car coordinates)) - (column (cdr coordinates)) + (column (cadr coordinates)) (create-new-column (if (functionp create-column-p) (funcall create-column-p column) create-column-p))) -- 2.5.0 --=-=-=--