summaryrefslogtreecommitdiff
path: root/lisp/org/org-list.el
diff options
context:
space:
mode:
authorCarsten Dominik <dominik@science.uva.nl>2009-01-30 08:32:49 +0000
committerCarsten Dominik <dominik@science.uva.nl>2009-01-30 08:32:49 +0000
commita2a2e7fb019afda8ae3d650f9b5563fad20e90aa (patch)
tree90b7ae4b3ef04af8ac3549379a9ba94659e1767e /lisp/org/org-list.el
parentcf4b480f77c1d4b3878254f6c2f19746713a0349 (diff)
downloademacs-a2a2e7fb019afda8ae3d650f9b5563fad20e90aa.tar.gz
emacs-a2a2e7fb019afda8ae3d650f9b5563fad20e90aa.tar.bz2
emacs-a2a2e7fb019afda8ae3d650f9b5563fad20e90aa.zip
2009-01-30 Carsten Dominik <carsten.dominik@gmail.com>
* org-timer.el (org-timer): Provide the timer feature. * org.el (org-require-autoloaded-modules): Add a few more files to the list of autoloaded modules. * org-agenda.el (org-agenda-todo): Pass ARG to `org-todo'. * org-exp.el (org-export-remove-or-extract-drawers): Only remove drawers that are unprotected. (org-export-html-format-image): Make sure inlined LaTeX fragment images remain inlined. * org.el (org-toggle-ordered-property): New function. (org-mode-map): Add a key for `org-toggle-ordered-property'. (org-org-menu): Add menu entries for TODO dependencies. * org.el (org-default-properties): Add ORDERED to the default properties, to get completion support for it. * org-list.el (org-update-checkbox-count): Update more than one cookie. * org.el (org-update-parent-todo-statistics): Update more than one cookie.
Diffstat (limited to 'lisp/org/org-list.el')
-rw-r--r--lisp/org/org-list.el13
1 files changed, 9 insertions, 4 deletions
diff --git a/lisp/org/org-list.el b/lisp/org/org-list.el
index 78f3552e9b3..13f54dc83a7 100644
--- a/lisp/org/org-list.el
+++ b/lisp/org/org-list.el
@@ -7,7 +7,7 @@
;; Bastien Guerry <bzg AT altern DOT org>
;; Keywords: outlines, hypermedia, calendar, wp
;; Homepage: http://orgmode.org
-;; Version: 6.20c
+;; Version: 6.20g
;;
;; This file is part of GNU Emacs.
;;
@@ -253,7 +253,9 @@ Return t when things worked, nil when we are not in an item."
With prefix arg TOGGLE-PRESENCE, add or remove checkboxes.
When there is an active region, toggle status or presence of the checkbox
in the first line, and make every item in the region have the same
-status or precence, respectively."
+status or precence, respectively.
+If the cursor is in a headline, apply this to all checkbox items in the
+text below the heading."
(interactive "P")
(catch 'exit
(let (beg end status first-present first-status)
@@ -286,7 +288,10 @@ status or precence, respectively."
(save-excursion
(goto-char beg)
(setq first-present (org-at-item-checkbox-p)
- first-status (and first-present (equal (match-string 0) "[X]")))
+ first-status
+ (save-excursion
+ (and (re-search-forward "[ \t]\\(\\[[ X]\\]\\)" end t)
+ (equal (match-string 1) "[X]"))))
(while (< (point) end)
(if toggle-presence
(cond
@@ -343,7 +348,7 @@ the whole buffer."
end-cookie (match-end 1)
cstat (+ cstat (if end-cookie 1 0))
startsearch (point-at-eol)
- continue-from (point-at-bol)
+ continue-from (match-beginning 0)
is-percent (match-beginning 2)
lim (cond
((org-on-heading-p) (outline-next-heading) (point))