comparison lispref/tips.texi @ 52769:00608f913b6f

(Coding Conventions): Mention naming conventions for hooks.
author Lute Kamstra <lute@gnu.org>
date Mon, 06 Oct 2003 08:26:26 +0000
parents 695cf19ef79e
children 2c00436e93f7
comparison
equal deleted inserted replaced
52768:76ef58aaa536 52769:00608f913b6f
122 add @samp{-p}. Examples are @code{framep} and @code{frame-live-p}. 122 add @samp{-p}. Examples are @code{framep} and @code{frame-live-p}.
123 123
124 @item 124 @item
125 If a user option variable records a true-or-false condition, give it a 125 If a user option variable records a true-or-false condition, give it a
126 name that ends in @samp{-flag}. 126 name that ends in @samp{-flag}.
127
128 @item
129 If the purpose of a variable is to store a single function, give it a
130 name that ends in @samp{-function}. If the purpose of a variable is
131 to store a list of functions (i.e., the variable is a hook), please
132 follow the naming conventions for hooks. @xref{Hooks}.
127 133
128 @item 134 @item
129 @cindex reserved keys 135 @cindex reserved keys
130 @cindex keys, reserved 136 @cindex keys, reserved
131 Please do not define @kbd{C-c @var{letter}} as a key in your major 137 Please do not define @kbd{C-c @var{letter}} as a key in your major