1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2025-01-23 19:49:32 +00:00

contrib: Fix error messages.

* contrib/lisp/ob-eukleides.el (org-babel-execute:eukleides):
* contrib/lisp/ob-oz.el (org-babel-execute:oz):
* contrib/lisp/ob-tcl.el (org-babel-prep-session:tcl):
(org-babel-tcl-evaluate):
* contrib/lisp/org-contacts.el (org-contacts-view-send-email):
* contrib/lisp/org-drill.el (org-drill-hide-heading-at-point):
* contrib/lisp/org-mew.el (org-mew-search):
(org-mew-capture):
* contrib/lisp/org-toc.el (org-toc-forward):
* contrib/lisp/ox-freemind.el (org-freemind--build-node-contents): Fix
formatting of error messages.
This commit is contained in:
Aaron Ecay 2015-01-26 02:54:17 -05:00
parent 076e0ea518
commit 30b0c09275
8 changed files with 11 additions and 11 deletions

View File

@ -81,7 +81,7 @@ This function is called by `org-babel-execute-src-block'."
(shell-command (format org-eukleides-eps-to-raster (shell-command (format org-eukleides-eps-to-raster
(concat (file-name-sans-extension out-file) ".eps") (concat (file-name-sans-extension out-file) ".eps")
(concat (file-name-sans-extension out-file) ".png"))) (concat (file-name-sans-extension out-file) ".png")))
(error "Conversion to PNG not supported. use a file with an EPS name"))) (error "Conversion to PNG not supported. Use a file with an EPS name")))
(with-temp-file in-file (insert body)) (with-temp-file in-file (insert body))
(message "%s" cmd) (org-babel-eval cmd "") (message "%s" cmd) (org-babel-eval cmd "")

View File

@ -226,7 +226,7 @@ called by `org-babel-execute-src-block' via multiple-value-bind."
((member "value" result-params) ((member "value" result-params)
(message "Org-babel: executing Oz expression") (message "Org-babel: executing Oz expression")
(oz-send-string-expression full-body (or wait-time 1))) (oz-send-string-expression full-body (or wait-time 1)))
(t (error "either 'output' or 'results' must be members of :results."))) (t (error "either 'output' or 'results' must be members of :results")))
(org-babel-pick-name (cdr (assoc :colname-names params)) (org-babel-pick-name (cdr (assoc :colname-names params))
(cdr (assoc :colnames params))) (cdr (assoc :colnames params)))
(org-babel-pick-name (cdr (assoc :roname-names params)) (org-babel-pick-name (cdr (assoc :roname-names params))

View File

@ -62,7 +62,7 @@ This function is called by `org-babel-execute-src-block'."
(defun org-babel-prep-session:tcl (session params) (defun org-babel-prep-session:tcl (session params)
"Prepare SESSION according to the header arguments in PARAMS." "Prepare SESSION according to the header arguments in PARAMS."
(error "Sessions are not supported for Tcl.")) (error "Sessions are not supported for Tcl"))
(defun org-babel-variable-assignments:tcl (params) (defun org-babel-variable-assignments:tcl (params)
"Return list of tcl statements assigning the block's variables." "Return list of tcl statements assigning the block's variables."
@ -111,7 +111,7 @@ close $o
If RESULT-TYPE equals 'output then return a list of the outputs If RESULT-TYPE equals 'output then return a list of the outputs
of the statements in BODY, if RESULT-TYPE equals 'value then of the statements in BODY, if RESULT-TYPE equals 'value then
return the value of the last statement in BODY, as elisp." return the value of the last statement in BODY, as elisp."
(when session (error "Sessions are not supported for Tcl.")) (when session (error "Sessions are not supported for Tcl"))
(case result-type (case result-type
(output (org-babel-eval org-babel-tcl-command body)) (output (org-babel-eval org-babel-tcl-command body))
(value (let ((tmp-file (org-babel-temp-file "tcl-"))) (value (let ((tmp-file (org-babel-temp-file "tcl-")))

View File

@ -882,7 +882,7 @@ address."
(setq email (org-contacts-strip-link email)) (setq email (org-contacts-strip-link email))
(org-contacts-check-mail-address email) (org-contacts-check-mail-address email)
(compose-mail (org-contacts-format-email (org-get-heading t) email))))) (compose-mail (org-contacts-format-email (org-get-heading t) email)))))
(error (format "This contact has no mail address set (no %s property)." (error (format "This contact has no mail address set (no %s property)"
org-contacts-email-property))))))) org-contacts-email-property)))))))
(defun org-contacts-get-icon (&optional pom) (defun org-contacts-get-icon (&optional pom)

View File

@ -1525,7 +1525,7 @@ visual overlay, or with the string TEXT if it is supplied."
(defun org-drill-hide-heading-at-point (&optional text) (defun org-drill-hide-heading-at-point (&optional text)
(unless (org-at-heading-p) (unless (org-at-heading-p)
(error "Point is not on a heading.")) (error "Point is not on a heading"))
(save-excursion (save-excursion
(let ((beg (point))) (let ((beg (point)))
(end-of-line) (end-of-line)

View File

@ -308,7 +308,7 @@ the subject and the group number to extract. You can get rid of
org-mew-subject-alist)) org-mew-subject-alist))
(setq id-list (cons subject id-list))) (setq id-list (cons subject id-list)))
(cond ((null id-list) (cond ((null id-list)
(error "No message ID to search.")) (error "No message ID to search"))
((equal (length id-list) 1) ((equal (length id-list) 1)
(org-search-view nil (car id-list))) (org-search-view nil (car id-list)))
(t (t
@ -342,7 +342,7 @@ asks you to select the capture template."
(mew-message-goto-summary)) (mew-message-goto-summary))
(let ((mew-mark-afterstep-spec '((?o 0 0 0 0 0 0 0)))) (let ((mew-mark-afterstep-spec '((?o 0 0 0 0 0 0 0))))
(mew-summary-refile))) (mew-summary-refile)))
(error "No refile folder selected.")) (error "No refile folder selected"))
(let* ((org-mew-link-to-refile-destination t) (let* ((org-mew-link-to-refile-destination t)
(folder-name (org-mew-folder-name)) (folder-name (org-mew-folder-name))
(keys (if arg (keys (if arg

View File

@ -338,7 +338,7 @@ If DELETE is non-nil, delete other windows when in the Org buffer."
(interactive) (interactive)
(condition-case nil (condition-case nil
(outline-forward-same-level 1) (outline-forward-same-level 1)
(error (message "No next headline at this level."))) (error (message "No next headline at this level")))
(if org-toc-info-mode (org-toc-info)) (if org-toc-info-mode (org-toc-info))
(if org-toc-follow-mode (org-toc-goto))) (if org-toc-follow-mode (org-toc-goto)))
@ -347,7 +347,7 @@ If DELETE is non-nil, delete other windows when in the Org buffer."
(interactive) (interactive)
(condition-case nil (condition-case nil
(outline-backward-same-level 1) (outline-backward-same-level 1)
(error (message "No previous headline at this level."))) (error (message "No previous headline at this level")))
(if org-toc-info-mode (org-toc-info)) (if org-toc-info-mode (org-toc-info))
(if org-toc-follow-mode (org-toc-goto))) (if org-toc-follow-mode (org-toc-goto)))

View File

@ -312,7 +312,7 @@ will result in following node:
(org-element-property :title element)) (org-element-property :title element))
(org-data (org-data
(plist-get info :title)) (plist-get info :title))
(t (error "Shouldn't come here.")))) (t (error "Shouldn't come here"))))
(element-contents (org-element-contents element)) (element-contents (org-element-contents element))
(section (assq 'section element-contents)) (section (assq 'section element-contents))
(section-contents (section-contents