From: Eli Zaretskii Date: Sun, 15 Apr 2001 06:47:20 +0000 (+0000) Subject: (Init Syntax): Add a cross reference to "Non-ASCII Rebinding". X-Git-Tag: emacs-pretest-21.0.103~205 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bbde444233037cb56b444a2500b8f51cda47655f;p=emacs.git (Init Syntax): Add a cross reference to "Non-ASCII Rebinding". (Init Examples): Show how to add an autoload form. --- diff --git a/man/custom.texi b/man/custom.texi index 08f739771cd..b481fdb122a 100644 --- a/man/custom.texi +++ b/man/custom.texi @@ -2091,8 +2091,8 @@ a Meta character, as in @samp{\M-a} for @kbd{Meta-A} or @samp{\M-\C-a} for @cindex international characters in @file{.emacs} @cindex non-ASCII characters in @file{.emacs} If you want to include non-ASCII characters in strings in your init -file, you should consider putting a @samp{-*-coding: -@var{coding-system}-*-} tag on the first line which states the coding +file, you should consider putting a @w{@samp{-*-coding: +@var{coding-system}-*-}} tag on the first line which states the coding system used to save your @file{.emacs}, as explained in @ref{Recognize Coding}. This is because the defaults for decoding non-ASCII text might not yet be set up by the time Emacs reads those parts of your init file @@ -2106,6 +2106,9 @@ Examples: @code{?x}, @code{?\n}, @code{?\"}, @code{?\)}. Note that strings and characters are not interchangeable in Lisp; some contexts require one and some contexts require the other. +@xref{Non-ASCII Rebinding}, for information about binding commands to +keys which send non-ASCII characters. + @item True: @code{t} stands for `true'. @@ -2228,6 +2231,24 @@ Load the compiled Lisp file @file{foo.elc} from your home directory. Here an absolute file name is used, so no searching is done. +@item +@cindex loading Lisp libraries automatically +@cindex autoload Lisp libraries +Tell Emacs to automatically load a Lisp library named @file{mypackage} +(i.e.@: a file @file{mypackage.elc} or @file{mypackage.el}) when you +the function @code{myfunction} in that library is called: + +@example +(autoload 'myfunction "mypackage" "Do what I say." t) +@end example + +@noindent +Here the string @code{"Do what I say."} is the function's documentation +string made available to Emacs even when the package is not loaded +(e.g., for commands such as @kbd{C-h a}), and @code{t} tells Emacs this +function is interactive, that is, it can be invoked interactively by +typing @kbd{M-x myfunction @key{RET}} or by binding it to a key. + @item Rebind the key @kbd{C-x l} to run the function @code{make-symbolic-link}.