From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Update time stamps of different kind Date: Wed, 15 Jul 2009 10:21:39 -0700 Message-ID: References: <878wiq6n55.fsf@siart.de> <87fxcxzyyu.fsf@siart.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1247679121 3588 80.91.229.12 (15 Jul 2009 17:32:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jul 2009 17:32:01 +0000 (UTC) To: "'Uwe Siart'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 15 19:31:54 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MR8Kf-0008DW-4n for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Jul 2009 19:31:53 +0200 Original-Received: from localhost ([127.0.0.1]:47402 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MR8Ke-000802-F4 for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Jul 2009 13:31:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MR8Au-0000tl-Qp for help-gnu-emacs@gnu.org; Wed, 15 Jul 2009 13:21:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MR8Ar-0000rm-31 for help-gnu-emacs@gnu.org; Wed, 15 Jul 2009 13:21:48 -0400 Original-Received: from [199.232.76.173] (port=39399 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MR8Aq-0000rd-Lk for help-gnu-emacs@gnu.org; Wed, 15 Jul 2009 13:21:44 -0400 Original-Received: from rcsinet12.oracle.com ([148.87.113.124]:47447 helo=rgminet12.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MR8Aq-00049i-84 for help-gnu-emacs@gnu.org; Wed, 15 Jul 2009 13:21:44 -0400 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n6FHLIYU001794 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 15 Jul 2009 17:21:19 GMT Original-Received: from abhmt010.oracle.com (abhmt010.oracle.com [141.146.116.19]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n6FHLmjH001650; Wed, 15 Jul 2009 17:21:48 GMT Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 15 Jul 2009 10:21:38 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87fxcxzyyu.fsf@siart.de> Thread-Index: AcoFb+7W+iTq+JkNRei/TmEJJ/1huwAABdCQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: abhmt010.oracle.com [141.146.116.19] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A010207.4A5E1023.0175:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:66119 Archived-At: > > Making it a file local variable you can have as global setting > > something else. For you "%:y-%02m-%02d" might be right! > > Thank you, Peter. From this I conclude that there's no easy way to get > both, the usual time stamp in its default format "%:y-%02m-%02d > %02H:%02M:%02S %u" plus the meta information updated? > > > The time stamp needs to be in the first few lines of a file. > > Is it possible to overcome this limitation? I mean to extend the > possible area from the first 8 lines to, say, the first 20 lines? I don't have time to check exactly what you want to do and how to do it, but you might want to take a look here: http://www.emacswiki.org/emacs/AutomaticFileHeaders#header2 http://www.emacswiki.org/emacs/header2.el That code uses a custom time stamp, with no limit on where you put it. See also function `format-time-string'. You can use it to get a time stamp of various forms - quite flexible.