comparison lispref/tips.texi @ 76993:55c9ef5f1559

Improve index entries.
author Richard M. Stallman <rms@gnu.org>
date Sat, 07 Apr 2007 01:53:53 +0000
parents fc9d442f98d2
children 63ebf0b1cf38 4ef881a120fe
comparison
equal deleted inserted replaced
76992:cb061d31cf52 76993:55c9ef5f1559
4 @c 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. 4 @c 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
5 @c See the file elisp.texi for copying conditions. 5 @c See the file elisp.texi for copying conditions.
6 @setfilename ../info/tips 6 @setfilename ../info/tips
7 @node Tips, GNU Emacs Internals, GPL, Top 7 @node Tips, GNU Emacs Internals, GPL, Top
8 @appendix Tips and Conventions 8 @appendix Tips and Conventions
9 @cindex tips 9 @cindex tips for writing Lisp
10 @cindex standards of coding style 10 @cindex standards of coding style
11 @cindex coding standards 11 @cindex coding standards
12 12
13 This chapter describes no additional features of Emacs Lisp. Instead 13 This chapter describes no additional features of Emacs Lisp. Instead
14 it gives advice on making effective use of the features described in the 14 it gives advice on making effective use of the features described in the
146 name that ends in @samp{-function}. If the purpose of a variable is 146 name that ends in @samp{-function}. If the purpose of a variable is
147 to store a list of functions (i.e., the variable is a hook), please 147 to store a list of functions (i.e., the variable is a hook), please
148 follow the naming conventions for hooks. @xref{Hooks}. 148 follow the naming conventions for hooks. @xref{Hooks}.
149 149
150 @item 150 @item
151 @cindex unloading packages 151 @cindex unloading packages, preparing for
152 If loading the file adds functions to hooks, define a function 152 If loading the file adds functions to hooks, define a function
153 @code{@var{feature}-unload-hook}, where @var{feature} is the name of 153 @code{@var{feature}-unload-hook}, where @var{feature} is the name of
154 the feature the package provides, and make it undo any such changes. 154 the feature the package provides, and make it undo any such changes.
155 Using @code{unload-feature} to unload the file will run this function. 155 Using @code{unload-feature} to unload the file will run this function.
156 @xref{Unloading}. 156 @xref{Unloading}.
865 @samp{\\@{@dots{}@}} to display the rest of the mode's keymap. 865 @samp{\\@{@dots{}@}} to display the rest of the mode's keymap.
866 @end itemize 866 @end itemize
867 867
868 @node Comment Tips 868 @node Comment Tips
869 @section Tips on Writing Comments 869 @section Tips on Writing Comments
870 @cindex comments, convention for 870 @cindex comments, Lisp convention for
871 871
872 We recommend these conventions for where to put comments and how to 872 We recommend these conventions for where to put comments and how to
873 indent them: 873 indent them:
874 874
875 @table @samp 875 @table @samp