From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: exits funnel Newsgroups: gmane.emacs.help Subject: Simple lisp question - printing out file name Date: Tue, 10 Jan 2006 11:44:40 -0800 (PST) Message-ID: <20060110194440.16260.qmail@web33908.mail.mud.yahoo.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1136922332 22491 80.91.229.2 (10 Jan 2006 19:45:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 10 Jan 2006 19:45:32 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 10 20:45:26 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EwPQn-0007iw-NV for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Jan 2006 20:45:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EwPSn-0003lJ-DE for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Jan 2006 14:47:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EwPSG-0003VT-Gg for help-gnu-emacs@gnu.org; Tue, 10 Jan 2006 14:46:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EwPSD-0003U2-Vg for help-gnu-emacs@gnu.org; Tue, 10 Jan 2006 14:46:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EwPSD-0003Tp-IX for help-gnu-emacs@gnu.org; Tue, 10 Jan 2006 14:46:49 -0500 Original-Received: from [66.163.178.72] (helo=web33908.mail.mud.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1EwPUi-0006sb-FN for help-gnu-emacs@gnu.org; Tue, 10 Jan 2006 14:49:24 -0500 Original-Received: (qmail 16262 invoked by uid 60001); 10 Jan 2006 19:44:40 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=WW7ZzLnbE699V4Xls2B4R0qSAS3KGGJwjM4qlFX+lb/SBmukenYdndZgEGPRvduwo9Nmt7twhfBr62wvtPbt9Sv9yFrmsOzL52Zv9uRgNDAZ4cdDcONcYTfyylwZ3bwCSQXPxwHOhG6qM1MjEaT6xkC+1Un1fwRILn/wNS/QcVk= ; Original-Received: from [204.249.220.103] by web33908.mail.mud.yahoo.com via HTTP; Tue, 10 Jan 2006 11:44:40 PST Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:32577 Archived-At: 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. -exits __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com