emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daimrod <daimrod@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: org-element-context doesn't parse consistently link with spaces
Date: Wed, 05 Mar 2014 23:12:29 +0900	[thread overview]
Message-ID: <87mwh4ag4y.fsf@tanger.home> (raw)
In-Reply-To: <877g88lpwp.fsf@gmail.com> (Nicolas Goaziou's message of "Wed, 05 Mar 2014 14:45:58 +0100")

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> Hello,
>
> Daimrod <daimrod@gmail.com> 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	other threads:[~2014-03-05 14:12 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-04  8:53 org-element-context doesn't parse consistently link with spaces Daimrod
2014-03-05 13:22 ` Nicolas Goaziou
2014-03-05 13:37   ` Daimrod
2014-03-05 13:45     ` Nicolas Goaziou
2014-03-05 14:12       ` Daimrod [this message]
2014-03-05 14:25         ` Nicolas Goaziou
2014-03-05 14:29           ` Bastien
2014-03-05 14:36             ` Daimrod
2014-03-05 15:02               ` Bastien
2014-03-05 15:35                 ` Thorsten Jolitz
2014-03-05 15:42                 ` Nicolas Richard
2014-03-05 16:04                   ` Bastien
2014-03-05 16:27                     ` Nicolas Richard
2014-03-13 15:01                       ` Bastien
2014-03-05 14:51             ` Nicolas Goaziou
2014-03-05 15:00               ` Bastien
2014-03-05 15:16                 ` Nicolas Goaziou
2014-03-05 15:40                   ` Bastien
2014-03-10 14:25                     ` Nicolas Goaziou
2014-03-08 12:45                   ` Achim Gratz
2014-03-05 14:30           ` Jonathan Leech-Pepin
2014-03-05 14:32           ` Daimrod
2014-03-05 14:52             ` Daimrod

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mwh4ag4y.fsf@tanger.home \
    --to=daimrod@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).