home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / emacs / help / 4899 < prev    next >
Encoding:
Text File  |  1992-11-23  |  1.5 KB  |  48 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!paladin.american.edu!europa.asd.contel.com!emory!athena.cs.uga.edu!shen
  3. From: shen@athena.cs.uga.edu (Mingzuo Shen)
  4. Subject: function to print time, hostname, name, string, etc.?
  5. Message-ID: <1992Nov23.155236.27770@athena.cs.uga.edu>
  6. Sender: shen@athena.cs.uga.edu (Mingzuo Shen)
  7. Organization: University of Georgia, Athens
  8. Distribution: gnu
  9. Date: Mon, 23 Nov 1992 15:52:36 GMT
  10. Lines: 36
  11.  
  12. Hi all,
  13.  
  14.     Many times a day I need to stamp a file I create
  15. using my name (a string), the current date and time
  16. (preferrably full month name like November), and
  17. other things. I just wondered if I can have a
  18. command that does this all at once. If I had such a command
  19. I would bind it to a function key. Then whenever I
  20. needed to have my mark on a file, I would press the key once.
  21.  
  22.     M-1 M-! date is a good start, but not enough.
  23. I could write a C program (say, stamp) and use
  24. M-1 M-! stamp. But the slight problem is that
  25. this creates another shell, kind of slow for
  26. this little thing.
  27.  
  28.     I would loved to write a Lisp thing myself,
  29. but I do not know how yet.
  30.  
  31.     Thanks in advance for any pointers and help.
  32. The stamp I am thinking about would look like:
  33.  
  34. Foolish Boorish; November 23, 1992; Monday 10:30:30 am; athena.cs.uga.edu
  35.  
  36.  
  37.     Another question:
  38.     I tried to read the ELisp manual. How do I get Emacs to
  39. give me some results? For example, after I type:
  40.  
  41. (car '(1 2))
  42.  
  43. I'd like to see 1 (according to the manual) somewhere.
  44. Step-by-step instruction please. Thanks again,
  45.  
  46. (Mr.) Mingzuo Shen
  47.  
  48.