[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Postscript print buffer with ISO date?

From: Eric Marsden
Subject: Re: Postscript print buffer with ISO date?
Date: Thu, 20 Feb 2003 11:20:52 +0100
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.2

>>>>> "stm" == Svend Tollak Munkejord <address@hidden> writes:

  ecm> (require 'cl)
  ecm> (defun my-iso8601-date () (format-time-string "%Y-%d-%d"))
  ecm> (eval-after-load "ps-print"
  ecm>    (setf (second ps-print-header) 'my-iso8601-date))

  stm> (defun ps-time-stamp-iso ()
  stm> "Return date as \"2003-02-20\"."
  stm> (format-time-string "%Y-%m-%d"))
  stm> (setq ps-right-header '("/pagenumberstring load" ps-time-stamp-iso 
  stm> Is your solution preferable?

in many cases, you have to load a module before being able to
customize it; if you load many modules from your init file, Emacs will
be slow to start up. The special form 'eval-after-load' allows you to
customize a module after it is autoloaded.

An other point is that neither solution will work well if the default
contents of the ps-right-header variable change in the future.
Eric Marsden                          <URL:>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]