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

2014-03-14 Thread Thorsten Jolitz
Nicolas Richard theonewiththeevill...@yahoo.fr writes: Thorsten Jolitz tjol...@gmail.com 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

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

2014-03-13 Thread Nicolas Richard
Thorsten Jolitz tjol...@gmail.com 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

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

2014-03-13 Thread Thorsten Jolitz
Nicolas Richard theonewiththeevill...@yahoo.fr writes: Thorsten Jolitz tjol...@gmail.com 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.

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

2014-03-13 Thread Nicolas Richard
Thorsten Jolitz tjol...@gmail.com 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

[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

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

2014-03-12 Thread Bastien
Hi Thorsten, Thorsten Jolitz tjol...@gmail.com 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

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

2014-03-12 Thread Thorsten Jolitz
Bastien b...@gnu.org writes: Hi Bastien, Thorsten Jolitz tjol...@gmail.com 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

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

2014-03-12 Thread Bastien
Thorsten Jolitz tjol...@gmail.com 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

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

2014-03-12 Thread Thorsten Jolitz
Bastien b...@gnu.org writes: Thorsten Jolitz tjol...@gmail.com 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

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

2014-03-12 Thread Bastien
Thorsten Jolitz tjol...@gmail.com 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,

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

2014-03-12 Thread Thorsten Jolitz
Bastien b...@gnu.org writes: Thorsten Jolitz tjol...@gmail.com 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