From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: remote reference Date: Sat, 11 Dec 2010 15:46:36 +0100 Message-ID: <441B77CA-CAC9-4317-BDEB-CCC8C275BD00@gmail.com> References: <2ACD6FB3-B415-4AE7-8D62-9450922514D0@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=58643 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRQio-0001AU-PC for emacs-orgmode@gnu.org; Sat, 11 Dec 2010 09:46:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PRQin-0007gk-DU for emacs-orgmode@gnu.org; Sat, 11 Dec 2010 09:46:50 -0500 Received: from mail-ey0-f177.google.com ([209.85.215.177]:40146) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PRQin-0007gO-8u for emacs-orgmode@gnu.org; Sat, 11 Dec 2010 09:46:49 -0500 Received: by eyd9 with SMTP id 9so4000581eyd.36 for ; Sat, 11 Dec 2010 06:46:47 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Karl Eichwalder Cc: emacs-orgmode@gnu.org On Dec 11, 2010, at 3:42 PM, Karl Eichwalder wrote: > Carsten Dominik writes: > >> Fixed, thanks. > > It is not fixed in the 23.2.91 pre-release, which comes with org > 6.33x. > It did not check any other repository (which one?). This is fixed in our own repository at http://repo.or.cz/w/org-mode.git It will be in Emacs only with the Emacs 24 release. - Carsten > >> On May 12, 2010, at 1:26 PM, Karl Eichwalder wrote: >> >>> Carsten Dominik writes: >>> >>>> On May 11, 2010, at 9:16 PM, Karl Eichwalder wrote: >>>>> C-c C-c in a TBLFM with a remote table reference updates the table >>>>> as >>>>> expected, but also jumps to the referenced table in the remote >>>>> file. >>>>> Is >>>>> this intended? If yes, is it possible to avoid it? >>>> >>>> Can you please be more specific. What exactly happens? >>> >>> Consider the following two files: >>> >>> * 2009 >>> #+TBLNAME: 2009 >>> :PROPERTIES: >>> :ID: ea32e5b5-31ba-468e-8e31-3e0d09696bb0 >>> :END: >>> |-----+-------| >>> | mm | km | >>> |-----+-------| >>> | all | 946.8 | >>> |-----+-------| >>> >>> * 2010 >>> #+TBLNAME: 2010 >>> :PROPERTIES: >>> :ID: e0df84c4-8abc-458f-a1ee-eb53eb71b4f0 >>> :END: >>> |-----+-------+-------+-------| >>> | mm | km | B km | G km | >>> |-----+-------+-------+-------| >>> | all | 249.4 | 429.2 | 678.6 | >>> |-----+-------+-------+-------| >>> >>> * all >>> :PROPERTIES: >>> :ID: 44751a7f-73a4-4c07-b3c2-e3edb9042acd >>> :END: >>> #+TBLNAME: all >>> |------+--------| >>> | yyyy | km | >>> |------+--------| >>> | 2009 | | >>> | 2010 | 678.6 | >>> |------+--------| >>> | all | 1625.4 | >>> |------+--------| >>> #+TBLFM: @2$2=remote(ea32e5b5-31ba-468e-8e31-3e0d09696bb0,$LR2);%. >>> 1f::@3$2=remote(2010,$LR4);%.1f::$LR2=vsum(@2$2..@-1);%.1f >>> >>> Then, in the 2010 file, eval the formula of the "all" table by >>> pressing >>> C-c C-c. >>> ==> >>> >>> It takes the km value from the 2009 file, but also puts the cursor >>> (point) into the 2009 file in front of the ID: >>> >>> * 2009 >>> #+TBLNAME: 2009 >>> :PROPERTIES: >>> :ID: -!-ea32e5b5-31ba-468e-8e31-3e0d09696bb0 >>> :END: >>> |-----+-------| >>> | mm | km | >>> |-----+-------| >>> | all | 946.8 | >>> |-----+-------| >>> >>> -=-=-=-=-=-=-=-=-=-=-=-=-=- cut here -=-=-=-=-=-=-=-=-=-=-=-=-=- >>> >>> I'd prefer if the point would stay in the 2010 file. >>> >>> -- >>> Karl Eichwalder >>> >> >> - Carsten >> >> >> >> > > -- > Karl Eichwalder