From b183da4be6e4a8e5b1be8caa093b9098e5c9e8f5 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Fri, 27 Aug 2010 14:42:24 -0600 Subject: [PATCH] Babel: fixing compiler warnings * lisp/ob-R.el (ess-make-buffer-current): declared (ess-ask-for-ess-directory): declared (ess-local-process-name): declared * lisp/ob-latex.el (org-babel-latex-tex-to-pdf): capturing free variable * lisp/ob.el (org-edit-src-code): fixing arguments (org-edit-src-exit): declared (org-outline-overlay-data): declared (org-set-outline-overlay-data): declared --- lisp/ob-R.el | 3 +++ lisp/ob-latex.el | 2 +- lisp/ob.el | 5 ++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lisp/ob-R.el b/lisp/ob-R.el index 3dda4f720..d16b659f3 100644 --- a/lisp/ob-R.el +++ b/lisp/ob-R.el @@ -36,6 +36,7 @@ (declare-function orgtbl-to-tsv "org-table" (table params)) (declare-function R "ext:essd-r" (&optional start-args)) (declare-function inferior-ess-send-input "ext:ess-inf" ()) +(declare-function ess-make-buffer-current "ext:ess-inf" ()) (defconst org-babel-header-arg-names:R '(width height bg units pointsize antialias quality compression @@ -151,6 +152,7 @@ This function is called by `org-babel-execute-src-block'." (if rownames-p "1" "NULL"))) (format "%s <- %s" name (org-babel-R-quote-tsv-field value)))) +(defvar ess-ask-for-ess-directory) (defun org-babel-R-initiate-session (session params) "If there is not a current R process then create one." (unless (string= session "none") @@ -169,6 +171,7 @@ This function is called by `org-babel-execute-src-block'." (buffer-name)))) (current-buffer)))))) +(defvar ess-local-process-name) (defun org-babel-R-associate-session (session) "Associate R code buffer with an R session. Make SESSION be the inferior ESS process associated with the diff --git a/lisp/ob-latex.el b/lisp/ob-latex.el index 773e3b6e0..dde3eae20 100644 --- a/lisp/ob-latex.el +++ b/lisp/ob-latex.el @@ -127,7 +127,7 @@ Extracted from `org-export-as-pdf' in org-latex.el." (pdffile (concat base ".pdf")) (cmds org-latex-to-pdf-process) (outbuf (get-buffer-create "*Org PDF LaTeX Output*")) - cmd) + output-dir cmd) (with-current-buffer outbuf (erase-buffer)) (message (concat "Processing LaTeX file " file "...")) (setq output-dir (file-name-directory file)) diff --git a/lisp/ob.el b/lisp/ob.el index 2ce069d7d..9711e57be 100644 --- a/lisp/ob.el +++ b/lisp/ob.el @@ -43,9 +43,12 @@ (declare-function tramp-file-name-host "tramp" (vec)) (declare-function org-icompleting-read "org" (&rest args)) (declare-function org-edit-src-code "org-src" - (&optional context code edit-buffer-name)) + (&optional context code edit-buffer-name quietp)) +(declare-function org-edit-src-exit "org-src" (&optional context)) (declare-function org-open-at-point "org" (&optional in-emacs reference-buffer)) (declare-function org-save-outline-visibility "org" (use-markers &rest body)) +(declare-function org-outline-overlay-data "org" (&optional use-markers)) +(declare-function org-set-outline-overlay-data "org" (data)) (declare-function org-narrow-to-subtree "org" ()) (declare-function org-entry-get "org" (pom property &optional inherit literal-nil)) (declare-function org-make-options-regexp "org" (kwds &optional extra))