emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] redisplay agenda after using org-agenda-diary-entry?


From: Carsten Dominik
Subject: Re: [Orgmode] redisplay agenda after using org-agenda-diary-entry?
Date: Fri, 20 Nov 2009 20:36:25 +0100

Hi Stephen,

this is fun, but incomplete, because you cannot rely on being back in the agenda.
I fixed that and applied the patch...

- Carsten

On Nov 20, 2009, at 3:43 PM, Stephen Eglen wrote:

How about the following simple change to the facility for
adding diary entries in the agenda: when you press 'i d' in
the agenda to add a new entry, you then see the entry in the agenda?

(& if so, what about the other cases, like 'i b' for block entries?)

Stephen

diff -c org-agenda.el~ org-agenda.el
*** org-agenda.el~      Fri Nov 20 11:03:03 2009
--- org-agenda.el       Fri Nov 20 14:36:10 2009
***************
*** 6677,6683 ****
     (cond
      ((equal char ?d)
       (setq text (read-string "Day entry: "))
!       (org-agenda-add-entry-to-org-agenda-diary-file 'day text d1))
      ((equal char ?a)
       (setq d1 (list (car d1) (nth 1 d1)
                     (read-number (format "Reference year [%d]: " (nth 2 d1))
--- 6677,6684 ----
     (cond
      ((equal char ?d)
       (setq text (read-string "Day entry: "))
!       (org-agenda-add-entry-to-org-agenda-diary-file 'day text d1)
!       (org-agenda-redo))
      ((equal char ?a)
       (setq d1 (list (car d1) (nth 1 d1)
                     (read-number (format "Reference year [%d]: " (nth 2 d1))


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten







reply via email to

[Prev in Thread] Current Thread [Next in Thread]