From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Moving checkbox item to end of list when checked Date: Wed, 22 Jan 2014 15:58:41 +0100 Message-ID: <877g9svza6.fsf@gmail.com> References: <87lhy89ppf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5zG8-0001Ww-W5 for emacs-orgmode@gnu.org; Wed, 22 Jan 2014 09:58:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5zG0-00023G-61 for emacs-orgmode@gnu.org; Wed, 22 Jan 2014 09:58:28 -0500 Received: from mail-we0-x22c.google.com ([2a00:1450:400c:c03::22c]:39405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5zFz-000239-VW for emacs-orgmode@gnu.org; Wed, 22 Jan 2014 09:58:20 -0500 Received: by mail-we0-f172.google.com with SMTP id q58so405882wes.17 for ; Wed, 22 Jan 2014 06:58:19 -0800 (PST) In-Reply-To: <87lhy89ppf.fsf@gmail.com> (Thorsten Jolitz's message of "Wed, 22 Jan 2014 13:16:28 +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: Thorsten Jolitz Cc: emacs-orgmode@gnu.org 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'. Regards, -- Nicolas Goaziou