From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: Moving checkbox item to end of list when checked Date: Wed, 22 Jan 2014 16:23:55 +0100 Message-ID: <87bnz49h10.fsf@gmail.com> References: <87lhy89ppf.fsf@gmail.com> <877g9svza6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5zeU-00010N-NH for emacs-orgmode@gnu.org; Wed, 22 Jan 2014 10:23:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5zeN-0002SL-E8 for emacs-orgmode@gnu.org; Wed, 22 Jan 2014 10:23:38 -0500 Received: from plane.gmane.org ([80.91.229.3]:51030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5zeN-0002S8-73 for emacs-orgmode@gnu.org; Wed, 22 Jan 2014 10:23:31 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W5zeL-0005Be-GK for emacs-orgmode@gnu.org; Wed, 22 Jan 2014 16:23:29 +0100 Received: from g231232076.adsl.alicedsl.de ([92.231.232.76]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Jan 2014 16:23:29 +0100 Received: from tjolitz by g231232076.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Jan 2014 16:23:29 +0100 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: emacs-orgmode@gnu.org Nicolas Goaziou writes: Hello, > Thorsten Jolitz writes: > >> Your function could be implemented along the line of: >> >> 1. put an 'after' advice on `org-toggle-checkbox' > > See also `org-checkbox-statistics-hook' > >> Its easy to get 'struct at point' with >> >> #+begin_src emacs-lisp >> (defun org-list-struct () >> "Return structure of list at point. >> ...) >> #+end_src >> >> but I could not find an equivalent function to get the item at >> point. > > See `org-in-item-p'. Ok, thanks for the tips PS My original message apparently took 3 hours to make it to the mailing list, so it came a bit late to the party... -- cheers, Thorsten