From: Zongheng Yang <zongheng.y@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Speeding up agenda custom command with org-agenda-earlier & org-agenda-later
Date: Fri, 22 Jun 2018 13:58:45 -0700 [thread overview]
Message-ID: <CAG2+eogV-1CaY0uR509sSiV=9G-SJXVZnWGgGEKH3uw2Xwuigg@mail.gmail.com> (raw)
In-Reply-To: <87o9g2bl7w.fsf@nicolasgoaziou.fr>
[-- Attachment #1: Type: text/plain, Size: 2124 bytes --]
Cool, looking forward to see the rewrite!
On Fri, Jun 22, 2018 at 1:49 PM Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:
> Hello,
>
> Zongheng Yang <zongheng.y@gmail.com> writes:
>
> > Here's an agenda custom command that acts as the main interface I
> interact
> > with org (in fact, emacs :)).
> >
> > (setq org-agenda-custom-commands
> > '(("c" "Simple agenda view"
> > ((agenda "")
> > (tags "PRIORITY=\"A\""
> > ((org-agenda-files '("~/org/work.org" "~/org/ideas.org
> "))
> > (org-agenda-skip-function '(org-agenda-skip-entry-if
> > 'todo 'done))
> > (org-agenda-overriding-header "High-priority tasks:")
> > ))
> > (tags-todo "PRIORITY=\"C\""
> > ((org-agenda-files '("~/org/work.org" "~/org/
> > ideas.org"))
> > (org-agenda-overriding-header "Long-term:")))
> > (alltodo ""
> > ((org-agenda-skip-function
> > '(or (zongheng-org-skip-subtree-if-priority ?A)
> > (zongheng-org-skip-subtree-if-priority ?C)
> > (org-agenda-skip-if nil '(scheduled
> deadline))))
> > (org-agenda-overriding-header "Other tasks:")))
> > ))))
> >
> > After I get into this view, I frequently issue many "org-agenda-earlier"
> &
> > "org-agenda-later" commands, often in a back-and-forth fashion, to
> inspect
> > what I've done around certain periods.
> >
> > In such a use case, it seems there's *no reason to not cache results*.
> > Without such caching currently *the latency of switching is really high*;
> > with such a caching, I'm happy to pay an one-time latency/CPU cost for
> the
> > first command, as long as successive commands can be sped up.
> >
> > Is a feature like this planned?
>
> I don't think is it planned. Feel free to implement it, if you want to.
>
> I consider Org agenda in dire need of rewriting, though. for better
> scalability and easier maintenance.
>
> Regards,
>
> --
> Nicolas Goaziou
>
[-- Attachment #2: Type: text/html, Size: 3321 bytes --]
next prev parent reply other threads:[~2018-06-22 20:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-20 22:24 Speeding up agenda custom command with org-agenda-earlier & org-agenda-later Zongheng Yang
2018-06-22 20:49 ` Nicolas Goaziou
2018-06-22 20:58 ` Zongheng Yang [this message]
2018-06-23 21:37 ` Samuel Wales
2018-06-23 21:56 ` Nicolas Goaziou
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='CAG2+eogV-1CaY0uR509sSiV=9G-SJXVZnWGgGEKH3uw2Xwuigg@mail.gmail.com' \
--to=zongheng.y@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/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).