From mboxrd@z Thu Jan 1 00:00:00 1970 From: akater Subject: Some whitespace stripped from emacs-lisp value in src blocks making it unreadable in certain cases Date: Tue, 10 Sep 2019 00:55:58 +0000 Message-ID: <875zm1c6ld.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:49978) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7Um6-0001Lv-1L for emacs-orgmode@gnu.org; Mon, 09 Sep 2019 21:16:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i7Um0-0000br-Rk for emacs-orgmode@gnu.org; Mon, 09 Sep 2019 21:16:50 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:34093) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i7Ulz-0000Zz-A9 for emacs-orgmode@gnu.org; Mon, 09 Sep 2019 21:16:48 -0400 Received: by mail-wr1-x42d.google.com with SMTP id a11so6909537wrx.1 for ; Mon, 09 Sep 2019 18:16:45 -0700 (PDT) Received: from localhost (lumumba.torservers.net. [77.247.181.163]) by smtp.googlemail.com with ESMTPSA id o14sm6329731wrw.11.2019.09.09.18.16.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2019 18:16:43 -0700 (PDT) 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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Consider a lisp form that, when evaluated, produces another form. I'm used to org printing the resulting form nicely, in lisp blocks. However, this is not the case for emacs-lisp src blocks. An example: 1. The way it should be (and is now the case) with lisp, namely sbcl: #+begin_src lisp :results value verbatim :wrap example lisp (macroexpand '(defun test (a b &optional c) "doc" nil)) #+end_src #+RESULTS: #+begin_example lisp (PROGN (EVAL-WHEN (:COMPILE-TOPLEVEL) (SB-C:%COMPILER-DEFUN 'TEST T NIL NIL)) (SB-IMPL::%DEFUN 'TEST (SB-INT:NAMED-LAMBDA TEST (A B &OPTIONAL C) "doc" (BLOCK TEST NIL)))) T #+end_example 2. The way it is now with emacs-lisp and a src block header that is otherwise identical: #+begin_src emacs-lisp :results value verbatim :wrap example emacs-lisp (macroexpand '(use-package outline :ensure nil :bind (:map outline-mode-map ("" . (lambda nil (interactive) (outline-up-heading 1)))))) #+end_src #+RESULTS: #+begin_example emacs-lisp (progn (use-package-ensure-elpa 'outline '(nil) 'nil) (defvar use-package--warning157 #'(lambda (keyword err) (let ((msg (format "%s/%s: %s" 'outline keyword (error-message-string err)))) (display-warning 'use-package msg :error)))) (condition-case-unless-debug err (progn (if (not (require 'outline nil t)) (display-warning 'use-package (format "Cannot load %s" 'outline) :error)) (bind-keys :package outline :map outline-mode-map ("" lambda nil (interactive) (outline-up-heading 1)))) (error (funcall use-package--warning157 :catch err)))) #+end_example Is there a remedy? This probably better be fixed but it could be due to me using bleeding-edge Emacs 27 master (2019-09-10) & Org from melpa (2019-09-09). If you don't have proper output formatting with other versions in use, please report. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJddvSiAAoJELK+sWGx7H9E5igQAJA1ngTxTqYBsakd3STg5RMI btHEOLGEXr/E5YK3KABcMj4C7ZCjs9NBO9Y4PHgvwzJaMdPX52+qrH/1TF+hwtPc 8W9wdSv3rvSNXp/5TZ8piOK8kTdl3tVtvewS5JgXbryQLphn3nA2L0tFgZKhD6q8 aNdynPjVXtSPoO3AmjRR91CgyT+k2twNYyURpAbpW5CZCJ4tofKlEN6sPRVW4bih SZlsacoCMuMxU0UTZoirLGPuxdsAQw+nIXeaFwBaFH1QVrjDFi+q22FGqYflqJQu Amf51qOjeRE3x/j/ONQC5lawz1ztPbGW7kD8pfxDvx8axC1smsbgSUG/49d+dFJ1 O4jm51pEXODAgtUP7RdSvYx6/NJcbT25NE0mhHE9T2tEytKNjJkOjV/m/CD/1zkQ oekQ/bKkQe+Ds7Evv0rhaAjpFJqzk6jMFwUtzx4PHg61YM4jkOt/akfis1pi1deI SRSHOg/iy1ORxwJ+jFCqisrpR2eKy7zou68EnEOHiBbshvTQlVEvT1yIbQBqdrmh Mtn5OiS/PpxC6t+VBQr0mDyDgvDvMDE5CtD6+UdctclZJnWIZZAb7ehKF1jt1lM1 yDyLcfAUMD4h3mu2nSqwmi2+GTrFmd4kN4dlQE8G6gFuIK9c5sykstchMOBMSQ+B lc/2qH0h2yQCb9Fh5HTM =PLP7 -----END PGP SIGNATURE----- --=-=-=--