From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: missing todo's in agenda after emacs/org upgrade Date: Fri, 19 Aug 2011 12:33:47 +0200 Message-ID: References: <06FD744B-8465-49C4-9A4A-45E2B4DCBF2B@agfa.com> <80y5yqpgin.fsf@somewhere.org> <3247E27F-C23D-4B93-9040-C64C8B7546F1@agfa.com> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/mixed; boundary=Apple-Mail-1-435378111 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuMOf-0006Uv-Mf for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 06:33:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QuMOe-0003o2-6S for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 06:33:53 -0400 Received: from mail-ey0-f171.google.com ([209.85.215.171]:43900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuMOd-0003ny-TI for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 06:33:52 -0400 Received: by eyg24 with SMTP id 24so2586400eyg.30 for ; Fri, 19 Aug 2011 03:33:51 -0700 (PDT) In-Reply-To: <3247E27F-C23D-4B93-9040-C64C8B7546F1@agfa.com> 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: peter.frings@agfa.com Cc: Sebastien Vauban , emacs-orgmode@gnu.org --Apple-Mail-1-435378111 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Aug 19, 2011, at 11:02 AM, peter.frings@agfa.com wrote: > Good morning gents, >=20 > I think you nailed it. Thanks! >=20 >=20 > * Summary > Having the todo list in a daily view is very convenient, but not = provided out-of-the-box. The enabling of it used to be relatively simply = with a single variable, but in more recent version it=92s now reserved = for org-savvy people. Hooray for = http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.html OK, I am attaching a patch proposal which will clean this up a bit. It does: - Clean up the variable name include-all, which is confusing for readers of the code - Make `org-agenda-custom-commands' have a default value, which is a block that does put agenda and TODO list into one view. Note that I have changed the sequence from Peter's proposal, I am putting the agenda first - this makes more sense, I think, and also reduces the likelihood that the cursor will be in the TODO list when you are trying to move through time. - I have *not* changes the problem that trying to change time views in the TODO block will not work - this would have required more coding and would create undefined behavior in some block agendas. HTH, please give me feed back. Bastien, let me know if/when I should push this change. Cheers - Carsten --Apple-Mail-1-435378111 Content-Disposition: attachment; filename=agenda-include-all.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="agenda-include-all.patch" Content-Transfer-Encoding: 7bit Local: cleanup-include-all-stuff-in-agenda.el ~/lib/emacs/work/org-mode/ Head: 9404918 Set a default custom command, agenda plus TODO items --Apple-Mail-1-435378111 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 >=20 >=20 > * What the problem was > In Emacs 7.7, the variable org-agenda-include-all-todo no longer = affects the daily/weekly view as documented.=20 >=20 > ** org-agenda-include-all-todo no longer works > The docstrings states: >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= docstring =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > Set means weekly/daily agenda will always contain all TODO entries. > The TODO entries will be listed at the top of the agenda, before > the entries for specific days. > This option is deprecated, it is better to define a block agenda = instead. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > Note that it says it=92s deprecated, but it=92s still present and = describes the behavior I was used to. But it doesn=92t. Which is in-line = what what Puneeth mentioned (commit = 770c2ddfba5c173d1b33e7b247b49a8188994f76). >=20 >=20 > ** Terminology > Notice that org-agenda-include-all-todo=92s docstring mentions =91block = agenda=92, as does the =91Agenda View=92 chapter in the manual. But that = term is nowhere to be found in Org=92s customization options. You must = first find =91Agenda Custom Commands=92, but there the docstring = mentions =93You can also define a set of commands, to create a = __composite agenda__ buffer.=94 So there is a problem of terminology = here. >=20 >=20 > * Thoughts > I do question this change a bit. I find it very convenient to have my = to-do=92s (scheduled or not) in my day view. Now, I must make a block = agenda to get this. OK, I can handle that. However, out-of-the box = behavior should suit beginners, and asking them to make a block agenda = as the first thing to do is a bit heavy, no? (Have you seen the = customization page for that? Frightening!) >=20 > So, to get what I used to have[1] I need to define a custom view like = this: >=20 > (setq org-agenda-custom-commands > '(("h" "All to-do's and Agenda" > ((alltodo) > (agenda ""))))) >=20 > [1] It=92s not identical because of the block headers, but that might = be something that is customizable. Haven=92t checked it yet.=20 >=20 > Also, in the older version you could type `d=92 or `w' to switch to = day or week view from anywhere in the buffer; now you must make sure the = cursor is on the agenda black and not in the todo black. This is a bit = annoying. >=20 >=20 >=20 > * Example > Using GNU Emacs 23.3.1 >=20 > The example uses the todo list from Suvayu=92s mail: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= ~/planning/minimal.org =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D > * TODO Plumber to fix leak > <2011-08-04 Thu> >=20 > * TODO RooStats tutorial > SCHEDULED: <2011-01-25 Tue 09:00> >=20 > * TODO Analysis deadline > DEADLINE: <2011-08-19 Fri 15:00> >=20 > * TODO Read Dune > The above 3 entries show up in the agenda, but this one doesn=92t. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > And a minimal emacs init file: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= ~/.emacs-minimal =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > (add-to-list 'auto-mode-alist '("\\.\\(org\\ |org_archive\\|txt\\)$" = . org-mode)) > (setq org-agenda-files '("~/planning/minimal.org")) > (require 'org-install) > (require 'org-habit) >=20 > (global-set-key "\C-ca" 'org-agenda) > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > Start with > /Applications/Emacs.app/Contents/MacOS/Emacs --debug-init -Q -l = ~/.emacs-minimal >=20 >=20 > ** Behavior with Org 6.33x > Org-mode 6.33x as version with Emacs 23) >=20 > *** =91out of the box=92 setup >=20 > Do `C-c a a=92 >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= Weekly agenda shows=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Week-agenda (W33): > Monday 15 August 2011 W33 > Tuesday 16 August 2011 > Wednesday 17 August 2011 > Thursday 18 August 2011 > Friday 19 August 2011 > 8:00...... ---------------- > 10:00...... ---------------- > 12:00...... ---------------- > 14:00...... ---------------- > minimal: 15:00...... Deadline: TODO Analysis deadline > 16:00...... ---------------- > 18:00...... ---------------- > 20:00...... ---------------- > minimal: Sched.207x: TODO RooStats tutorial > Saturday 20 August 2011 > Sunday 21 August 2011 > ------------------------------------------------------------- >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= Daily agenda shows=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Day-agenda (W33): > Friday 19 August 2011 > 8:00...... ---------------- > 10:00...... ---------------- > 12:00...... ---------------- > 14:00...... ---------------- > minimal: 15:00...... Deadline: TODO Analysis deadline > 16:00...... ---------------- > 18:00...... ---------------- > 20:00...... ---------------- > minimal: Sched.207x: TODO RooStats tutorial > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > *** To include the TODO items > Add this to the init file (or evaluate): >=20 > (setq org-agenda-include-all-todo t) >=20 > Then, `C-a a a=92 >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= Weekly agenda shows=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > All currently open TODO items: > minimal: TODO Plumber to fix leak > minimal: TODO RooStats tutorial > minimal: TODO Analysis deadline > minimal: TODO Read Dune > Week-agenda (W33): > Monday 15 August 2011 W33 > Tuesday 16 August 2011 > Wednesday 17 August 2011 > Thursday 18 August 2011 > Friday 19 August 2011 > 8:00...... ---------------- > 10:00...... ---------------- > 12:00...... ---------------- > 14:00...... ---------------- > minimal: 15:00...... Deadline: TODO Analysis deadline > 16:00...... ---------------- > 18:00...... ---------------- > 20:00...... ---------------- > minimal: Sched.207x: TODO RooStats tutorial > Saturday 20 August 2011 > Sunday 21 August 2011 >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= Weekly agenda shows=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > All currently open TODO items: > minimal: TODO Plumber to fix leak > minimal: TODO RooStats tutorial > minimal: TODO Analysis deadline > minimal: TODO Read Dune > Day-agenda (W33): > Friday 19 August 2011 > 8:00...... ---------------- > 10:00...... ---------------- > 12:00...... ---------------- > 14:00...... ---------------- > minimal: 15:00...... Deadline: TODO Analysis deadline > 16:00...... ---------------- > 18:00...... ---------------- > 20:00...... ---------------- > minimal: Sched.207x: TODO RooStats tutorial > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 >=20 >=20 > ** Now with org 7.7, same emacs. > emacs init file now loads a more recent version of org and sets = org-agenda-include-all-todo: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= ~/.emacs-minimal =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > ;; use more recent org > (add-to-list 'load-path (expand-file-name "~/.emacs.d/src/org/lisp")) > (add-to-list 'auto-mode-alist '("\\.\\(org\\ |org_archive\\|txt\\)$" = . org-mode)) > (setq org-agenda-files '("~/planning/minimal.org")) > (require 'org-install) > (require 'org-habit) >=20 > ;;; expecting to get the TODO items in the daily agenda view! > ;;; > (setq org-agenda-include-all-todo t) >=20 > (global-set-key "\C-ca" 'org-agenda) > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > Now, the same `C-c a a=92 yields >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= Week view =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > Week-agenda (W33): > Monday 15 August 2011 W33 > Tuesday 16 August 2011 > Wednesday 17 August 2011 > Thursday 18 August 2011 > Friday 19 August 2011 > 8:00...... ---------------- > 9:26...... now - - - - - - - - - - - - - - - - - - - - - = - - - - > 10:00...... ---------------- > 12:00...... ---------------- > 14:00...... ---------------- > minimal: 15:00...... Deadline: TODO Analysis deadline > 16:00...... ---------------- > 18:00...... ---------------- > 20:00...... ---------------- > minimal: Sched.207x: TODO RooStats tutorial > Saturday 20 August 2011 > Sunday 21 August 2011 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= Day view =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > Day-agenda (W33): > Friday 19 August 2011 > 8:00...... ---------------- > 10:00...... ---------------- > 12:00...... ---------------- > 14:00...... ---------------- > minimal: 15:00...... Deadline: TODO Analysis deadline > 16:00...... ---------------- > 18:00...... ---------------- > 20:00...... ---------------- > minimal: Sched.207x: TODO RooStats tutorial > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > No more TODO overview, even with org-agenda-include-all-todo set. = Clearly, it=92s not only deprecated, but completely ignored. Hence, it = should be removed. >=20 >=20 > I hope I=92ve managed to better describe the problems I had :-) >=20 > Cheers and thanks for the help! > Peter. - Carsten --Apple-Mail-1-435378111--