瀏覽代碼

ob: fixed newly introduced empty result error

* lisp/ob.el (org-babel-examplize-region): Remove old assertion which
  no longer applies to the result insertion code.
Eric Schulte 14 年之前
父節點
當前提交
c3b7eca193
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      lisp/ob.el

+ 1 - 3
lisp/ob.el

@@ -1549,9 +1549,7 @@ file's directory then expand relative links."
   (interactive "*r")
   (let ((size (count-lines beg end)))
     (save-excursion
-      (cond ((= size 0)
-	     (error (concat "This should not be impossible:"
-                            "a newline was appended to result if missing")))
+      (cond ((= size 0))	      ; do nothing for an empty result
 	    ((< size org-babel-min-lines-for-block-output)
 	     (goto-char beg)
 	     (dotimes (n size)