emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Keyboard command to force "done"
@ 2012-10-11 14:30 Nathan Neff
  2012-10-24 14:21 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Nathan Neff @ 2012-10-11 14:30 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Keyboard command to force "done"
  2012-10-11 14:30 Keyboard command to force "done" Nathan Neff
@ 2012-10-24 14:21 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2012-10-24 14:21 UTC (permalink / raw)
  To: Nathan Neff; +Cc: emacs-orgmode

HI Nathan,

Nathan Neff <nathan.neff@gmail.com> writes:

> (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
> )

(org-todo 'done)

HTH,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-24 14:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-11 14:30 Keyboard command to force "done" Nathan Neff
2012-10-24 14:21 ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).