home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / gnu / emacs / help / 4772 < prev    next >
Encoding:
Text File  |  1992-11-12  |  1.3 KB  |  29 lines

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