* redisplay agenda after using org-agenda-diary-entry?
@ 2009-11-20 14:43 Stephen Eglen
2009-11-20 19:36 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Eglen @ 2009-11-20 14:43 UTC (permalink / raw)
To: emacs-orgmode; +Cc: Stephen Eglen
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))
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: redisplay agenda after using org-agenda-diary-entry?
2009-11-20 14:43 redisplay agenda after using org-agenda-diary-entry? Stephen Eglen
@ 2009-11-20 19:36 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-11-20 19:36 UTC (permalink / raw)
To: Stephen Eglen; +Cc: emacs-orgmode
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.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
- Carsten
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-20 19:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-20 14:43 redisplay agenda after using org-agenda-diary-entry? Stephen Eglen
2009-11-20 19:36 ` Carsten Dominik
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).