From: Bernt Hansen <bernt@norang.ca>
To: emacs-orgmode@gnu.org
Cc: Bernt Hansen <bernt@norang.ca>
Subject: [PATCH] Skip uninteresting lines when navigating the agenda
Date: Wed, 7 Mar 2012 21:14:47 -0500 [thread overview]
Message-ID: <1331172887-2163-1-git-send-email-bernt@norang.ca> (raw)
* lisp/org-agenda.el (org-agenda-next-line): Skip lines without markers
* lisp/org-agenda.el (org-agenda-previous-line): Skip lines without markers
Next and previous line functions now only visit agenda lines
which have a marker defined. This skips all of the
uninteresting data lines in the agenda window such as
empty grid lines, titles, and separate lines in block agendas.
---
lisp/org-agenda.el | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index ac1b5b1..90a4228 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -6911,12 +6911,18 @@ When called with a prefix argument, include all archive files as well."
"Move cursor to the next line, and show if follow mode is active."
(interactive)
(call-interactively 'next-line)
+ (while (and (not (org-get-at-bol 'org-hd-marker))
+ (< (point) (point-max)))
+ (call-interactively 'next-line))
(org-agenda-do-context-action))
(defun org-agenda-previous-line ()
"Move cursor to the previous line, and show if follow-mode is active."
(interactive)
(call-interactively 'previous-line)
+ (while (and (not (org-get-at-bol 'org-hd-marker))
+ (> (point) (point-min)))
+ (call-interactively 'previous-line))
(org-agenda-do-context-action))
(defun org-agenda-do-context-action ()
--
1.7.9.48.g85da4d
next reply other threads:[~2012-03-08 2:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-08 2:14 Bernt Hansen [this message]
2012-04-11 13:46 ` [PATCH] Skip uninteresting lines when navigating the agenda Bernt Hansen
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=1331172887-2163-1-git-send-email-bernt@norang.ca \
--to=bernt@norang.ca \
--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).