Browse Source

org-list: check with-case argument when sorting a list alphabetically

* lisp/org-list.el (org-sort-list): no longer ignore with-case
  argument: the function sorted case-sensitively, regardless of
  argument.
Nicolas Goaziou 14 năm trước cách đây
mục cha
commit
073ab7de83
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      lisp/org-list.el

+ 2 - 1
lisp/org-list.el

@@ -2586,7 +2586,8 @@ compare entries."
 		    (string-to-number (buffer-substring (match-end 0)
 							(point-at-eol))))
 		   ((= dcst ?a)
-		    (buffer-substring (match-end 0) (point-at-eol)))
+		    (funcall case-func
+			     (buffer-substring (match-end 0) (point-at-eol))))
 		   ((= dcst ?t)
 		    (cond
 		     ;; If it is a timer list, convert timer to seconds