* Referencing TODO items
@ 2017-12-14 12:19 Paulo Matos
2017-12-14 13:31 ` Michael Welle
0 siblings, 1 reply; 11+ messages in thread
From: Paulo Matos @ 2017-12-14 12:19 UTC (permalink / raw)
To: emacs-orgmode
Hi,
I have a TODO item that got stuck due to some unforseen circumstances.
Another TODO item is needed as a workaround therefore I have something like:
* TODO Implement using hash tables
:LOGBOOK:
- Note taken on ... \\
Stuck because...
:END:
* TODO Implement using hand written maps
This is required because todo item REF was stuck. If unstuck, we can
remove this implementation.
How can I REF the first TODO item in the second?
Thanks,
--
Paulo Matos
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Referencing TODO items
2017-12-14 12:19 Referencing TODO items Paulo Matos
@ 2017-12-14 13:31 ` Michael Welle
2017-12-14 13:56 ` Paulo Matos
0 siblings, 1 reply; 11+ messages in thread
From: Michael Welle @ 2017-12-14 13:31 UTC (permalink / raw)
To: emacs-orgmode
Hello,
Paulo Matos <paulo@matos-sorge.com> writes:
> Hi,
>
> I have a TODO item that got stuck due to some unforseen circumstances.
> Another TODO item is needed as a workaround therefore I have something like:
>
> * TODO Implement using hash tables
> :LOGBOOK:
> - Note taken on ... \\
> Stuck because...
> :END:
>
> * TODO Implement using hand written maps
> This is required because todo item REF was stuck. If unstuck, we can
> remove this implementation.
>
> How can I REF the first TODO item in the second?
do M-x org-store-link on the first TODO item and M-x org-insert-link
where you want to reference the first TODO item.
Regards
hmw
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Referencing TODO items
2017-12-14 13:31 ` Michael Welle
@ 2017-12-14 13:56 ` Paulo Matos
2017-12-14 14:20 ` Michael Welle
2017-12-14 21:45 ` Nicolas Goaziou
0 siblings, 2 replies; 11+ messages in thread
From: Paulo Matos @ 2017-12-14 13:56 UTC (permalink / raw)
To: emacs-orgmode
On 14/12/17 14:31, Michael Welle wrote:
> Hello,
>
> Paulo Matos <paulo@matos-sorge.com> writes:
>
>> Hi,
>>
>> I have a TODO item that got stuck due to some unforseen circumstances.
>> Another TODO item is needed as a workaround therefore I have something like:
>>
>> * TODO Implement using hash tables
>> :LOGBOOK:
>> - Note taken on ... \\
>> Stuck because...
>> :END:
>>
>> * TODO Implement using hand written maps
>> This is required because todo item REF was stuck. If unstuck, we can
>> remove this implementation.
>>
>> How can I REF the first TODO item in the second?
> do M-x org-store-link on the first TODO item and M-x org-insert-link
> where you want to reference the first TODO item.
>
Interesting but it doesn't really work properly.
My TODO looks like:
* TODO add support for %lo and %hi operands in offsets
I create the link and the link has the name of the todo headline.
When I try to follow with C-c C-o, it says 'No match - create a new
heading?'. If I say yes, a new heading is created in my document that
looks like:
* *add support for ^@ and ^@ operands in offsets
I am curious why %hi and %lo would cause any troubles...
--
Paulo Matos
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Referencing TODO items
2017-12-14 13:56 ` Paulo Matos
@ 2017-12-14 14:20 ` Michael Welle
2017-12-14 14:31 ` Paulo Matos
2017-12-15 7:29 ` Ken Mankoff
2017-12-14 21:45 ` Nicolas Goaziou
1 sibling, 2 replies; 11+ messages in thread
From: Michael Welle @ 2017-12-14 14:20 UTC (permalink / raw)
To: emacs-orgmode
Hello,
Paulo Matos <paulo@matos-sorge.com> writes:
[...]
> Interesting but it doesn't really work properly.
>
> My TODO looks like:
>
> * TODO add support for %lo and %hi operands in offsets
>
> I create the link and the link has the name of the todo headline.
> When I try to follow with C-c C-o, it says 'No match - create a new
> heading?'. If I say yes, a new heading is created in my document that
> looks like:
>
> * *add support for ^@ and ^@ operands in offsets
>
> I am curious why %hi and %lo would cause any troubles...
I can confirm that behaviour, but it doesn't bother me, because I use ;):
(setq org-id-link-to-org-use-id 'create-if-interactive)
Regards
hmw
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Referencing TODO items
2017-12-14 14:20 ` Michael Welle
@ 2017-12-14 14:31 ` Paulo Matos
2017-12-14 16:57 ` Michael Welle
2017-12-15 7:29 ` Ken Mankoff
1 sibling, 1 reply; 11+ messages in thread
From: Paulo Matos @ 2017-12-14 14:31 UTC (permalink / raw)
To: emacs-orgmode
On 14/12/17 15:20, Michael Welle wrote:
>>
>> I am curious why %hi and %lo would cause any troubles...
> I can confirm that behaviour, but it doesn't bother me, because I use ;):
>
> (setq org-id-link-to-org-use-id 'create-if-interactive)
>
When I looked at it, it sounded that the only thing it does it to
automatically create the heading without prompting, however I ran into
troubles when testing. My org-mode doesn't have that variable (9.1.2)
and even if it did it wouldn't solve the problem (assuming I am correct
about its intended behaviour since I don't want a new heading, I want to
follow the link to the existing heading.
--
Paulo Matos
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Referencing TODO items
2017-12-14 14:31 ` Paulo Matos
@ 2017-12-14 16:57 ` Michael Welle
2017-12-15 9:32 ` Paulo Matos
0 siblings, 1 reply; 11+ messages in thread
From: Michael Welle @ 2017-12-14 16:57 UTC (permalink / raw)
To: emacs-orgmode
Hello,
Paulo Matos <paulo@matos-sorge.com> writes:
> On 14/12/17 15:20, Michael Welle wrote:
>>>
>>> I am curious why %hi and %lo would cause any troubles...
>> I can confirm that behaviour, but it doesn't bother me, because I use ;):
>>
>> (setq org-id-link-to-org-use-id 'create-if-interactive)
>>
>
> When I looked at it, it sounded that the only thing it does it to
> automatically create the heading without prompting, however I ran into
> troubles when testing. My org-mode doesn't have that variable (9.1.2)
it is from org-id. It gives the heading a unique id and uses that to
reference the heading instead of the heading's text. That way the
reference does not become invalid if the heading's text changes. And, as
a side effect, it works around the problem you found.
> and even if it did it wouldn't solve the problem (assuming I am correct
> about its intended behaviour since I don't want a new heading, I want to
> follow the link to the existing heading.
No, it doesn't solve the problem. I guess the problem is that the
heading's text is fed to a format form or something like that.
Regards
hmw
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Referencing TODO items
2017-12-14 13:56 ` Paulo Matos
2017-12-14 14:20 ` Michael Welle
@ 2017-12-14 21:45 ` Nicolas Goaziou
2017-12-15 7:24 ` Paulo Matos
1 sibling, 1 reply; 11+ messages in thread
From: Nicolas Goaziou @ 2017-12-14 21:45 UTC (permalink / raw)
To: Paulo Matos; +Cc: emacs-orgmode
Hello,
Paulo Matos <paulo@matos-sorge.com> writes:
> My TODO looks like:
>
> * TODO add support for %lo and %hi operands in offsets
>
> I create the link and the link has the name of the todo headline.
> When I try to follow with C-c C-o, it says 'No match - create a new
> heading?'. If I say yes, a new heading is created in my document that
> looks like:
>
> * *add support for ^@ and ^@ operands in offsets
>
> I am curious why %hi and %lo would cause any troubles...
This is because % are not properly escaped, so `org-link-unescape'
turns %hi into ^@.
This is now fixed. Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Referencing TODO items
2017-12-14 21:45 ` Nicolas Goaziou
@ 2017-12-15 7:24 ` Paulo Matos
0 siblings, 0 replies; 11+ messages in thread
From: Paulo Matos @ 2017-12-15 7:24 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: emacs-orgmode
On 14/12/17 22:45, Nicolas Goaziou wrote:
> Hello,
>
> Paulo Matos <paulo@matos-sorge.com> writes:
>
>> My TODO looks like:
>>
>> * TODO add support for %lo and %hi operands in offsets
>>
>> I create the link and the link has the name of the todo headline.
>> When I try to follow with C-c C-o, it says 'No match - create a new
>> heading?'. If I say yes, a new heading is created in my document that
>> looks like:
>>
>> * *add support for ^@ and ^@ operands in offsets
>>
>> I am curious why %hi and %lo would cause any troubles...
>
> This is because % are not properly escaped, so `org-link-unescape'
> turns %hi into ^@.
>
> This is now fixed. Thank you.
>
Perfect.
Thanks for the quick fix.
> Regards,
>
--
Paulo Matos
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Referencing TODO items
2017-12-14 14:20 ` Michael Welle
2017-12-14 14:31 ` Paulo Matos
@ 2017-12-15 7:29 ` Ken Mankoff
1 sibling, 0 replies; 11+ messages in thread
From: Ken Mankoff @ 2017-12-15 7:29 UTC (permalink / raw)
To: Michael Welle; +Cc: emacs-orgmode
On 2017-12-14 at 14:20, Michael Welle <mwe012008@gmx.net> wrote:
> I can confirm that behaviour, but it doesn't bother me, because I use
>
> (setq org-id-link-to-org-use-id 'create-if-interactive)
This is a nice feature/solution but I'd like to point out to others reading it that there may be a better option that uses custom IDs if they exist:
(setq org-id-link-to-org-use-id 'create-if-interactive-and-no-custom-id)
-k.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Referencing TODO items
2017-12-14 16:57 ` Michael Welle
@ 2017-12-15 9:32 ` Paulo Matos
2017-12-15 10:01 ` Michael Welle
0 siblings, 1 reply; 11+ messages in thread
From: Paulo Matos @ 2017-12-15 9:32 UTC (permalink / raw)
To: Michael Welle, emacs-orgmode
On 14/12/17 17:57, Michael Welle wrote:
> it is from org-id.
Can't seem to find org-id on melpa or org mode contrib page.
http://orgmode.org/worg/org-contrib/
can you please point me to where i can find it?
--
Paulo Matos
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Referencing TODO items
2017-12-15 9:32 ` Paulo Matos
@ 2017-12-15 10:01 ` Michael Welle
0 siblings, 0 replies; 11+ messages in thread
From: Michael Welle @ 2017-12-15 10:01 UTC (permalink / raw)
To: emacs-orgmode
Hello,
Paulo Matos <paulo@matos-sorge.com> writes:
> On 14/12/17 17:57, Michael Welle wrote:
>> it is from org-id.
>
> Can't seem to find org-id on melpa or org mode contrib page.
> http://orgmode.org/worg/org-contrib/
>
> can you please point me to where i can find it?
org-id should be part of the org package as well as of the
org-plus-contrib package.
Regards
hmw
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2017-12-15 10:01 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-14 12:19 Referencing TODO items Paulo Matos
2017-12-14 13:31 ` Michael Welle
2017-12-14 13:56 ` Paulo Matos
2017-12-14 14:20 ` Michael Welle
2017-12-14 14:31 ` Paulo Matos
2017-12-14 16:57 ` Michael Welle
2017-12-15 9:32 ` Paulo Matos
2017-12-15 10:01 ` Michael Welle
2017-12-15 7:29 ` Ken Mankoff
2017-12-14 21:45 ` Nicolas Goaziou
2017-12-15 7:24 ` Paulo Matos
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).