summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ecay <aaronecay@gmail.com>2015-01-26 02:53:15 -0500
committerAaron Ecay <aaronecay@gmail.com>2015-01-26 02:53:15 -0500
commit076e0ea518e02c6634b0b26b4ea7c891b7595b29 (patch)
tree456b448d411f956cbc8cf68feb86537108c63e96
parentcd6fa4c15e8e35afa6beb9e89ad3723fb82df091 (diff)
downloadorg-mode-076e0ea518e02c6634b0b26b4ea7c891b7595b29.tar.gz
Fix error messages.
* lisp/ob-coq.el (org-babel-coq-initiate-session): * lisp/ob-latex.el (org-babel-execute:latex): * lisp/org-macro.el (org-macro-replace-all): * lisp/org.el (org--get-display-dpi): Fix formatting of error messages.
-rw-r--r--lisp/ob-coq.el2
-rw-r--r--lisp/ob-latex.el4
-rw-r--r--lisp/org-macro.el2
-rwxr-xr-xlisp/org.el2
4 files changed, 5 insertions, 5 deletions
diff --git a/lisp/ob-coq.el b/lisp/ob-coq.el
index be3b9f6..b6ebcff 100644
--- a/lisp/ob-coq.el
+++ b/lisp/ob-coq.el
@@ -69,7 +69,7 @@
If there is not a current inferior-process-buffer in SESSION then
create one. Return the initialized session."
(unless (fboundp 'run-coq)
- (error "`run-coq' not defined, load coq-inferior.el."))
+ (error "`run-coq' not defined, load coq-inferior.el"))
(save-window-excursion (run-coq "coqtop"))
(sit-for 0.1)
(get-buffer org-babel-coq-buffer))
diff --git a/lisp/ob-latex.el b/lisp/ob-latex.el
index 54e8c01..ba83bf9 100644
--- a/lisp/ob-latex.el
+++ b/lisp/ob-latex.el
@@ -176,14 +176,14 @@ This function is called by `org-babel-execute-src-block'."
(shell-command (format "mv %s %s"
(concat (file-name-sans-extension tex-file) "-1.svg")
out-file)))
- (error "SVG file produced but HTML file requested.")))
+ (error "SVG file produced but HTML file requested")))
((file-exists-p (concat (file-name-sans-extension tex-file) ".html"))
(if (string-match "\\.html$" out-file)
(shell-command "mv %s %s"
(concat (file-name-sans-extension tex-file)
".html")
out-file)
- (error "HTML file produced but SVG file requested.")))))
+ (error "HTML file produced but SVG file requested")))))
((string-match "\\.\\([^\\.]+\\)$" out-file)
(error "Can not create %s files, please specify a .png or .pdf file or try the :imagemagick header argument"
(match-string 1 out-file))))
diff --git a/lisp/org-macro.el b/lisp/org-macro.el
index 60b2982..0ceb0db 100644
--- a/lisp/org-macro.el
+++ b/lisp/org-macro.el
@@ -196,7 +196,7 @@ found in the buffer with no definition in TEMPLATES."
;; expansions.
(save-excursion (insert value)))
(finalize
- (error "Undefined Org macro: %s; aborting."
+ (error "Undefined Org macro: %s; aborting"
(org-element-property :key object))))))))))))
(defun org-macro-escape-arguments (&rest args)
diff --git a/lisp/org.el b/lisp/org.el
index db2b6c0..b0e4380 100755
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -19014,7 +19014,7 @@ horizontal and vertical directions."
(if (display-graphic-p)
(round (/ (display-pixel-height)
(/ (display-mm-height) 25.4)))
- (error "Attempt to calculate the dpi of a non-graphic display.")))
+ (error "Attempt to calculate the dpi of a non-graphic display")))
;; This function borrows from Ganesh Swami's latex2png.el
(defun org-create-formula-image-with-dvipng (string tofile options buffer)