From 343ce4349e688660859f24069975215836a69ddd Mon Sep 17 00:00:00 2001
From: Le Wang <le.wang@agworld.com.au>
Date: Fri, 14 Dec 2012 07:47:44 +0800
Subject: [PATCH 6/6] fix mix-use of signal

---
 lisp/org-src.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lisp/org-src.el b/lisp/org-src.el
index d4747ab..f4953a6 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -283,7 +283,7 @@ buffer."
 		       (table-recognize)
 		       (org-set-local 'org-edit-src-content-indentation 0))))
     (unless (functionp lang-f)
-      (signal 'org-src-error "No such language mode: %s" lang-f))
+      (signal 'org-src-error (list (format "No such language mode: %s" lang-f))))
     (save-excursion
       (if (> (point) end) (goto-char end))
       (setq line (org-current-line)
@@ -325,7 +325,7 @@ buffer."
 	(condition-case e
 	    (funcall lang-f)
 	  (error
-	   (signal 'org-src-error "Language mode `%s' fails with: %S" lang-f (nth 1 e)))))
+	   (signal 'org-src-error (list (format "Language mode `%s' fails with: %S" lang-f (nth 1 e)))))))
       (dolist (pair transmitted-variables)
 	(org-set-local (car pair) (cadr pair)))
       ;; Remove protecting commas from visible part of buffer.
@@ -356,7 +356,7 @@ buffer."
   (mouse-set-point e)
   (let ((buf (get-char-property (point) 'edit-buffer)))
     (if buf (org-src-switch-to-buffer buf 'continue)
-      (signal 'org-src-error "Something is wrong here"))))
+      (signal 'org-src-error '("Something is wrong here")))))
 
 (defun org-src-switch-to-buffer (buffer context)
   (case org-src-window-setup
@@ -639,7 +639,7 @@ with \",*\", \",#+\", \",,*\" and \",,#+\"."
   "Exit special edit and protect problematic lines."
   (interactive)
   (unless (org-bound-and-true-p org-edit-src-from-org-mode)
-    (signal 'org-src-error "This is not a sub-editing buffer, something is wrong"))
+    (signal 'org-src-error '("This is not a sub-editing buffer, something is wrong")))
   (widen)
   (let* ((beg org-edit-src-beg-marker)
 	 (end org-edit-src-end-marker)
-- 
1.7.11.4

