diff --git a/lisp/ob-ruby.el b/lisp/ob-ruby.el index 5ed29f889..2e33bfa29 100644 --- a/lisp/ob-ruby.el +++ b/lisp/ob-ruby.el @@ -159,13 +159,16 @@ If there is not a current inferior-process-buffer in SESSION then create one. Return the initialized session." (unless (string= session "none") (require 'inf-ruby) - (let* ((cmd (cdr (or (assq :ruby params) - (assoc inf-ruby-default-implementation - inf-ruby-implementations)))) + (let* ((command (cdr (or (assq :ruby params) + (assoc inf-ruby-default-implementation + inf-ruby-implementations)))) (buffer (get-buffer (format "*%s*" session))) (session-buffer (or buffer (save-window-excursion (run-ruby-or-pop-to-buffer - cmd (or session "ruby") + (if (functionp command) + (funcall command) + command) + (or session "ruby") (unless session (inf-ruby-buffer))) (current-buffer))))) diff --git a/lisp/ol-bibtex.el b/lisp/ol-bibtex.el index e8f246e7f..bf25d2205 100644 --- a/lisp/ol-bibtex.el +++ b/lisp/ol-bibtex.el @@ -137,6 +137,8 @@ (declare-function org-set-property "org" (property value)) (declare-function org-toggle-tag "org" (tag &optional onoff)) +(declare-function org-search-view "org-agenda" (&optional todo-only string edit-at)) + ;;; Bibtex data (defvar org-bibtex-types diff --git a/lisp/ol.el b/lisp/ol.el index 9dae82a9b..263e8605e 100644 --- a/lisp/ol.el +++ b/lisp/ol.el @@ -63,10 +63,12 @@ (declare-function org-insert-heading "org" (&optional arg invisible-ok top)) (declare-function org-load-modules-maybe "org" (&optional force)) (declare-function org-mark-ring-push "org" (&optional pos buffer)) +(declare-function org-mode "org" ()) (declare-function org-occur "org" (regexp &optional keep-previous callback)) (declare-function org-open-file "org" (path &optional in-emacs line search)) (declare-function org-overview "org" ()) (declare-function org-restart-font-lock "org" ()) +(declare-function org-run-like-in-org-mode "org" (cmd)) (declare-function org-show-context "org" (&optional key)) (declare-function org-src-coderef-format "org-src" (&optional element)) (declare-function org-src-coderef-regexp "org-src" (fmt &optional label)) diff --git a/lisp/org-compat.el b/lisp/org-compat.el index e4d865819..6e9e248d2 100644 --- a/lisp/org-compat.el +++ b/lisp/org-compat.el @@ -34,7 +34,9 @@ (declare-function org-agenda-diary-entry "org-agenda") (declare-function org-agenda-maybe-redo "org-agenda" ()) +(declare-function org-agenda-set-restriction-lock "org-agenda" (&optional type)) (declare-function org-agenda-remove-restriction-lock "org-agenda" (&optional noupdate)) +(declare-function org-calendar-goto-agenda "org-agenda" ()) (declare-function org-align-tags "org" (&optional all)) (declare-function org-at-heading-p "org" (&optional ignored)) (declare-function org-at-table.el-p "org" ()) diff --git a/lisp/org-entities.el b/lisp/org-entities.el index bca0c4338..b2878609d 100644 --- a/lisp/org-entities.el +++ b/lisp/org-entities.el @@ -27,6 +27,7 @@ ;;; Code: +(declare-function org-mode "org" ()) (declare-function org-toggle-pretty-entities "org" ()) (declare-function org-table-align "org-table" ()) diff --git a/lisp/org-list.el b/lisp/org-list.el index 312f08a33..93bd042fc 100644 --- a/lisp/org-list.el +++ b/lisp/org-list.el @@ -132,6 +132,7 @@ (declare-function org-inlinetask-in-task-p "org-inlinetask" ()) (declare-function org-inlinetask-outline-regexp "org-inlinetask" ()) (declare-function org-level-increment "org" ()) +(declare-function org-mode "org" ()) (declare-function org-narrow-to-subtree "org" ()) (declare-function org-outline-level "org" ()) (declare-function org-previous-line-empty-p "org" ()) diff --git a/lisp/org-macs.el b/lisp/org-macs.el index f25efe07f..f375c33d9 100644 --- a/lisp/org-macs.el +++ b/lisp/org-macs.el @@ -34,6 +34,7 @@ (require 'cl-lib) (require 'format-spec) +(declare-function org-mode "org" ()) (declare-function org-show-context "org" (&optional key)) (declare-function org-string-collate-lessp "org-compat" (s1 s2 &optional locale ignore-case)) diff --git a/lisp/org-src.el b/lisp/org-src.el index 28733d011..b4e54083d 100644 --- a/lisp/org-src.el +++ b/lisp/org-src.el @@ -37,6 +37,7 @@ (require 'org-compat) (require 'org-keys) +(declare-function org-mode "org" ()) (declare-function org-element-at-point "org-element" ()) (declare-function org-element-class "org-element" (datum &optional parent)) (declare-function org-element-context "org-element" (&optional element)) diff --git a/lisp/org-table.el b/lisp/org-table.el index 5d8a71348..cff88053b 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -44,6 +44,9 @@ (declare-function face-remap-add-relative "face-remap" (face &rest specs)) (declare-function org-at-timestamp-p "org" (&optional extended)) (declare-function org-delete-backward-char "org" (N)) +(declare-function org-mode "org" ()) +(declare-function org-duration-p "org-duration" (duration &optional canonical)) +(declare-function org-duration-to-minutes "org-duration" (duration &optional canonical)) (declare-function org-element-at-point "org-element" ()) (declare-function org-element-contents "org-element" (element)) (declare-function org-element-extract-element "org-element" (element)) diff --git a/lisp/org.el b/lisp/org.el index 91b70e533..672065593 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -149,6 +149,7 @@ Stars are put in group 1 and the trimmed body in group 2.") (declare-function org-columns-quit "org-colview" ()) (declare-function org-columns-insert-dblock "org-colview" ()) (declare-function org-duration-from-minutes "org-duration" (minutes &optional fmt canonical)) +(declare-function org-duration-to-minutes "org-duration" (duration &optional canonical)) (declare-function org-element-at-point "org-element" ()) (declare-function org-element-cache-refresh "org-element" (pos)) (declare-function org-element-cache-reset "org-element" (&optional all))