home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / emacs / 2904 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  2.7 KB

  1. Path: sparky!uunet!decwrl!oracle!unrepliable!bounce
  2. Newsgroups: comp.emacs
  3. From: wmesard@tofu.oracle.com (Wayne Mesard)
  4. Subject: Re: `Improved' auto-insert.el
  5. In-Reply-To: dltest@castle.ed.ac.uk's message of 18 Aug 92 12:14:45 GMT
  6. Message-ID: <WMESARD.92Aug20011910@tofu.oracle.com>
  7. Followup-To: comp.emacs
  8. Sender: usenet@oracle.us.oracle.com (Oracle News Poster)
  9. Nntp-Posting-Host: tofu.us.oracle.com
  10. Reply-To: wmesard@oracle.com
  11. Organization: /home/wmesard/.organization
  12. References: <24942@castle.ed.ac.uk>
  13. Date: Thu, 20 Aug 1992 09:19:10 GMT
  14. X-Disclaimer: This message was written by an unauthenticated user
  15.               at Oracle Corporation.  The opinions expressed are those
  16.               of the user and not necessarily those of Oracle.
  17. Lines: 50
  18.  
  19. dltest@castle.ed.ac.uk (Kevin Davidson) writes:
  20. > I tried the autoinsert.el that came with our distribution...
  21. > and wasn't too impressed.
  22. > I added some stuff to make it a little friendlier and more general...
  23. >   Has this already been done ? 
  24.  
  25. My Dynamic Macro package does this plus a bunch o' other stuff.  The
  26. current version is 2.0 patchlevel 01.
  27.  
  28. LCD Entry:
  29.  dmacro (2.0)      91-11-15
  30.  Wayne Mesard, <wmesard@leland.Stanford.EDU>
  31.  archive.cis.ohio-state.edu:/pub/gnu/emacs/elisp-archive/packages/dmacro.tar.Z
  32.  A program for creating structured text in Emacs.
  33.  
  34.  
  35. From the README:
  36.  
  37.  Dynamic Macro ("DM") is a program for inserting structured text in
  38.  Emacs.  In addition to straight textual substitution (already available
  39.  through Emacs' Abbrev mode) DM will insert time- and date-stamps, your
  40.  name and user-id, the current file name, a file's contents, the results
  41.  of a shell command and anything else you can think of.  It can prompt
  42.  the user for strings.  It can also position the cursor within the
  43.  expanded text, and indent the expansion in whatever way is appropriate
  44.  to the current major mode.  DM will also allow you to bind macros to
  45.  keys and automatically insert macros in new files.
  46.  
  47.  A development team can use a common macro table with standardized
  48.  comment block and code macros as a way of enforcing a coding standard.
  49.  
  50.  You can insert blocks of text like these:
  51.  
  52.    -------------------------------     -------------------------------
  53.    NAME                                for (var = 0; var < p; ++var)
  54.      myfile.c                          {
  55.    NOTES                                 m
  56.                                        } /* for */
  57.    HISTORY
  58.      WMesard - 12/24/91: Created.
  59.    -------------------------------     -------------------------------
  60.    where the user, file and date       where "p" and "m" indicate the position
  61.    info are automatically filled       of the point and mark, and "var" is
  62.    in at insertion time.               supplied by the user at insertion time.
  63.  
  64. --
  65. Wayne();
  66. WMesard@us.Oracle.COM
  67.