From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: [Babel] Better messages for code block execution Date: Mon, 06 Dec 2010 15:30:12 +0100 Message-ID: <80aakjynwr.fsf@missioncriticalit.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org --=-=-= Hi, Here are a couple of better (IMHO) messages for what occurs during source block execution: --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=better-messages.patch diff --git a/lisp/ob.el b/lisp/ob.el index dd285db..05bb320 100644 --- a/lisp/ob.el +++ b/lisp/ob.el @@ -1504,9 +1504,9 @@ code ---- the results are extracted in the syntax of the source (indent-rigidly beg end indent)))) (if (= (length result) 0) (if (member "value" result-params) - (message "No result returned by source block") - (message "Source block produced no output")) - (message "finished")))) + (message "Source block returned no value.") + (message "Source block produced no output.")) + (message "Inserted results of source block execution.")))) (defun org-babel-remove-result (&optional info) "Remove the result of the current source block." --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Best regards, Seb --=20 S=C3=A9bastien Vauban --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--