Explorar el Código

Different messages for :results output and value modes.

Dan Davison hace 16 años
padre
commit
2b273bce7d
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      lisp/org-babel.el

+ 3 - 1
lisp/org-babel.el

@@ -426,7 +426,9 @@ silent -- no results are inserted"
     (unless (listp result) (setq result (format "%S" result))))
   (if (and insert (member "replace" insert)) (org-babel-remove-result))
   (if (= (length result) 0)
-      (message "no result returned by source block")
+      (if (member "value" result-params)
+	  (message "No result returned by source block")
+	(message "Source block produced no output"))
     (if (and insert (member "silent" insert))
         (progn (message (replace-regexp-in-string "%" "%%" (format "%S" result))) result)
       (when (and (stringp result) ;; ensure results end in a newline