From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bruce Ingalls Newsgroups: gmane.emacs.help Subject: Re: how to insert a timestamp? Date: Wed, 07 Jan 2004 12:59:21 GMT Organization: Road Runner - NYC Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <45b780c3.0401061312.40351c46@posting.google.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1073481482 7029 80.91.224.253 (7 Jan 2004 13:18:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Jan 2004 13:18:02 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 07 14:17:54 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AeDZK-0001LP-00 for ; Wed, 07 Jan 2004 14:17:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AeETa-0003G6-SW for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Jan 2004 09:16:02 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newshub.sdsu.edu!small1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!cyclone.rdc-nyc.rr.com!news-out.nyc.rr.com!twister.nyc.rr.com.POSTED!53ab2750!not-for-mail User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: <45b780c3.0401061312.40351c46@posting.google.com> Original-Lines: 7 Original-NNTP-Posting-Host: 68.174.39.174 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: twister.nyc.rr.com 1073480361 68.174.39.174 (Wed, 07 Jan 2004 07:59:21 EST) Original-NNTP-Posting-Date: Wed, 07 Jan 2004 07:59:21 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:119826 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15769 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15769 > How can I insert a string representing the current time/date at the > point? It is for timestamping entries in a diary/log. > Adam Alternately, try (add-change-log-entry nil buffer-file-name) replacing buffer-file-name with the actual file name