From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [RFC] defcustom sorting-type Date: Sun, 27 Oct 2013 09:13:01 +0100 Message-ID: <87txg3b08i.fsf@gmail.com> References: <52677D50.6070504@easy-emacs.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaLSs-0001qL-JB for emacs-orgmode@gnu.org; Sun, 27 Oct 2013 04:12:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VaLSm-0006cC-Jk for emacs-orgmode@gnu.org; Sun, 27 Oct 2013 04:12:50 -0400 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:52022) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaLSm-0006c8-Co for emacs-orgmode@gnu.org; Sun, 27 Oct 2013 04:12:44 -0400 Received: by mail-wi0-f182.google.com with SMTP id ez12so2715252wid.15 for ; Sun, 27 Oct 2013 01:12:43 -0700 (PDT) In-Reply-To: <52677D50.6070504@easy-emacs.de> ("Andreas \=\?utf-8\?Q\?R\=C3\=B6h\?\= \=\?utf-8\?Q\?ler\=22's\?\= message of "Wed, 23 Oct 2013 09:40:00 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas =?utf-8?Q?R=C3=B6hler?= Cc: emacs-orgmode Hello, Andreas R=C3=B6hler writes: > In docstring of `org-sort-entries' it's told > > "The command prompts for the sorting type unless it has been given to the > function through the SORTING-TYPE argument, which needs to be a character, > \(?n ?N ?a ?A ?t ?T ?s ?S ?d ?D ?p ?P ?o ?O ?r ?R ?f ?F)." > > Suggest to extend it somehow like that way > > "... through the SORTING-TYPE argument, resp. customized `sorting-type',.= .." > > > Which means `sorting-type' would need a defcustom. > > Thus the user isn't prompted every time any more. FWIW, I don't think this is necessary. If one needs a single sorting type only, it is very easy to define a wrapper around `org-sort-entries' and use that function instead. Regards, --=20 Nicolas Goaziou