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