From: Samuel Loury <konubinix@gmail.com>
To: Alan Schmitt <alan.schmitt@polytechnique.org>,
Kyle Meyer <kyle@kyleam.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: can I refile or archive from the agenda without rebuilding?
Date: Mon, 15 Dec 2014 09:31:19 +0100 [thread overview]
Message-ID: <87y4q9tiug.fsf@konixwork.incubateur.ens-lyon.fr> (raw)
In-Reply-To: <m2mw6r7vuv.fsf@charm-wifi.irisa.fr>
[-- Attachment #1: Type: text/plain, Size: 1349 bytes --]
Alan Schmitt <alan.schmitt@polytechnique.org> writes:
> On 2014-12-12 12:01, Kyle Meyer <kyle@kyleam.com> writes:
>
>> Alan Schmitt <alan.schmitt@polytechnique.org> wrote:
>>> My agenda is fairly big, and it takes a few minutes to generate it.
>>
>> Wow.
>
> I meant seconds (about 20 seconds). But is feels like minutes ;)
I have the same feeling :-).
>>> When I need to refile many items to different places (so bulk edit is
>>> not an option), it slows me down quite a bit. Is there an option to
>>> prevent rebuilding the agenda after archiving or refiling?
>>
>> org-agenda-refile takes a NO-UPDATE argument. To set this
>> interactively, you could advise org-agenda-refile (or wrap it in another
>> command).
>
> This is a great suggestion, thanks! It works perfectly.
For other readers to take advantage of the code, this is my
implementation of the advise.
--8<---------------cut here---------------start------------->8---
(defun my/org-agenda-refile (orig &optional goto rfloc no-update)
(funcall orig goto rfloc t))
(add-function :around
(symbol-function 'org-agenda-refile)
#'my/org-agenda-refile)
--8<---------------cut here---------------end--------------->8---
My two cents,
--
Konubinix
GPG Key : 7439106A
Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]
next prev parent reply other threads:[~2014-12-15 8:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-12 13:30 can I refile or archive from the agenda without rebuilding? Alan Schmitt
2014-12-12 17:01 ` Kyle Meyer
2014-12-13 9:16 ` Alan Schmitt
2014-12-15 8:31 ` Samuel Loury [this message]
2014-12-16 9:17 ` Alan Schmitt
2014-12-16 20:46 ` Kyle Meyer
2014-12-17 9:34 ` Samuel Loury
2014-12-17 15:36 ` Alan Schmitt
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=87y4q9tiug.fsf@konixwork.incubateur.ens-lyon.fr \
--to=konubinix@gmail.com \
--cc=alan.schmitt@polytechnique.org \
--cc=emacs-orgmode@gnu.org \
--cc=kyle@kyleam.com \
/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).