[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [PATCH][mini] bulk-mark-regexp and -toggle also with time grid

From: marcowahlsoft
Subject: [O] [PATCH][mini] bulk-mark-regexp and -toggle also with time grid
Date: Thu, 18 Sep 2014 20:03:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)


>From the documentation for * in an agenda-buffer (C-h k *):

--8<---------------cut here---------------start------------->8---
* runs the command org-agenda-bulk-mark-all (found in
  org-agenda-mode-map), which is an interactive compiled Lisp function
  in `org-agenda.el'.

It is bound to *, <menu-bar> <Agenda> <Bulk action> <Mark all>.


Mark all entries for future agenda bulk action.
--8<---------------cut here---------------end--------------->8---

Currently this is not true if there is a time grid in the agenda buffer.

--8<---------------cut here---------------start------------->8---
G runs the command org-agenda-toggle-time-grid (found in...
--8<---------------cut here---------------end--------------->8---

Please consider to apply the attached patch.

Ciao,  Marco
PGP: 0x0A3AE6F2
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index dbc9861..c8808e5 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -9680,7 +9680,7 @@ This is a command that has to be installed in 
          (overlay-put ov 'type 'org-marked-entry-overlay))
        (end-of-line 1)
        (or (ignore-errors
-             (goto-char (next-single-property-change (point) 'txt)))
+             (goto-char (next-single-property-change (point) 'org-hd-marker)))
            (beginning-of-line 2))
        (while (and (get-char-property (point) 'invisible) (not (eobp)))
          (beginning-of-line 2))
@@ -9734,7 +9734,7 @@ This is a command that has to be installed in 
     (goto-char (point-min))
     (while (ignore-errors
-            (goto-char (next-single-property-change (point) 'txt)))
+            (goto-char (next-single-property-change (point) 'org-hd-marker)))
 (defun org-agenda-bulk-toggle ()

reply via email to

[Prev in Thread] Current Thread [Next in Thread]