diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-04-28 13:40:13 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-04-28 13:41:35 -0700 |
commit | fa1a7ac617619ef015e02e72950eef219ec62336 (patch) | |
tree | 38c789338881e65fe4f1b194bfec3096defc6ce0 /lisp/org/org-compat.el | |
parent | 083d2708f9ec7f09712488a99fc9eedd3d594ff6 (diff) | |
download | emacs-fa1a7ac617619ef015e02e72950eef219ec62336.tar.gz emacs-fa1a7ac617619ef015e02e72950eef219ec62336.tar.bz2 emacs-fa1a7ac617619ef015e02e72950eef219ec62336.zip |
Pacify byte compiler etc. on org-compat, org-macs
Byte-compiler problem reported by Lars Ingebrigtsen in:
https://lists.gnu.org/r/emacs-devel/2022-04/msg01256.html
* lisp/org/org-compat.el (org-at-table.el-p):
Now declared in org-table, not org.
(org-string-collate-lessp): Define the ersatz
org-string-collate-lessp with the same API as the primary form, to
pacify check-declare-file when run on org-macs.
* lisp/org/org-macs.el (org-time-convert-to-integer): Declare.
Diffstat (limited to 'lisp/org/org-compat.el')
-rw-r--r-- | lisp/org/org-compat.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org/org-compat.el b/lisp/org/org-compat.el index 7ac07ce4f6b..3e394fbab1c 100644 --- a/lisp/org/org-compat.el +++ b/lisp/org/org-compat.el @@ -39,7 +39,7 @@ (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" ()) +(declare-function org-at-table.el-p "org-table" ()) (declare-function org-element-at-point "org-element" ()) (declare-function org-element-context "org-element" (&optional element)) (declare-function org-element-lineage "org-element" (blob &optional types with-self)) @@ -238,7 +238,7 @@ This is a floating point number if the size is too large for an integer." (if (fboundp 'string-collate-lessp) (defalias 'org-string-collate-lessp 'string-collate-lessp) - (defun org-string-collate-lessp (s1 s2 &rest _) + (defun org-string-collate-lessp (s1 s2 &optional _ _) "Return non-nil if STRING1 is less than STRING2 in lexicographic order. Case is significant." (string< s1 s2))) |