emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug in table formular - last column specifier broken
@ 2015-12-18  6:49 Stefan Nobis
  2015-12-18 19:03 ` Nick Dokos
  2015-12-18 21:34 ` Nicolas Goaziou
  0 siblings, 2 replies; 3+ messages in thread
From: Stefan Nobis @ 2015-12-18  6:49 UTC (permalink / raw)
  To: emacs-orgmode

Hi.

With the last update to Org-mode version 8.3.2
(8.3.2-48-g700b8e-elpaplus) the following table formular breaks:

--8<---------------cut here---------------start------------->8---

  |     |  Mon |  Tue |  Wed | Thu | Fri | Sat | Sun |      Sum |
  |-----+------+------+------+-----+-----+-----+-----+----------|
  |     |      | 1:30 | 2:00 |     |     |     |     | 03:30:00 |
  |-----+------+------+------+-----+-----+-----+-----+----------|
  | Sum |      |      |      |     |     |     |     | 00:00:00 |
  #+TBLFM: $>=vsum($<<..$>>);T

--8<---------------cut here---------------end--------------->8---

The error message is: Invalid table range specifier `9'.

When I change the "$>" to "$9" the formula works as expected.

-- 
Until the next mail...,
Stefan.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug in table formular - last column specifier broken
  2015-12-18  6:49 Bug in table formular - last column specifier broken Stefan Nobis
@ 2015-12-18 19:03 ` Nick Dokos
  2015-12-18 21:34 ` Nicolas Goaziou
  1 sibling, 0 replies; 3+ messages in thread
From: Nick Dokos @ 2015-12-18 19:03 UTC (permalink / raw)
  To: emacs-orgmode

Stefan Nobis <stefan-ml@snobis.de> writes:

> Hi.
>
> With the last update to Org-mode version 8.3.2
> (8.3.2-48-g700b8e-elpaplus) the following table formular breaks:
>
>
>   |     |  Mon |  Tue |  Wed | Thu | Fri | Sat | Sun |      Sum |
>   |-----+------+------+------+-----+-----+-----+-----+----------|
>   |     |      | 1:30 | 2:00 |     |     |     |     | 03:30:00 |
>   |-----+------+------+------+-----+-----+-----+-----+----------|
>   | Sum |      |      |      |     |     |     |     | 00:00:00 |
>   #+TBLFM: $>=vsum($<<..$>>);T
>
>
> The error message is: Invalid table range specifier `9'.
>
> When I change the "$>" to "$9" the formula works as expected.

In case it helps, I bisected this to the following commit:

c651e150cc8fb230fca99dfff27caedfddced8ff is the first bad commit
commit c651e150cc8fb230fca99dfff27caedfddced8ff
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Date:   Thu Nov 12 23:12:18 2015 +0100

    org-table: Fix `org-table-get-range' with column formulas
    
    * lisp/org-table.el (org-table-get-stored-formulas): Store complete
      column formulas including the "$" sign.  Remove interactive status.
    (org-table-get-range): Handle nicely "$n..$m" ranges.  Apply
    changes to `org-table-get-stored-formulas'.  Rename some bindings for
    clarity.
    (org-table-expand-lhs-ranges): Ignore column formalas.
    (org-table-remote-reference-indirection): Refactor function.
    
    Reported-by: Junpeng Qiu <qjpchmail@gmail.com>
    <http://permalink.gmane.org/gmane.emacs.orgmode/102861>

--
Nick

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug in table formular - last column specifier broken
  2015-12-18  6:49 Bug in table formular - last column specifier broken Stefan Nobis
  2015-12-18 19:03 ` Nick Dokos
@ 2015-12-18 21:34 ` Nicolas Goaziou
  1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2015-12-18 21:34 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

Stefan Nobis <stefan-ml@snobis.de> writes:

> With the last update to Org-mode version 8.3.2
> (8.3.2-48-g700b8e-elpaplus) the following table formular breaks:
>
>
>   |     |  Mon |  Tue |  Wed | Thu | Fri | Sat | Sun |      Sum |
>   |-----+------+------+------+-----+-----+-----+-----+----------|
>   |     |      | 1:30 | 2:00 |     |     |     |     | 03:30:00 |
>   |-----+------+------+------+-----+-----+-----+-----+----------|
>   | Sum |      |      |      |     |     |     |     | 00:00:00 |
>   #+TBLFM: $>=vsum($<<..$>>);T
>
>
> The error message is: Invalid table range specifier `9'.
>
> When I change the "$>" to "$9" the formula works as expected.

Fixed. Thank you.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-12-18 21:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-18  6:49 Bug in table formular - last column specifier broken Stefan Nobis
2015-12-18 19:03 ` Nick Dokos
2015-12-18 21:34 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).