From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Snader Subject: Re: Patch to implement sorting Org tables by IP address Date: Sat, 13 Dec 2014 09:19:05 -0500 Message-ID: References: <87r3w4a326.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Content-Type: multipart/signed; boundary="Apple-Mail=_57D3A14B-E7C4-4E29-8AE2-BEEAF4C3A1D7"; protocol="application/pgp-signature"; micalg=pgp-sha1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XznY0-00065m-8e for emacs-orgmode@gnu.org; Sat, 13 Dec 2014 09:19:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XznXu-0003NB-66 for emacs-orgmode@gnu.org; Sat, 13 Dec 2014 09:19:52 -0500 Received: from st11p01mm-asmtp001.mac.com ([17.172.204.239]:59440) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XznXu-0003N6-1G for emacs-orgmode@gnu.org; Sat, 13 Dec 2014 09:19:46 -0500 Received: from [172.30.0.157] (unknown [75.115.6.171]) by st11p01mm-asmtp001.mac.com (Oracle Communications Messaging Server 7.0.5.33.0 64bit (built Aug 27 2014)) with ESMTPSA id <0NGI0085HYGG0C40@st11p01mm-asmtp001.mac.com> for emacs-orgmode@gnu.org; Sat, 13 Dec 2014 14:19:30 +0000 (GMT) In-reply-to: <87r3w4a326.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org --Apple-Mail=_57D3A14B-E7C4-4E29-8AE2-BEEAF4C3A1D7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Dec 12, 2014, at 5:58 PM, Nicolas Goaziou = wrote: > However I think the feature implemented is too specific. Instead, > `org-do-sort' could provide a way to pass an arbitrary predicate, > like ?f and ?F in `org-sort-list'. >=20 > WDYT? Actually, when I originally looked at org-do-sort, my first thought was = that it should be table driven. But this is my first patch and I=E2=80=99m= the new kid so I didn=E2=80=99t want to come in and start tearing down = walls. My idea for making it table driven is to add an alist whose elements = look something like (prompt-char prompt extraction-function compare-function = reverse-compare-function with-case-extraction-function) The alist would be initialized with the built-in options (including the = IP address sort) but a user could call add-to-list to add a custom sort = to his or her environment. If the list agrees, I will resubmit the patch implementing what I=E2=80=99= ve described. As a procedural matter, should I submit it to this thread = or add a new one? --Apple-Mail=_57D3A14B-E7C4-4E29-8AE2-BEEAF4C3A1D7 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIcBAEBAgAGBQJUjErpAAoJEO+a/ARTO0yyU1cP/A4XDXsIZAOYgTZYdyV5rvVj 8mFQdgpkP/WqpiB4+/s6MfxuBBBC0fhHwh9dlD95BwAfLDSidSHuCg4N96eJAD/t EgpAaXDBPDpMJ9Sh7ttci/DVf03ilDHBCkk6E0Vd9RnOgO4Wsw0qNhBto19Ohc2J etKaZh+ZsImJmdD5I6A7FVZx4LWLpuZXPzKKiTcqXt3rxLAa3PWFYFqLDwWj7lAe f9+Ait9xXSLnQFnZqcv3V+oO6ruTWHwDbTNzFrI9PAwUR15m05METDBgVv7gqb0T Efu3ds7XVgsrCYzGg6kJc24TJKjxcyG7z3vLxHACm5osH6xll+Tm0gFmq6KhOsX9 ra3tpRy9HCY6i+/qCvLtlMnUacm9H4KOxuV5eUZILGKqtEdmaCDTTWJa8w9MS41V G5vDjg0Qw0wp7yTTEjualVnUI0BqJEQ4xmZwzXxPPApIDrclKMbO62kYSRbohMwd dKA55LjRZe8Xcrejibs966mE8Qb9BSsimMw+lSY+PGZmDgZAsfC7xohSNy50ohOH VDm+VD3J9Tu4YVT4btxtwJxDAUT01tKs2p1p25/MYSHwRAJJouTM/lqoLNpSXvV0 YXyuYzRH67KTf+u+CJT7uxLl83t/ZVBZGTfpfJ46zw0vwd1x6UEGhpIVSYROA9Vd OAZ13wl/OJLcz5WnEHV9 =wASE -----END PGP SIGNATURE----- --Apple-Mail=_57D3A14B-E7C4-4E29-8AE2-BEEAF4C3A1D7--