emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: marcowahlsoft@gmail.com
To: emacs-orgmode@gnu.org
Subject: Re: [PATCH][mini] bulk-mark-regexp and -toggle also with time grid
Date: Fri, 19 Sep 2014 12:38:12 +0200	[thread overview]
Message-ID: <84k34znbe3.fsf@tm6592.fritz.box> (raw)
In-Reply-To: 84vbok957q.fsf@tm6592.fritz.box

[-- Attachment #1: Type: text/plain, Size: 286 bytes --]

> (org-agenda-bulk-mark-all)
>
> Mark all entries for future agenda bulk action.

> Currently this is not true if there is a time grid in the agenda buffer.
>
> Please consider to apply the attached patch.

I forgot one line in the previous patch.  Please consider the new patch only.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: bulk-mark regexp and toggle also with time grid patch --]
[-- Type: text/x-diff, Size: 1421 bytes --]

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index dbc9861..1bec8dc 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 `calendar-mode-map'."
 	  (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))
@@ -9698,7 +9698,7 @@ This is a command that has to be installed in `calendar-mode-map'."
   (let ((entries-marked 0) txt-at-point)
     (save-excursion
       (goto-char (point-min))
-      (goto-char (next-single-property-change (point) 'txt))
+      (goto-char (next-single-property-change (point) 'org-hd-marker))
       (while (and (re-search-forward regexp nil t)
 		  (setq txt-at-point (get-text-property (point) 'txt)))
 	(when (string-match regexp txt-at-point)
@@ -9734,7 +9734,7 @@ This is a command that has to be installed in `calendar-mode-map'."
   (save-excursion
     (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)))
       (org-agenda-bulk-toggle))))
 
 (defun org-agenda-bulk-toggle ()

[-- Attachment #3: Type: text/plain, Size: 79 bytes --]



Sorry for the extra noise,  Marco
-- 
http://www.wahlzone.de
PGP: 0x0A3AE6F2

  reply	other threads:[~2014-09-19 10:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-18 18:03 [PATCH][mini] bulk-mark-regexp and -toggle also with time grid marcowahlsoft
2014-09-19 10:38 ` marcowahlsoft [this message]
2014-09-20 12:18   ` Nicolas Goaziou
2014-09-20 20:35     ` marcowahlsoft

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=84k34znbe3.fsf@tm6592.fritz.box \
    --to=marcowahlsoft@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).