all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Holcomb <pholcomb@cpoint.net>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: PATCH Bugfix: bulk mark/unmark selects wrong next item when restricted
Date: Sat, 2 Jan 2010 15:45:25 -0600	[thread overview]
Message-ID: <20100102214525.GN6266@cpoint.net> (raw)

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


 When you are in agenda view and limit the items that are visible,
 such as with a tag restriction, marking and unmarking behaves
 incorrectly.  After the item is marked or unmarked for bulk action,
 the point is moved to the next item, regardless of whether the next item
 is visible.


-- 
Paul Holcomb                               *pholcomb    \@      cpoint  net*
GPG key fingerprint          2B62 05AE EE74 845A 705F  D716 28C4 FE1C 088F CFAC

[-- Attachment #2: org-agenda.el-bulkmark.patch --]
[-- Type: text/plain, Size: 988 bytes --]

 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index da60310..670b4b0 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -7057,7 +7057,7 @@ This is a command that has to be installed in `calendar-mode-map'."
 			   (org-get-todo-face "TODO")
 			   'evaporate)
       (org-overlay-put ov 'type 'org-marked-entry-overlay))
-    (beginning-of-line 2)
+    (org-agenda-next-line)
     (message "%d entries marked for bulk action"
 	     (length org-agenda-bulk-marked-entries))))
 
@@ -7070,8 +7070,8 @@ This is a command that has to be installed in `calendar-mode-map'."
     (setq org-agenda-bulk-marked-entries
 	  (delete (org-get-at-bol 'org-hd-marker)
 		  org-agenda-bulk-marked-entries)))
-  (beginning-of-line 2)
-  (message "%d entries marked for bulk action"
+  (org-agenda-next-line)
+(message "%d entries marked for bulk action"
 	   (length org-agenda-bulk-marked-entries)))
 
 (defun org-agenda-bulk-toggle ()

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

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

             reply	other threads:[~2010-01-02 21:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-02 21:45 Paul Holcomb [this message]
2010-01-03 12:56 ` PATCH Bugfix: bulk mark/unmark selects wrong next item when restricted Carsten Dominik

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

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

  git send-email \
    --in-reply-to=20100102214525.GN6266@cpoint.net \
    --to=pholcomb@cpoint.net \
    --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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.