From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: returning propertized strings Date: Sat, 20 May 2017 18:46:35 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCFxC-0005bm-RX for emacs-orgmode@gnu.org; Sat, 20 May 2017 21:46:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dCFx9-0007VY-Ok for emacs-orgmode@gnu.org; Sat, 20 May 2017 21:46:42 -0400 Received: from iport-acv1-out.ucsd.edu ([132.239.0.176]:65102) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1dCFx9-0007UE-Bz for emacs-orgmode@gnu.org; Sat, 20 May 2017 21:46:39 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: John Kitchin Cc: "emacs-orgmode@gnu.org" On Sat, 20 May 2017, John Kitchin wrote: > If I run this block I get test as a result, but all its properties have > been stripped. > > #+BEGIN_SRC emacs-lisp :results drawer > (propertize "test" 'font-lock-face '(:foreground "red") 'help-echo > "tooltip") > #+END_SRC > > #+RESULTS: > :RESULTS: > test > :END: > > Does anyone know where this happens and if it can be avoided? Where? Not sure, but late enough that `:results pp' will print them or `:post ...' will receive them in `*this*'. #+BEGIN_SRC emacs-lisp :results drawer pp (propertize "test" 'font-lock-face '(:foreground "red") 'help-echo "tooltip") #+END_SRC #+RESULTS: : #("test" 0 4 : (help-echo "tooltip" font-lock-face : (:foreground "red"))) also `*this*' will contain the propertized version if you use the :post header arg. HTH, Chuck