From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: C-c ^ for plain lists? Why not? Date: Sat, 27 Oct 2012 09:57:04 +0200 Message-ID: <87sj90qre7.fsf@bzg.ath.cx> References: <87626l6n6e.wl%jamshark70@dewdrop-world.net> <87pq4srfc6.fsf@gmail.com> <540B116A-148E-46E5-94EA-5965B206613B@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TS1GA-0008Pk-EV for emacs-orgmode@gnu.org; Sat, 27 Oct 2012 03:56:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TS1G9-0000Vh-Bv for emacs-orgmode@gnu.org; Sat, 27 Oct 2012 03:56:46 -0400 Received: from mail-wg0-f41.google.com ([74.125.82.41]:46184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TS1G9-0000Vd-4X for emacs-orgmode@gnu.org; Sat, 27 Oct 2012 03:56:45 -0400 Received: by mail-wg0-f41.google.com with SMTP id ds1so603814wgb.0 for ; Sat, 27 Oct 2012 00:56:44 -0700 (PDT) In-Reply-To: <540B116A-148E-46E5-94EA-5965B206613B@gmail.com> (Carsten Dominik's message of "Tue, 9 Oct 2012 09:58:11 +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: Carsten Dominik Cc: James Harkins , emacs-orgmode@gnu.org, Nicolas Goaziou Carsten Dominik writes: > I would think that > > checked - transitionary - unchecked - no box > > is a pretty decent default. +1 > (defun org-sort-list-by-checkbox-type () > "Sort list items according to Checkbox state." > (interactive) > (org-sort-list > nil ?f > (lambda () > (if (looking-at org-list-full-item-re) > (cdr (assoc (match-string 3) > '(("[X]" . 1) ("[-]" . 2) ("[ ]" . 3) (nil . 4)))) > 4)))) Thanks -- I added this on Worg's hacks: http://orgmode.org/worg/org-hacks.html#sec-1-2-9 -- Bastien