Browse Source

Silence byte-compiler

* lisp/ob-emacs-lisp.el:
* lisp/org-macro.el: Silence byte-compiler.
Nicolas Goaziou 10 months ago
parent
commit
3be2260806
2 changed files with 11 additions and 1 deletions
  1. 7 1
      lisp/ob-emacs-lisp.el
  2. 4 0
      lisp/org-macro.el

+ 7 - 1
lisp/ob-emacs-lisp.el

@@ -26,7 +26,13 @@
 ;; Org-Babel support for evaluating emacs-lisp code
 
 ;;; Code:
-(require 'ob)
+
+(require 'ob-core)
+
+(declare-function org-babel--get-vars "ob" (params))
+(declare-function org-babel-result-cond "ob" (result-params scalar-form &rest table-forms))
+(declare-function org-babel-reassemble-table "ob" (table colnames rownames))
+(declare-function org-babel-pick-name "ob" (names selector))
 
 (defconst org-babel-header-args:emacs-lisp '((lexical . :any))
   "Emacs-lisp specific header arguments.")

+ 4 - 0
lisp/org-macro.el

@@ -58,14 +58,18 @@
 (declare-function org-element-property "org-element" (property element))
 (declare-function org-element-restriction "org-element" (element))
 (declare-function org-element-type "org-element" (element))
+(declare-function org-entry-get "org" (pom property &optional inherit literal-nil))
 (declare-function org-file-contents "org" (file &optional noerror nocache))
 (declare-function org-file-url-p "org" (file))
 (declare-function org-in-commented-heading-p "org" (&optional no-inheritance))
+(declare-function org-link-search "org" (s &optional avoid-pos stealth))
 (declare-function org-mode "org" ())
 (declare-function vc-backend "vc-hooks" (f))
 (declare-function vc-call "vc-hooks" (fun file &rest args) t)
 (declare-function vc-exec-after "vc-dispatcher" (code))
 
+(defvar org-link-search-must-match-exact-headline)
+
 ;;; Variables
 
 (defvar-local org-macro-templates nil