Explorar o código

babel: Read perl results remotely when necessary.

Dan Davison %!s(int64=15) %!d(string=hai) anos
pai
achega
a8c1a49b77
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      contrib/babel/lisp/langs/org-babel-perl.el

+ 1 - 4
contrib/babel/lisp/langs/org-babel-perl.el

@@ -115,10 +115,7 @@ last statement in BODY, as elisp."
 		 tmp-file))
                ;; (message "buffer=%s" (buffer-string)) ;; debugging
                (shell-command-on-region (point-min) (point-max) "perl"))
-             (let ((raw (with-temp-buffer (insert-file-contents tmp-file) (buffer-string))))
-               (if (or (member "code" result-params) (member "pp" result-params))
-                   raw
-                 (org-babel-import-elisp-from-file tmp-file)))))))
+	     (org-babel-import-elisp-from-file (org-babel-maybe-remote-file tmp-file))))))
     ;; comint session evaluation
     (error "Sessions are not supported for Perl.")))