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: Sun, 09 Jun 2013 13:18:08 -0600 Message-ID: <874nd7ks9b.fsf@gmail.com> References: <87a9n35g25.fsf@gmail.com> <87fvwuuez8.fsf@gmail.com> <87k3m4mozj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ull8o-0007xf-4j for emacs-orgmode@gnu.org; Sun, 09 Jun 2013 15:19:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ull8k-0002O0-HB for emacs-orgmode@gnu.org; Sun, 09 Jun 2013 15:19:02 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:52596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ull8k-0002Nb-7Q for emacs-orgmode@gnu.org; Sun, 09 Jun 2013 15:18:58 -0400 Received: by mail-pd0-f180.google.com with SMTP id 10so6639567pdi.39 for ; Sun, 09 Jun 2013 12:18:57 -0700 (PDT) In-Reply-To: (Michael Brand's message of "Sun, 9 Jun 2013 09:56:22 +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: Michael Brand Cc: Org Mode Michael Brand writes: > Hi Eric > > On Sat, Jun 8, 2013 at 8:03 PM, Eric Schulte wrote: >> I've just pushed up a commit which should fix this problem. The >> org-babel-current-exec-src-block-head variable wasn't bound during >> export. > > Confirmed, thanks. In the attached marker_offset.org the evaluation of > the variable todo-state-var during export did not work before, now it > does. > > What I do not understand is the behavior of the evaluation of the > other variable marker-var. During "C-c C-c" it is like expected with > point >= 305 which means within entry "* s". But during export it is > far before 305 which confuses me. How can "DONE" instead of nil from > the previous entry be assigned to todo-state-var this way and is this > "displacement" to be accepted? > 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. > > For me it is enough for now if the marker is just anywhere within the > current entry. I do not (yet?) have a use case where I need the marker > to be at an individual source block and therefore different when > calling a function twice in the same entry as in marker_offset.org > with calls "(a)" and "(b)". > Great. If such a need arises, you could try setting the variable in the src_call line, rather than relying on the value set in the main code block. Cheers, BTW: I notice your Org file attached as application/vnd.lotus-organizer (the default for .org in Emacs mime types). I had this issue as well, and I now use the following so that Org-mode files attach as org. ;; -*- emacs-lisp -*- (setf mailcap-mime-extensions (cons '(".org" . "text/x-org") mailcap-mime-extensions)) > > Michael -- Eric Schulte http://cs.unm.edu/~eschulte