[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Thu, 15 Jul 2004 09:54:11 -0600
Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2
> On Wed, 14 Jul 2004 11:56:52 -0600, Kevin Rodgers <address@hidden> wrote:
>>Maybe the ~ needs to be explicitly expanded; does this work:
>> (cons `((".*ltr.*\\.tex$" . "Letter") . ,(expand-file-name
> Using expand-file-name does result in being prompted for
> auto-insertion; however, what gets inserted is again the file-name
> instead of the contents, just as happened when I tried
> insert-file-contents! Sigh. I guess I'll have to go back and re-learn
> how to write a template. This must be an error in the documentation or
> else I'm just not reading it correctly?
I think it is a bug. The documentation is very clear:
| A list specifying text to insert by default into a new file.
| Elements look like (CONDITION . ACTION) or ((CONDITION . DESCRIPTION) .
| CONDITION maybe a regexp that must match the new file's name, or it may be
| a symbol that must match the major mode for this element to apply.
| Only the first matching element is effective.
| Optional DESCRIPTION is a string for filling `auto-insert-prompt'.
| ACTION may be a skeleton to insert (see `skeleton-insert'), an absolute
| file-name or one relative to `auto-insert-directory' or a function to call.
| ACTION may also be a vector containing several successive single actions as
| described above, e.g. ["header.insert" date-and-author-update].
And the default value includes elements like:
("[Mm]akefile\\'" . "makefile.inc")
which should be equivalent to:
(("[Mm]akefile\\'" . "make rule file") . "makefile.inc")