emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-element-context doesn't parse consistently link with spaces


From: Daimrod
Subject: Re: [O] org-element-context doesn't parse consistently link with spaces
Date: Wed, 05 Mar 2014 23:12:29 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Nicolas Goaziou <address@hidden> writes:

> Hello,
>
> Daimrod <address@hidden> writes:
>
>> I use org-mode version release_8.0.2-101-gce5988 (I follow the git
>> upstream) and I tried it with `org-element-use-cache' set to nil.
>
> There was no `org-element-use-cache' in Org 8.0. Could you update Org
> and try again?

I had forgotten to rerun make after I pulled the latest version.
`org-version' now returns "8.2.5h".

And you're right, it doesn't happen when `org-element-use-cache' is set
to nil.

However, when `org-element-use-cache' is set to t, then it looks like
`org-element-context' uses the link's title instead of the link's value.
e.g.
#+BEGIN_EXAMPLE
  v-- with the cursor here, it returns (link (:type "file" :path "foo" ...))
[[file:foo][file:test 1 2 3]]
   ^-----------------^
    when the cursor is in this zone, it returns (link (:type "file" :path 
"test" ...))
                      ^-- when the cursor is after this point (after the
                      first space) it returns (link (:type "file" :path "test 1 
2 3" ...))
#+END_EXAMPLE

Best,

-- 
Daimrod/Greg



reply via email to

[Prev in Thread] Current Thread [Next in Thread]