]> git.eshelyaron.com Git - emacs.git/commitdiff
Silence warnings in Org 9.3
authorJuanma Barranquero <lekktu@gmail.com>
Wed, 4 Dec 2019 06:05:14 +0000 (07:05 +0100)
committerJuanma Barranquero <lekktu@gmail.com>
Wed, 4 Dec 2019 06:05:14 +0000 (07:05 +0100)
* lisp/org/ob-eshell.el (eshell-send-input): Declare.
(eshell-last-output-start, eshell-last-output-end)
(eshell-last-input-end): Defvar.

* lisp/org/org-keys.el (cl-lib): Require.
(org-CUA-compatible): Move up defvaralias.

lisp/org/ob-eshell.el
lisp/org/org-keys.el

index 1090bef62f5a291b3f22e545c6dece1c5f5772ba..bfb24f8a655518ed01805f899fe7b0684d9e1e9c 100644 (file)
 (require 'ob)
 (require 'eshell)
 
+(declare-function eshell-send-input "esh-mode"
+                  (&optional use-region queue-p no-newline))
+
+(defvar eshell-last-output-start)
+(defvar eshell-last-output-end)
+(defvar eshell-last-input-end)
+
 (defvar org-babel-default-header-args:eshell '())
 
 (defun org-babel-execute:eshell (body params)
index daad26dbf33c8d0dfb593e898dab807dd94d734e..3b8fa5f53beae946fe0e91cf18f402b6cc33a9e1 100644 (file)
@@ -27,6 +27,8 @@
 
 ;;; Code:
 
+(require 'cl-lib)
+
 (defvar org-outline-regexp)
 
 (declare-function org-add-note "org" ())
 (defvar org-mode-map (make-sparse-keymap)
   "Keymap fo Org mode.")
 
+(defvaralias 'org-CUA-compatible 'org-replace-disputed-keys)
+
 (defcustom org-replace-disputed-keys nil
   "Non-nil means use alternative key bindings for some keys.
 
@@ -244,8 +248,6 @@ loading Org."
   :type 'boolean
   :safe #'booleanp)
 
-(defvaralias 'org-CUA-compatible 'org-replace-disputed-keys)
-
 (defcustom org-disputed-keys
   '(([(shift up)]              . [(meta p)])
     ([(shift down)]            . [(meta n)])