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 (interactive) and call it with M-x, the string without properties
>> is shown.
>
> ... yes, that's on purpose.  In a program, the output of the
> non-interactive version will be a string: you can safely ignore
> text properties of this string if you want to further process it.

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.

-- 
cheers,
Thorsten


Reply via email to