From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Robert J. Chassell" Newsgroups: gmane.emacs.devel Subject: Re: deleting rcs keywords from emacs sources Date: Fri, 26 Mar 2004 19:05:14 +0000 (UTC) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <4242667.1080067569994.JavaMail.root@tintin.london.ongenie.net> <20040323214737.GA21737@fencepost> <1080200708.749.486.camel@localhost> Reply-To: bob@rattlesnake.com NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1080328233 22821 80.91.224.253 (26 Mar 2004 19:10:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 26 Mar 2004 19:10:33 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Mar 26 20:10:25 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B6win-0004oh-00 for ; Fri, 26 Mar 2004 20:10:25 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B6win-0007Rd-00 for ; Fri, 26 Mar 2004 20:10:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B6wiO-0003KV-Q5 for emacs-devel@quimby.gnus.org; Fri, 26 Mar 2004 14:10:00 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B6wgm-0002fM-LB for emacs-devel@gnu.org; Fri, 26 Mar 2004 14:08:20 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B6wfM-0001nV-NY for emacs-devel@gnu.org; Fri, 26 Mar 2004 14:07:24 -0500 Original-Received: from [140.186.114.245] (helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B6wdx-0001U2-E9 for emacs-devel@gnu.org; Fri, 26 Mar 2004 14:05:26 -0500 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.115) Fri, 26 Mar 2004 19:05:14 +0000 (UTC) Original-To: emacs-devel@gnu.org In-reply-to: (message from Richard Stallman on Fri, 26 Mar 2004 11:45:33 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20972 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20972 If you put a date manually into the files when you send an entire file to someone, it would achieve the same purpose, right? You'd be doing it manually instead of automatically. How much extra work would that impose on you? (It depends on how often you actually do this.) Here is a function to insert the date at point. I put it in my .emacs file and use it all the time. ;;; Insert current date and, optionally, UTC time into current buffer (defun date (&optional full) "Insert current date; with optional arg, insert UTC time" (interactive "P") (if full ;; The third, last, optional, argument to format-time-string means ;; describe time as Universal Time; this may be labled GMT ;; rather than UTC. 2001 Aug 16: Gerd says ;; This is a feature of the OS. Strftime.c only adds a ;; zone name when gmtime(3) doesn't already return one. ;; (format-time-string "%a, %Y %h %e %H:%M %Z" nil t) (insert (format-time-string "%a, %Y %h %e %H:%M %Z")) (insert (format-time-string "%Y %h %e")))) For example, M-x date ==> 2004 Mar 26 C-u M-x date ==> Fri, 2004 Mar 26 19:00 UTC (I once formatted time strings as day - month - year, but then found that I often need to see the year, so for this function and the way I use it, the better format is year - month - day.) -- Robert J. Chassell Rattlesnake Enterprises http://www.rattlesnake.com GnuPG Key ID: 004B4AC8 http://www.teak.cc bob@rattlesnake.com