]> code.delx.au - gnu-emacs/blobdiff - man/autotype.texi
Add a provide statement.
[gnu-emacs] / man / autotype.texi
index 4a4e8af70307e299be2bf9cd1a50644fa3802143..16e88851c4bb312f235e06b6f8223a0dc2ab4862 100644 (file)
@@ -1,6 +1,6 @@
 \input texinfo
 @c This is an annex of the Emacs manual.
-@c Copyright (C) 1994, 1995 Free Software Foundation, Inc.
+@c Copyright (C) 1994, 1995, 2002 Free Software Foundation, Inc.
 @c Author: Daniel.Pfeiffer@Informatik.START.dbp.de, fax (+49 69) 7588-2389
 @setfilename ../info/autotype
 @c @node Autotypist, Picture, Abbrevs, Top
 @c  @cindex selfinserting text
 @c  @cindex autotypist
 
-@dircategory Emacs
-@direntry
-* Autotype: (autotype). Convenient features for text that you enter frequently
-                          in Emacs.
-@end direntry
-
-@ifnottex
+@copying
 Copyright @copyright{} 1994, 1995, 1999 Free Software Foundation, Inc.
 
+@quotation
 Permission is granted to copy, distribute and/or modify this document
 under the terms of the GNU Free Documentation License, Version 1.1 or
 any later version published by the Free Software Foundation; with the
@@ -36,7 +31,14 @@ This document is part of a collection distributed under the GNU Free
 Documentation License.  If you want to distribute this document
 separately from the collection, you can do so by adding a copy of the
 license to the document, as described in section 6 of the license.
-@end ifnottex
+@end quotation
+@end copying
+
+@dircategory Emacs
+@direntry
+* Autotype: (autotype). Convenient features for text that you enter frequently
+                          in Emacs.
+@end direntry
 
 @titlepage
 @sp 10
@@ -51,25 +53,7 @@ frequently in Emacs}
 
 @page
 @vskip 0pt plus 1filll
-Copyright @copyright{} 1994, 1995, 1999 Free Software Foundation, Inc.
-@sp 1
-Permission is granted to copy, distribute and/or modify this document
-under the terms of the GNU Free Documentation License, Version 1.1 or
-any later version published by the Free Software Foundation; with the
-Invariant Sections being ``The GNU Manifesto'', ``Distribution'' and
-``GNU GENERAL PUBLIC LICENSE'', with the Front-Cover texts being ``A GNU
-Manual'', and with the Back-Cover Texts as in (a) below.  A copy of the
-license is included in the section entitled ``GNU Free Documentation
-License'' in the Emacs manual.
-
-(a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
-this GNU Manual, like GNU software.  Copies published by the Free
-Software Foundation raise funds for GNU development.''
-
-This document is part of a collection distributed under the GNU Free
-Documentation License.  If you want to distribute this document
-separately from the collection, you can do so by adding a copy of the
-license to the document, as described in section 6 of the license.
+@insertcopying
 @end titlepage
 
 @node Top
@@ -212,7 +196,7 @@ define an abbreviation (@pxref{(emacs)Defining Abbrevs}) that will expand
 
   Say you want @samp{ifst} to be an abbreviation for the C language if
 statement.  You will tell Emacs that @samp{ifst} expands to the empty string
-and then calls the skeleton command.  In Emacs-lisp you can say something like
+and then calls the skeleton command.  In Emacs Lisp you can say something like
 @code{(define-abbrev c-mode-abbrev-table "ifst" "" 'c-if)}.  Or you can edit
 the output from @kbd{M-x list-abbrevs} to make it look like this:
 
@@ -279,7 +263,7 @@ copy of this variable.
 @item @code{v1}, @code{v2}
 Skeleton-local user variables.
 @item @code{'@var{expression}}
-Evaluate following lisp expression for its side-effect, but prevent it from
+Evaluate following Lisp expression for its side-effect, but prevent it from
 being interpreted as a skeleton element.
 @item @var{skeleton}
 Subskeletons are inserted recursively, not once, but as often as the user
@@ -371,7 +355,7 @@ certain contexts.  For example an escaped character stands for itself.
 the buffer.  The main application for this function, as its name suggests,
 is to have it be called automatically every time an empty, and only an
 empty file is visited.  This is accomplished by putting @code{(add-hook
-'find-file-hooks 'auto-insert)} into your @file{~/.emacs} file
+'find-file-hook 'auto-insert)} into your @file{~/.emacs} file
 (@pxref{(emacs)Init File}).
 
 @vindex auto-insert-alist
@@ -409,7 +393,7 @@ files insert a skeleton with the usual frame.
 source files insert the usual header, with a copyright of your
 environment variable @env{$ORGANIZATION} or else the FSF, and prompt
 for valid keywords describing the contents.  Files in a @file{bin}
-directory for which Emacs could determine no specialised mode
+directory for which Emacs could determine no specialized mode
 (@pxref{(emacs)Choosing Modes}) are set to Shell script mode.
 
 @findex define-auto-insert
@@ -472,16 +456,19 @@ wrong version of the GNU General Public License (@pxref{(emacs)Copying}) is foun
 that is updated too.
 
   An interesting application for this function is to have it be called
-automatically every time a file is saved.  This is accomplished by putting
-@code{(add-hook 'write-file-hooks 'copyright-update)} into your @file{~/.emacs}
-file (@pxref{(emacs)Init File}).
+automatically every time a file is saved.  This is accomplished by
+putting @code{(add-hook 'before-save-hook 'copyright-update)} into
+your @file{~/.emacs} file (@pxref{(emacs)Init File}).  Alternative,
+you can do @kbd{M-x customize-variable @key{RET} before-save-hook
+@key{RET}}.  @code{copyright-update} is conveniently listed as an
+option in the customization buffer.
 
 @vindex copyright-query
   The variable @code{copyright-query} controls whether to update the
 copyright or whether to ask about it.  When this is @code{nil} updating is
 only done with @kbd{M-x copyright-update}.  When this is @code{function}
 you are queried whenever @code{copyright-update} is called as a function,
-such as in the @code{write-file-hooks} feature mentioned above.  Otherwise
+such as in the @code{before-save-hook} feature mentioned above.  Otherwise
 you are always queried.
 
 
@@ -538,11 +525,13 @@ The ``interpreter'' used is @code{executable-self-display} with argument
 @cindex timestamps
 
 @findex time-stamp
-@vindex write-file-hooks
+@vindex before-save-hook
 The @code{time-stamp} command can be used to update automatically a
 template in a file with a new time stamp every time you save the file.
-Customize the hook @code{write-file-hooks} to add the function
-@code{time-stamp} to arrange this.
+Customize the hook @code{before-save-hook} to add the function
+@code{time-stamp} to arrange this.  It you use Custom to do this,
+then @code{time-stamp} is conveniently listed as an option in the
+customization buffer.
 
 @vindex time-stamp-active
 @vindex time-stamp-format
@@ -621,9 +610,9 @@ formatting or define special points of interest in the inserted text.
 @kbd{M-x tempo-backward-mark} and @kbd{M-x tempo-forward-mark} can be
 used to jump between such points.
 
-More flexible templates can be created by including lisp symbols, which
+More flexible templates can be created by including Lisp symbols, which
 will be evaluated as variables, or lists, which will be evaluated
-as lisp expressions.  Automatic completion of specified tags to expanded
+as Lisp expressions.  Automatic completion of specified tags to expanded
 templates can be provided.
 
 @findex tempo-define-template
@@ -675,3 +664,7 @@ of the expansion possibilities.
 @setchapternewpage odd
 @contents
 @bye
+
+@ignore
+   arch-tag: 54001b27-5ef8-4a9d-a199-905d650fafba
+@end ignore