From 8e9518a3b0996c24e287dbf60d1b2d2cbb4e7b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Reu=C3=9Fe?= Date: Sun, 11 Mar 2018 16:43:50 +0100 Subject: [PATCH] Fix string-collate-lessp shim * org-compat.el (org-string-collate-lessp): When shimming string-collate-lessp, accept the same arguments as in the unshimmed case. --- lisp/org-compat.el | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lisp/org-compat.el b/lisp/org-compat.el index 975752224..a22b5f1a6 100644 --- a/lisp/org-compat.el +++ b/lisp/org-compat.el @@ -88,10 +88,16 @@ (= lastc ?\\)))))) ;; `string-collate-lessp' is new in Emacs 25. -(defalias 'org-string-collate-lessp - (if (fboundp 'string-collate-lessp) - 'string-collate-lessp - 'string-lessp)) +(if (fboundp 'string-collate-lessp) + (defalias 'org-string-collate-lessp + 'string-collate-lessp) + (defun org-string-collate-lessp (s1 s2 &optional locale ignore-case) + "Return non-nil if STRING1 is less than STRING2 in lexicographic order. + +Case is significant. + +LOCALE and IGNORE-CASE are ignored." + (string< s1 s2))) ;;; Obsolete aliases (remove them after the next major release).