[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Re: Date stamps in notes?
From: |
Paul Lussier |
Subject: |
[emacs-wiki-discuss] Re: Date stamps in notes? |
Date: |
Mon, 28 Nov 2005 13:39:02 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Paul Lussier <address@hidden> writes:
> Hi all,
>
> I'm thinking of switching to not using day pages for my home planner.
> Since I don't run planner very often there, it seems more conducive to
> having a single plan page which links to the various 'project' pages.
>
> However, since I'm trying to use this more to capture various
> "remember"ances, I want the date stamp included in the note heading so
> I know when the note was made. This will also be helpful when looking
> at the project pages. Currently the only thing placed in the heading
> is the timestamp, which is mostly useless without the date context.
>
> Is there an easy way do this?
It seems that it shouldn't be too difficult to hack
remember-planner-add-timestamp to do the right thing. There's a call
at the end of this function before calling planner-update-note which
seems to create the timestamp:
(insert (format-time-string remember-planner-timestamp-format
(current-time)))
My first thought was to change this to
(insert (planner-today)
(format-time-string remember-planner-timestamp-format
(current-time)))
However, since I have planner-use-day-pages set to nil currently, this
won't work, since the definition of planner-today is:
(defun planner-today ()
"Return the filename of the current date."
(if planner-use-day-pages
(or planner-timewarp-date (planner-date-to-filename
(decode-time (current-time))))
planner-initial-page))
I'm curious, is there a good reason why planner-today is dependent
upon the setting of planner-use-day-pages? This type of function
seems pretty useful regardless of whether people are using day pages
or not. I certainly could change remember-planner-add-timestamp to be:
(insert (planner-date-to-filename (decode-time (current-time)))
" "
(format-time-string remember-planner-timestamp-format
(current-time)))
But that seems rather long-winded, when I could just call planner-today...
Input and advice welcomed by an elisp neophyte :)
--
Seeya,
Paul