From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Subject: Re: Bug: Org Table: Field formulas with hline-address on right-hand side don't work anymore [7.8.09] Date: Thu, 10 May 2012 07:15:16 +0000 (UTC) Message-ID: References: <1209384792.845778.1336460118982.JavaMail.open-xchange@email.1und1.de> <87obpyfvb3.fsf@Rainer.invalid> <871umthpo3.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:32899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSNfb-0007ra-6i for emacs-orgmode@gnu.org; Thu, 10 May 2012 03:20:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSNfW-0000Wt-BS for emacs-orgmode@gnu.org; Thu, 10 May 2012 03:20:14 -0400 Received: from plane.gmane.org ([80.91.229.3]:58675) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSNfW-0000Wg-4M for emacs-orgmode@gnu.org; Thu, 10 May 2012 03:20:10 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SSNfP-0001b0-Uw for emacs-orgmode@gnu.org; Thu, 10 May 2012 09:20:04 +0200 Received: from hy.iti.de ([178.15.36.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 May 2012 09:20:03 +0200 Received: from i_inbox by hy.iti.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 May 2012 09:20:03 +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 First I have to apologize for posting the bug report twice. The first report has been sent from my company. I thought that this bug-report does not make it to the list because the e-mail address at my company is not subscribed to the list. Therefore, I subscribed with my private e-mail address and sent the bug report once more. Now, some digging about the bug. I have investigated org-table-recalculate and the functions called therein. The only place where @II is handled correctly is: org-table-get-descriptor-line This function is only called within: org-table-get-range This function is called at the end of: org-table-expand-lhs-ranges But at the beginning of this function the cond condition (string-match "^@-?[-+I0-9]+\\$-?[0-9]+$" lhs) already filteres out this case. The field descriptor is not regarded as a range but as a fixed field. I changed (string-match "^@-?[-+I0-9]+\\$-?[0-9]+$" lhs) into (string-match "^@-?[-+0-9]+\\$-?[0-9]+$" lhs) without the I in the first character set. This seems to fix the bug. But I am not sure about the side effects. Best regards, Tobias