From: exits funnel <exitsfunnel@yahoo.com>
Subject: Re: Simple lisp question - printing out file name
Date: Tue, 10 Jan 2006 12:44:14 -0800 (PST) [thread overview]
Message-ID: <20060110204414.4724.qmail@web33901.mail.mud.yahoo.com> (raw)
In-Reply-To: <87lkxn96v4.fsf@thalassa.informatimago.com>
Hi Pascal,
This looks like exactly what I want except that it
doens't work :) Is time-stamp-string availaible only
in cvs emacs? I should have mentioned that I'm
running the precompiled emacs 21.3.1 on a windows box.
Apropos doesn't show any hits for time-stamp-string.
If the case is that your suggested code is only good
for cvs emacs, do you know of any older functions
which are roughly equivalent? Thanks.
-exits
--- Pascal Bourguignon <spam@mouse-potato.com> wrote:
> exits funnel <exitsfunnel@yahoo.com> writes:
>
> > Hello,
> >
> > I have added to several .el files something like
> this:
> >
> > (message "In prj.el")
> >
> > to help me straighten out configuration issues.
> I'd
> > like to make it slightly more sophisicated by (a)
> > replacing the hard coded string with some lisp to
> read
> > the fully qualified file name and (b) to prepend a
> > timestamp. I'm sure this is trivial lisp, but
> > apparently it's not quite trivial enough for me :)
> It
> > seems that buffer-file-name and
> current-time-string
> > should be of interest to me but I can't get them
> to
> > work inside my message call. Can anyone help me
> out
> > here? Thanks in advance.
>
> (message (format "On %s loading %s"
> (time-stamp-string) load-file-name))
>
> You can also specify the time-stamp-format:
>
> (time-stamp-string "%:y-%02m-%02d
> %02H:%02M:%02S")
>
>
>
> --
> __Pascal Bourguignon__
> http://www.informatimago.com/
>
> CAUTION: The mass of this product contains the
> energy equivalent of
> 85 million tons of TNT per net ounce of weight.
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
next prev parent reply other threads:[~2006-01-10 20:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.634.1136922414.26925.help-gnu-emacs@gnu.org>
2006-01-10 20:15 ` Simple lisp question - printing out file name Pascal Bourguignon
2006-01-10 20:44 ` exits funnel [this message]
[not found] <mailman.648.1136926006.26925.help-gnu-emacs@gnu.org>
2006-01-11 4:11 ` B. T. Raven
2006-01-11 4:15 ` B. T. Raven
2006-01-10 19:44 exits funnel
2006-01-10 19:58 ` Peter Dyballa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060110204414.4724.qmail@web33901.mail.mud.yahoo.com \
--to=exitsfunnel@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).