From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eric Marsden Newsgroups: gmane.emacs.help Subject: Re: Postscript print buffer with ISO date? Date: Thu, 20 Feb 2003 10:34:51 +0100 Organization: LAAS-CNRS http://www.laas.fr/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045734815 15939 80.91.224.249 (20 Feb 2003 09:53:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Feb 2003 09:53:35 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18lnOY-00048x-00 for ; Thu, 20 Feb 2003 10:53:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18lnH3-0005wr-06 for gnu-help-gnu-emacs@m.gmane.org; Thu, 20 Feb 2003 04:45:49 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!fr.usenet-edu.net!usenet-edu.net!news.completel.fr!u-picardie.fr!utc.fr!univ-lille1.fr!news.cict.fr!news.laas.fr!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: melbourne.laas.fr Original-X-Trace: kane.laas.fr 1045733691 4494 140.93.21.103 (20 Feb 2003 09:34:51 GMT) Original-X-Complaints-To: abuse@laas.fr Original-NNTP-Posting-Date: 20 Feb 2003 09:34:51 GMT X-Message-Flags: Don't Panic! X-Eric-Conspiracy: there is no conspiracy X-Attribution: ecm X-URL: http://www.chez.com/emarsden/ User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:110418 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6920 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6920 >>>>> "stm" == Svend Tollak Munkejord writes: stm> I use GNU Emacs 21.2. When I print a buffer using the stm> "Postscript print buffer" function, Emacs prints the date in stm> the format mm/dd/yyyy (e.g. 02/20/2003 today). I would like it stm> to use the ISO format yyyy-mm-dd. I searched the manual, but stm> did not find out how to do this. Can anyone help? the stuff that is printed on the right side of the header is determined by the variable ps-right-header. If you examine the contents of this variable, you probably have an element like ps-time-stamp-mon-dd-yyyy. Just change this element to something that you prefer. (require 'cl) (defun my-iso8601-date () (format-time-string "%Y-%d-%d")) (eval-after-load "ps-print" (setf (second ps-print-header) 'my-iso8601-date)) -- Eric Marsden