From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Keyboard command to force "done" Date: Thu, 11 Oct 2012 09:30:42 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMJmq-0000ST-JH for emacs-orgmode@gnu.org; Thu, 11 Oct 2012 10:31:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMJme-0006HU-Cx for emacs-orgmode@gnu.org; Thu, 11 Oct 2012 10:30:56 -0400 Received: from mail-oa0-f41.google.com ([209.85.219.41]:51192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMJme-0006Fu-7u for emacs-orgmode@gnu.org; Thu, 11 Oct 2012 10:30:44 -0400 Received: by mail-oa0-f41.google.com with SMTP id k14so2122278oag.0 for ; Thu, 11 Oct 2012 07:30:42 -0700 (PDT) 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 Hello, I'd like to create a keyboard shortcut to set a TODO state to "done" and ignore any dependencies/blocking (like todo items in subheadings, or checkboxes). >From the documentation for (org-todo) I see that I need to specify the argument prefix of C-u C-u C-u I have other keyboard shortcuts that do this also, but I can't successfully call org-todo with a "done" argument. Can anyone correct this function to be able to specify "done" as an argument to 'org-todo? (defun njn/force-done () (interactive) (setq current-prefix-arg '(64)) ; specify universal argument as C-u C-u C-u (4*4*4) (call-interactively 'org-todo)) ; don't know the syntax to pass 'done to 'org-todo ) Thanks, --Nate