From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: link abbreviation with multiple params, e. g. for geo locations Date: Tue, 11 Jun 2013 07:12:01 -0600 Message-ID: <8738soh6e1.fsf@gmail.com> References: <87a9n35g25.fsf@gmail.com> <87fvwuuez8.fsf@gmail.com> <87k3m4mozj.fsf@gmail.com> <874nd7ks9b.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmSvQ-0001uW-2K for emacs-orgmode@gnu.org; Tue, 11 Jun 2013 14:04:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmSvO-00088X-GC for emacs-orgmode@gnu.org; Tue, 11 Jun 2013 14:04:07 -0400 Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]:61753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmSvO-00088L-Ag for emacs-orgmode@gnu.org; Tue, 11 Jun 2013 14:04:06 -0400 Received: by mail-pa0-f52.google.com with SMTP id kq13so2734498pab.39 for ; Tue, 11 Jun 2013 11:04:05 -0700 (PDT) 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: Michael Brand Cc: Org Mode Michael Brand writes: > Hi Eric > > On Sun, Jun 9, 2013 at 9:18 PM, Eric Schulte wrote: >> Export buffers are sometimes modified or narrowed during the export >> process, so I wouldn't depend too much on the absolute values of markers >> generated during export. As long as the heading in which the marker >> lives seems to be correct I'd count it as a success. > > Ok. > > Out of curiosity I also tried to assign a Lisp marker with :var > > #+HEADER: :var marker-var=(identity org-babel-current-src-block-location) > > which leads to > > executing Emacs-Lisp code block (func)... > (marker-var (quote #)) > eval: Invalid read syntax: "#" > You'll get this if you do the following. ;; -*- emacs-lisp -*- (read-from-string (format "%s" (point-marker))) This is because unlike most lisp objects, point markers can not be read in the same syntax they print as. Babel only supports passing strings, numbers, and lists of strings and numbers as variables between code blocks. If you convert the point-marker to a point (integer) then it will flow between blocks. > > Is such a Lisp marker supposed to work across a :var assignment? For > me it does not matter because either the variable > org-babel-current-src-block-location is better evaluated within the > source block or in the header I do not expect the value to be of much > use for source blocks other than Lisp. I just let you know in case you > wanted the assignment to work with other #-constructs or there was a > connection with the recent changes that temporarily required :shebang > quoting. > > Michael -- Eric Schulte http://cs.unm.edu/~eschulte