From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Empty result when Emacs Lisp code block evals to nil [9.0.5 (release_9.0.5-401-g86ff11 @ /Users/xcy/src/org-mode/lisp/)] Date: Wed, 05 Apr 2017 10:12:52 +0200 Message-ID: <87shlnz30b.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvg3p-0003OB-Lf for emacs-orgmode@gnu.org; Wed, 05 Apr 2017 04:13:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvg3m-0007I2-Fd for emacs-orgmode@gnu.org; Wed, 05 Apr 2017 04:13:01 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:36848) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cvg3m-0007GV-9g for emacs-orgmode@gnu.org; Wed, 05 Apr 2017 04:12:58 -0400 In-Reply-To: (Chunyang Xu's message of "Sat, 01 Apr 2017 23:06:35 +0800") 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: Chunyang Xu Cc: emacs-orgmode@gnu.org Chunyang Xu writes: > I notice that if the result is nil during executing emacs-lisp code > block, org simply displays a empty #+RESULT block. For example, > > #+BEGIN_SRC emacs-lisp > t > #+END_SRC > > > #+RESULTS: : t > > #+BEGIN_SRC emacs-lisp > nil > #+END_SRC > > #+RESULTS: > > > I don't see why 'nil' is special than other values like 't'. It is special because it is also how code evaluation specifies that there is no produced output. You may want to use :results scalar, e.g., #+BEGIN_SRC emacs-lisp :results scalar nil #+END_SRC #+RESULTS: : nil Regards, -- Nicolas Goaziou