From 507a895710f213336d21d80c08143c0642a39368 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Wed, 16 May 2012 20:56:51 +0200 Subject: [PATCH] Show hidden output as "." --- ein-cell.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ein-cell.el b/ein-cell.el index 035a421f..43267e4e 100644 --- a/ein-cell.el +++ b/ein-cell.el @@ -296,7 +296,11 @@ A specific node can be specified using optional ARGS." (defvar ein:cell-output-dynamic nil) (defun ein:cell-insert-output (index cell) - (unless (oref cell :collapsed) + (if (oref cell :collapsed) + (progn + (ein:insert-read-only ".") + (when (= (1+ index) (ein:cell-num-outputs cell)) + (ein:insert-read-only "\n"))) (let ((out (nth index (oref cell :outputs))) (dynamic ein:cell-output-dynamic)) (ein:case-equal (plist-get out :output_type)