[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] M-: (org-display-outline-path) doesn't work correctly
From: |
Thorsten Jolitz |
Subject: |
Re: [O] M-: (org-display-outline-path) doesn't work correctly |
Date: |
Thu, 13 Mar 2014 12:38:36 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Nicolas Richard <address@hidden> writes:
> Thorsten Jolitz <address@hidden> 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 called because M-: outputs the return value of the function.
> Usually you can recover those by inspecting the *Messages* buffer, but
> in this case org uses org-unlogged-message so you can't see it there
> either.
>
> Try this :
> M-: (prog1 (org-display-outline-path) (sit-for 2)) RET
> It shows the message (for up to 2 seconds), and then it is hidden by the
> return value (a string with properties) when the call to M-: terminates.
Thanks for the hint, this does the job:
#+begin_src emacs-lisp
(" " . (outshine-use-outorg
(lambda ()
(message
"%s" (substring-no-properties
(org-display-outline-path))))
'WHOLE-BUFFER-P))
#+end_src
only that promptly another message is shown (I can't use sit-for in
the program):
,-----------------------------
| Wrote /home/my/tmpdir/myfile
`-----------------------------
I have to get rid of that one ...
--
cheers,
Thorsten
- [O] M-: (org-display-outline-path) doesn't work correctly, Thorsten Jolitz, 2014/03/12
- Re: [O] M-: (org-display-outline-path) doesn't work correctly, Bastien, 2014/03/12
- Re: [O] M-: (org-display-outline-path) doesn't work correctly, Thorsten Jolitz, 2014/03/12
- Re: [O] M-: (org-display-outline-path) doesn't work correctly, Bastien, 2014/03/12
- Re: [O] M-: (org-display-outline-path) doesn't work correctly, Thorsten Jolitz, 2014/03/12
- Re: [O] M-: (org-display-outline-path) doesn't work correctly, Bastien, 2014/03/12
- Re: [O] M-: (org-display-outline-path) doesn't work correctly, Thorsten Jolitz, 2014/03/12
- Re: [O] M-: (org-display-outline-path) doesn't work correctly, Nicolas Richard, 2014/03/13
- Re: [O] M-: (org-display-outline-path) doesn't work correctly,
Thorsten Jolitz <=
- Re: [O] M-: (org-display-outline-path) doesn't work correctly, Nicolas Richard, 2014/03/13
- Re: [O] M-: (org-display-outline-path) doesn't work correctly, Thorsten Jolitz, 2014/03/14