Re: [O] [PATCH] Internal Links with Spaces

2015-03-12 Thread Nicolas Goaziou
Jacob Gerlach writes: > At least in the case of org-id, I can imagine that the description > might only be used to control appearance in the org buffer, not to > express desired export behavior. > A link that uses org-id really begs for a description for readability, > but then you can't get \ref

Re: [O] [PATCH] Internal Links with Spaces

2015-03-12 Thread Jacob Gerlach
On Tue, Mar 10, 2015 at 3:47 PM, Jacob Gerlach wrote: > After finally getting this function to work, I discovered that I had > the same problem as when I used org-id: the link description causes > exported latex references to use the headline text instead of the > \label{}. ... > This works for me

Re: [O] [PATCH] Internal Links with Spaces

2015-03-11 Thread Jacob Gerlach
On Wed, Mar 11, 2015 at 10:17 AM, Nicolas Goaziou wrote: > This is where I don't follow you. You can insert links without > description, using `org-insert-link'. What makes you think you cannot? I thought that I had tested `(org-insert-link nil nil "")' and found that a description (repeating the

Re: [O] [PATCH] Internal Links with Spaces

2015-03-11 Thread Nicolas Goaziou
Jacob Gerlach writes: > (Did I break the thread by adding "[PATCH]" to the subject? Apologies > if so, original thread was [1]) I read the thread before asking the question. > In more detail (repeating/summarizing the prior messages on original thread): > > Internal Links stored with org-store-

Re: [O] [PATCH] Internal Links with Spaces

2015-03-11 Thread Jacob Gerlach
Hi, On Wed, Mar 11, 2015 at 9:41 AM, Nicolas Goaziou wrote: > I'm not sure to understand the problem you're trying to solve. Would you > mind giving a simple example and motivation? (Did I break the thread by adding "[PATCH]" to the subject? Apologies if so, original thread was [1]) The motivati

Re: [O] [PATCH] Internal Links with Spaces

2015-03-11 Thread Nicolas Goaziou
Hello, Jacob Gerlach writes: > I had been waffling on whether to switch to the git version of org. > This was motivation to make the switch, so I decided to give a shot at > patching this. > > Attached patch introduces `org-latex-prefer-section-references'. If > non-nil, links will use the gener