Ver Fonte

* org.el (org-fast-tag-selection): Fix bug when assigning keys

* org.el (org-fast-tag-selection): Fix bug when assigning keys
for fast tag selection.

Patch submitted by Jason Dunsmore.
Bastien Guerry há 14 anos atrás
pai
commit
c7d1e0f997
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      lisp/org.el

+ 2 - 1
lisp/org.el

@@ -12947,7 +12947,8 @@ possibly with grouping information.  TODO-TABLE is a similar table with
 TODO keywords, should these have keys assigned to them.
 If the keys are nil, a-z are automatically assigned.
 Returns the new tags string, or nil to not change the current settings."
-  (let* ((fulltable (append table todo-table))
+  (let* ((table (sort table (lambda (a b) (string< (car a) (car b)))))
+	 (fulltable (append table todo-table))
 	 (maxlen (apply 'max (mapcar
 			      (lambda (x)
 				(if (stringp (car x)) (string-width (car x)) 0))