From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: About org-sort -> org-sort-list with custom sort function Date: Sun, 07 May 2017 11:37:42 -0400 Message-ID: <87pofk65kp.fsf@kyleam.com> References: <87inlhhgvf.fsf@gmail.com> <87vapd5qb0.fsf@kyleam.com> <87bmr57zqp.fsf@nicolasgoaziou.fr> <87shkg695r.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33177) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7OFo-0001Cy-75 for emacs-orgmode@gnu.org; Sun, 07 May 2017 11:37:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7OFl-0000XC-3P for emacs-orgmode@gnu.org; Sun, 07 May 2017 11:37:48 -0400 Received: from pb-smtp2.pobox.com ([64.147.108.71]:55336 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d7OFk-0000Wv-U6 for emacs-orgmode@gnu.org; Sun, 07 May 2017 11:37:45 -0400 In-Reply-To: <87shkg695r.fsf@kyleam.com> 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" To: Nicolas Goaziou Cc: Zhitao Gong , emacs-orgmode@gnu.org Kyle Meyer writes: > Nicolas Goaziou writes: > >> Kyle Meyer writes: >> >>> I'm a bit confused about why org-call-with-arg is necessary because I >>> think call-interactively already propagates the current prefix argument, >>> but perhaps I'm missing some subtlety here. Either way ... >> >> I thought the same. I think we can replace `org-call-with-arg' with >> `call-interactively' in master. > > OK, I'll have a closer look at which org-call-with-arg calls are > unnecessary. Grepping around, it looks like org-sort is the only place that uses org-call-with-arg to send the argument through untouched. Though, on second thought, using org-call-with-arg here rather than call-interactively means that * the byte-compiler doesn't warn about WITH-CASE being unused. (I think marking it with an underscore would be confusing because it is "used".) * WITH-CASE isn't ignored when passed by a Lisp caller. -- Kyle