Michael Welle <mwe012...@gmx.net> writes: > Matt Lundin <m...@imapmail.org> writes: > >> Michael Welle <mwe012...@gmx.net> writes: >> >>> I use Emacs 23.2.1 and org-mode 7.5. After some time, usually after a >>> few days of 'uptime', building an agenda becomes very sloooow. >> >> Is this the standard agenda or a custom agenda? > it's a custom agenda that collects all appointments for the next four > weeks: > > ( "z" "Appointments for the next four weeks" agenda "" > ((org-agenda-skip-function > (lambda nil > (org-agenda-skip-entry-if 'nottodo '("APPT")))) > (org-agenda-ndays 28) > (org-agenda-include-diary nil )))
A monthly view does indeed take a long time to appear. Skip functions are very useful but, alas, not particularly efficient. This command first considers all entries (SCHEDULED, DEADLINE, timestamp) that fall within the next 28 days and then selects only those entries with the keyword APPT. Might I ask whether your appointments are all timestamps or diary sexps (as opposed to SCHEDULED or DEADLINE entries)? If so, adding the following setting to the command may speed things up a bit: (org-agenda-entry-types '(:timestamp :sexp)) Best, Matt