From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daimrod Subject: Re: How to improve Org startup time? Date: Wed, 30 Jan 2013 10:51:16 +0100 Message-ID: <87sj5jngmj.fsf@casa.home> References: <867gmviujs.fsf@somewhere.org> <87txpzoagt.fsf@bzg.ath.cx> <86d2wndo4x.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0UIM-0002JP-Ig for emacs-orgmode@gnu.org; Wed, 30 Jan 2013 04:49:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U0UIL-0001G1-7c for emacs-orgmode@gnu.org; Wed, 30 Jan 2013 04:49:30 -0500 Received: from mail-wi0-f180.google.com ([209.85.212.180]:34063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0UIL-0001Ft-03 for emacs-orgmode@gnu.org; Wed, 30 Jan 2013 04:49:29 -0500 Received: by mail-wi0-f180.google.com with SMTP id hj13so1372420wib.1 for ; Wed, 30 Jan 2013 01:49:27 -0800 (PST) In-Reply-To: <86d2wndo4x.fsf@somewhere.org> (Sebastien Vauban's message of "Wed, 30 Jan 2013 10:19:10 +0100") 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: Sebastien Vauban Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable "Sebastien Vauban" writes: >> Finally, org-agenda-to-appt is very slow by default, it uses >> org-agenda-get-day-entries and check every entry... see the docstring on= how >> to make it check only the ones you really need. > > Euh... > > =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 org-agenda-get-day-entries is a Lisp function in `org-agend= a.el'. > =E2=94=82 > =E2=94=82 (org-agenda-get-day-entries &rest ARGS) > =E2=94=82 > =E2=94=82 Not documented. > =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 org-agenda-to-appt is an interactive autoloaded Lisp functi= on in > =E2=94=82 `org-agenda.el'. > =E2=94=82 > =E2=94=82 (org-agenda-to-appt &optional REFRESH FILTER &rest ARGS) > =E2=94=82 > =E2=94=82 Not documented. > =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > What am I missing? Those functions should be documented. Here is what I have: > org-agenda-get-day-entries is a compiled Lisp function in > `org-agenda.el'. >=20 > (org-agenda-get-day-entries FILE DATE &rest ARGS) >=20 > Does the work for `org-diary' and `org-agenda'. > FILE is the path to a file to be checked for entries. DATE is date like > the one returned by `calendar-current-date'. ARGS are symbols indicating > which kind of entries should be extracted. For details about these, see > the documentation of `org-diary'. > org-agenda-to-appt is an interactive autoloaded compiled Lisp function > in `org-agenda.el'. >=20 > (org-agenda-to-appt &optional REFRESH FILTER &rest ARGS) >=20 > Activate appointments found in `org-agenda-files'. > With a C-u prefix, refresh the list of > appointments. >=20 > If FILTER is t, interactively prompt the user for a regular > expression, and filter out entries that don't match it. >=20 > If FILTER is a string, use this string as a regular expression > for filtering entries out. >=20 > If FILTER is a function, filter out entries against which > calling the function returns nil. This function takes one > argument: an entry from `org-agenda-get-day-entries'. >=20 > FILTER can also be an alist with the car of each cell being > either 'headline or 'category. For example: >=20 > '((headline "IMPORTANT") > (category "Work")) >=20 > will only add headlines containing IMPORTANT or headlines > belonging to the "Work" category. >=20 > ARGS are symbols indicating what kind of entries to consider. > By default `org-agenda-to-appt' will use :deadline, :scheduled > and :timestamp entries. See the docstring of `org-diary' for > details and examples. >=20 > If an entry as a APPT_WARNTIME property, its value will be used > to override `appt-message-warning-time'. =2D-=20 Daimrod/Greg --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBAgAGBQJRCO0WAAoJEBNzVHcrZRiUJGYQAKRqA/eqvbKkhRaj2gvbYo+i SHz8M/QIyirtNXm87+s8KsDqjvHJq0RQZXQszmkw2vWXT+babLjhwAr+WIJ33SS4 gVk+Ogt+f5mrCFbz5CtjeN3a84aaV1+zVAcp0tmDUZ2Zsfj2m3w/7K838g27GgXF eoDCANgdbDK72mOGZCE/uqJIXFmv/tDZZ9vTi5v0ROlzcFehnC6Mv7sDKFYkMWZw FJgO41wkYsDDQgnY+q3u5ISJCKX0q4nc0BuFjs74iZ1xXEHfYD/U6DUyXjwWuSRb kF82wpTVxP2hBcqg5pgs9uXVND5jZ8miaw4fbDctb2/YDHtiqHXWmtYp70IBwRWh 56UeOn/yeDLyz+M3mS2shb+I99h865+ncrlZnvVAEqYxvj2GtK3ZwEabak0l0Afq 7tTaeFPBqTKZVfVZjZPuyjqU/2R2MrECIXw9IFebnZgN7/sH81/bXMH9ZvOUvJHm aGs+OpZPHT64zI1mm4AsZAyrAnzzqDgUvgQ3UEoOvoKlbcHqdUdOTt0BHUMXhIE1 kLekPj8RzfR6+oqzmSj/0jIpZ/py2rtu9Z5cumQFPjJMyDWD9wxlkDx77t+cFcje Cv6fhoTS+IF9lnlDFjbaR2fiBLLKg2ujox35t5rsBQtcyWDrCFBqtAltXOMNSMGG Iga5DGPo4iswW1miQajh =hNZR -----END PGP SIGNATURE----- --=-=-=--