Re: [O] M-: (org-display-outline-path) doesn't work correctly

2014-03-14 Thread Thorsten Jolitz
Nicolas Richard writes: > Thorsten Jolitz writes: >> only that promptly another message is shown (I can't use sit-for in >> the program): > > sit-for was just to demonstrate the problem introduced solely by M-:. > That problem is not present when using interactive commands (i.e. those > a user c

Re: [O] M-: (org-display-outline-path) doesn't work correctly

2014-03-13 Thread Nicolas Richard
Thorsten Jolitz writes: > only that promptly another message is shown (I can't use sit-for in > the program): sit-for was just to demonstrate the problem introduced solely by M-:. That problem is not present when using interactive commands (i.e. those a user can actually use), and no sit-for shou

Re: [O] M-: (org-display-outline-path) doesn't work correctly

2014-03-13 Thread Thorsten Jolitz
Nicolas Richard writes: > Thorsten Jolitz writes: >> Ok, I see ... that seems to be a common pattern in Org-mode to make >> functions behave differently if called (non-)interactively, that >> sometimes causes confusion when using M-: instead of M-x. > > Note that using M-: will always hide any

Re: [O] M-: (org-display-outline-path) doesn't work correctly

2014-03-13 Thread Nicolas Richard
Thorsten Jolitz writes: > Ok, I see ... that seems to be a common pattern in Org-mode to make > functions behave differently if called (non-)interactively, that > sometimes causes confusion when using M-: instead of M-x. Note that using M-: will always hide any (message "foo") might have been ca

Re: [O] M-: (org-display-outline-path) doesn't work correctly

2014-03-12 Thread Thorsten Jolitz
Bastien writes: > Thorsten Jolitz writes: > >> ,- >> | M-: (callOrgDisplay) >> `- >> >> with point on the second level headline shows that internal string >> representation. Only if I make `callOrgDisplay' itself a command by >> adding (interactive) and ca

Re: [O] M-: (org-display-outline-path) doesn't work correctly

2014-03-12 Thread Bastien
Thorsten Jolitz writes: > ,- > | M-: (callOrgDisplay) > `- > > with point on the second level headline shows that internal string > representation. Only if I make `callOrgDisplay' itself a command by > adding (interactive) and call it with M-x, the string w

Re: [O] M-: (org-display-outline-path) doesn't work correctly

2014-03-12 Thread Thorsten Jolitz
Bastien writes: > Thorsten Jolitz writes: > >> both print this in the message buffer >> >> ,-- >> | byte-code: End of buffer >> | #("1st level" 0 9 (face org-level-1)) >> `-- >> >> while using M-x shows the string "1st Level

Re: [O] M-: (org-display-outline-path) doesn't work correctly

2014-03-12 Thread Bastien
Thorsten Jolitz writes: > both print this in the message buffer > > ,-- > | byte-code: End of buffer > | #("1st level" 0 9 (face org-level-1)) > `-- > > while using M-x shows the string "1st Level" as expected. There is no p

Re: [O] M-: (org-display-outline-path) doesn't work correctly

2014-03-12 Thread Thorsten Jolitz
Bastien writes: Hi Bastien, > Thorsten Jolitz writes: > >> How is this function supposed to be called from another program? Why >> does it have (interactive "P") if the prefix arg is never used? Or do I >> simply miss something important here? > > I think you miss the fact that it displays a pa

Re: [O] M-: (org-display-outline-path) doesn't work correctly

2014-03-12 Thread Bastien
Hi Thorsten, Thorsten Jolitz writes: > How is this function supposed to be called from another program? Why > does it have (interactive "P") if the prefix arg is never used? Or do I > simply miss something important here? I think you miss the fact that it displays a path only if the headline is

[O] M-: (org-display-outline-path) doesn't work correctly

2014-03-12 Thread Thorsten Jolitz
Hi List, while ,- | M-x org-display-outline-path `- works as expected for me, neither ,--- | M-: (org-display-outline-path) `--- nor ,---