Štěpán Němec <step...@gmail.com> writes: > `org-babel-insert-result' unconditionally strips any text properties > from the evaluation result. > > One problem is that this isn't documented. Another problem is that this > behaviour might not be desirable (I can't imagine why one _would_ want > to have the properties stripped, on the contrary -- I need them > preserved in at least one of my use cases). > > Please document the behaviour and either abstain from the strip-tease > altogether or provide a way to switch it off.
The results of code blocks can be plain text or vectors of plain text, Emacs-lisp textual object with properties are not a result type supported by Org-mode code blocks. I think it would generally be more surprising if /fancier/ elisp objects were returned rather than plain text. Also, this would raise issues about how to pass properties to other (non elisp) programming languages. If you want to remove the property stripping behavior locally add the following elisp snippet to your .emacs which should have the desired effect. (defun org-babel-clean-text-properties (it) it) I just did this locally and all test cases still passed, so it should be safe. Best -- Eric -- Eric Schulte http://cs.unm.edu/~eschulte/