[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] org-sort: Read compare-func in interactive calls
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [PATCH] org-sort: Read compare-func in interactive calls |
Date: |
Thu, 11 May 2017 23:47:43 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Hello,
Kyle Meyer <address@hidden> 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 behavior of
> sort-subr's PREDICATE parameter. Guard prompts for GETKEY-FUNC and
> COMPARE-FUNCTION with called-interactively-p, like
> org-table-sort-lines already did for GETKEY-FUNC.
Thank you. I have but one comment.
> + (sort-func
> + (cond
> + ((= dcst ?a) #'string<)
> + ((= dcst ?f)
> + (or compare-func
> + (and (called-interactively-p 'any)
The above should be avoided. See `called-interactively-p' docstring. The
same applies in other places.
Regards,
--
Nicolas Goaziou
- Re: [O] About org-sort -> org-sort-list with custom sort function, (continued)
- Re: [O] About org-sort -> org-sort-list with custom sort function, Kyle Meyer, 2017/05/06
- Re: [O] About org-sort -> org-sort-list with custom sort function, Nicolas Goaziou, 2017/05/07
- Re: [O] About org-sort -> org-sort-list with custom sort function, Kyle Meyer, 2017/05/07
- Re: [O] About org-sort -> org-sort-list with custom sort function, Kyle Meyer, 2017/05/07
- Re: [O] About org-sort -> org-sort-list with custom sort function, Nicolas Goaziou, 2017/05/08
- Re: [O] About org-sort -> org-sort-list with custom sort function, Kyle Meyer, 2017/05/08
- Re: [O] About org-sort -> org-sort-list with custom sort function, Nicolas Goaziou, 2017/05/08
- Re: [O] About org-sort -> org-sort-list with custom sort function, Kyle Meyer, 2017/05/08
- Re: [O] About org-sort -> org-sort-list with custom sort function, Nicolas Goaziou, 2017/05/08
- [O] [PATCH] org-sort: Read compare-func in interactive calls, Kyle Meyer, 2017/05/09
- Re: [O] [PATCH] org-sort: Read compare-func in interactive calls,
Nicolas Goaziou <=
- Re: [O] [PATCH] org-sort: Read compare-func in interactive calls, Kyle Meyer, 2017/05/11
- Re: [O] [PATCH] org-sort: Read compare-func in interactive calls, Nicolas Goaziou, 2017/05/12
- Re: [O] [PATCH v2] org-sort: Read compare-func in interactive calls, Kyle Meyer, 2017/05/13
- Re: [O] [PATCH v2] org-sort: Read compare-func in interactive calls, Nicolas Goaziou, 2017/05/14
- Re: [O] [PATCH v2] org-sort: Read compare-func in interactive calls, Kyle Meyer, 2017/05/14
- Re: [O] [PATCH v2] org-sort: Read compare-func in interactive calls, Nicolas Goaziou, 2017/05/14
- Re: [O] [PATCH v2] org-sort: Read compare-func in interactive calls, Kyle Meyer, 2017/05/14
- Re: [O] [PATCH v2] org-sort: Read compare-func in interactive calls, Nicolas Goaziou, 2017/05/17
- Re: [O] About org-sort -> org-sort-list with custom sort function, Kyle Meyer, 2017/05/09