From 6a9dce8de4f8f14f3ffa482e64fb08fe6519d87e Mon Sep 17 00:00:00 2001
From: Luke Amdor <luke.amdor@gmail.com>
Date: Tue, 28 Apr 2015 17:44:17 -0500
Subject: [PATCH] org.el: Fix use of org-open-at-point with shell and midnight
 cleaning

* lisp/org.el (org-open-at-point): Make sure org shell output buffer is a string of buffer name before appending to `clean-buffer-list-kill-buffer-names' for cleaning later.

TINYCHANGE
---
 lisp/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index 4635ee8..e2d1724 100755
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -10836,7 +10836,7 @@ link in a property drawer line."
 			(shell-command cmd buf)
 			(when (featurep 'midnight)
 			  (setq clean-buffer-list-kill-buffer-names
-				(cons buf
+				(cons (buffer-name buf)
 				      clean-buffer-list-kill-buffer-names))))
 		    (user-error "Abort"))))
 	       ((equal type "elisp")
-- 
2.3.5

