From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Loury Subject: Re: can I refile or archive from the agenda without rebuilding? Date: Mon, 15 Dec 2014 09:31:19 +0100 Message-ID: <87y4q9tiug.fsf@konixwork.incubateur.ens-lyon.fr> References: <87egs4u7j4.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0R45-0008BT-5R for emacs-orgmode@gnu.org; Mon, 15 Dec 2014 03:31:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0R40-0002fN-Od for emacs-orgmode@gnu.org; Mon, 15 Dec 2014 03:31:37 -0500 Received: from mail-wg0-x233.google.com ([2a00:1450:400c:c00::233]:40973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0R40-0002f9-Gu for emacs-orgmode@gnu.org; Mon, 15 Dec 2014 03:31:32 -0500 Received: by mail-wg0-f51.google.com with SMTP id x12so13890624wgg.10 for ; Mon, 15 Dec 2014 00:31:30 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Alan Schmitt , Kyle Meyer Cc: emacs-orgmode --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Alan Schmitt writes: > On 2014-12-12 12:01, Kyle Meyer writes: > >> Alan Schmitt 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. =2D-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) =2D-8<---------------cut here---------------end--------------->8--- My two cents, =2D-=20 Konubinix GPG Key : 7439106A Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUjpxXAAoJEHXSPO10ORBqm6gIAKeG5teNtVsmV95OJPFwRmoV SY303Wq5zjGQlKx1xH/uL9G4c7q9E7NXN/utjnpc6rW5CMA5uad+dN2p+de1EdUu tt/AUaFpFCLL13maAPkum0rhXwEsPhKeQo2X7CwiQIdAqo1piDJcitmX9pmAgZ0I UQnTxwjJe1s7xrDER6gurfPHQjBS/hab+i8P+UAk2VgLqmUv61V/E3wXD3Mm2ovN CzxeB8O0o6pAAP+FFyzMnhfu7hOQfJ9l+yz5CHiUlj3OsyMnpBsbDQeJ5kwXo52Y Q+55hduL1wqB0PnM8Wii6RFQEQkHmSAF7jO3cld99mHRRVWYt7+KATXAW4LPTDk= =NYqo -----END PGP SIGNATURE----- --=-=-=--