home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!munnari.oz.au!constellation!convex!convex!cs.utexas.edu!hellgate.utah.edu!eeide
- From: eeide%asylum.cs.utah.edu@cs.utah.edu (Eric Eide)
- Subject: Wanted: Trick to get Compile-Time Timestamp in .elc
- Message-ID: <EEIDE.92Nov12175628@asylum.cs.utah.edu>
- Organization: University of Utah Department of Computer Science
- Distribution: gnu
- Date: 12 Nov 92 17:56:28
- Lines: 18
-
- I would like to be able to put the compile-time's current time string into a
- generated ".elc" file. Something like this:
-
- (defvar compile-time (current-time-string))
-
- where (current-time-string) is to be evaluated at compile time, not load time.
- But I can't seem to find a way to convince the standard byte compiler to insert
- the compile-time time string into the generated ".elc" file. Is there a known
- trick? Or a definitive statement that it can't be done with the standard byte
- compiler?
-
- If all else fails I'll just have to write a function to first byte-compile the
- file and then append an appropriate form to the ".elc" file.
-
- --
- -------------------------------------------------------------------------------
- Eric Eide | University of Utah Department of Computer Science
- eeide@cs.utah.edu | Buddhist to hot dog vendor: "Make me one with everything."
-