Explorar el Código

Fix failing tests

* lisp/org-compat.el (org-string-collate-lessp): Reinstate function,
  inadvertently removed in last merge with maint branch.
Nicolas Goaziou hace 7 años
padre
commit
61c8903c87
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      lisp/org-compat.el

+ 6 - 0
lisp/org-compat.el

@@ -87,6 +87,12 @@
 	  (and (memq system-type '(windows-nt ms-dos))
 	       (= lastc ?\\))))))
 
+;; `string-collate-lessp' is new in Emacs 25.
+(defalias 'org-string-collate-lessp
+  (if (fboundp 'string-collate-lessp)
+      'string-collate-lessp
+    'string-lessp))
+
 
 ;;; Obsolete aliases (remove them after the next major release).