[O] [PATCH] org-sort: Read compare-func in interactive calls

2017-05-09 Thread Kyle Meyer
* lisp/org-macs.el (org-read-function): New function. * lisp/org.el (org-sort-entries): * lisp/org-table.el (org-table-sort-lines): * lisp/org-list.el (org-sort-list): Read COMPARE-FUNC when called interactively rather than being restricted to the default behavior of sort-subr's PREDICATE parameter

Re: [O] [PATCH] org-sort: Read compare-func in interactive calls

2017-05-11 Thread Nicolas Goaziou
Hello, Kyle Meyer writes: > * lisp/org-macs.el (org-read-function): New function. > * lisp/org.el (org-sort-entries): > * lisp/org-table.el (org-table-sort-lines): > * lisp/org-list.el (org-sort-list): Read COMPARE-FUNC when called > interactively rather than being restricted to the default beha

Re: [O] [PATCH] org-sort: Read compare-func in interactive calls

2017-05-11 Thread Kyle Meyer
Nicolas Goaziou writes: >> * lisp/org-list.el (org-sort-list): Read COMPARE-FUNC when called >> interactively rather than being restricted to the default behavior of >> sort-subr's PREDICATE parameter. Guard prompts for GETKEY-FUNC and >> COMPARE-FUNCTION with called-interactively-p, like >> org

Re: [O] [PATCH] org-sort: Read compare-func in interactive calls

2017-05-12 Thread Nicolas Goaziou
Hello, Kyle Meyer writes: > Yeah, in order to make org-sort-entries, org-sort-list, and > org-table-sort-lines behave the same way with respect to how they read > getkey-func and compare-func, I ignored the warning in > called-interactively-p's docstring that says it can be "brittle" if a > func