[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: |
Fri, 12 May 2017 09:10:37 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Hello,
Kyle Meyer <address@hidden> 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
> function is advised or being debugged.
>
> Instead of adding called-interactively-p to org-sort-entries and
> org-sort-list, I initially looked at removing called-interactively-p
> from org-table-sort-lines, but I think that would 1) require changing
> its behavior for determining the sorting column, and 2) going against
> org-table-sort-lines's docstring that says no prompting will take place
> if called from Lisp.
>
> So I'm fine removing called-interactively-p from org-table-sort-lines,
> but I'm not sure how it should behave, particularly with respect to the
> column prompt.
>
> Thoughts?
Couldn't we use (interactive "p") instead, as suggested in
`called-interactively-p' docstring, in order to tell if we need to ask
for a function or not?
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/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, 2017/05/11
- 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 <=
- 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