aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2008-05-30 14:55:07 +0000
committerStefan Monnier2008-05-30 14:55:07 +0000
commit8f39c96dec86bb2a5c57b12cf73f6fc7480f9a4c (patch)
tree14280677506d42b8628b8e5152f5649aeb827be2
parent145b63776b1beebd20faa429c278e2b7d9d0e260 (diff)
downloademacs-8f39c96dec86bb2a5c57b12cf73f6fc7480f9a4c.tar.gz
emacs-8f39c96dec86bb2a5c57b12cf73f6fc7480f9a4c.zip
(Coding Conventions): Do not encourage the use of "-flag" variable names.
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/tips.texi4
2 files changed, 5 insertions, 4 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 308cb386aa6..36aa760ee4c 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * tips.texi (Coding Conventions): Do not encourage the use of "-flag"
4 variable names.
5
12008-05-03 Eric S. Raymond <esr@golux> 62008-05-03 Eric S. Raymond <esr@golux>
2 7
3 * keymaps.texi: Clarify that (current-local-map) and 8 * keymaps.texi: Clarify that (current-local-map) and
diff --git a/doc/lispref/tips.texi b/doc/lispref/tips.texi
index e219a1e3d49..ef0fb8ac1ff 100644
--- a/doc/lispref/tips.texi
+++ b/doc/lispref/tips.texi
@@ -138,10 +138,6 @@ the name is one word, add just @samp{p}; if the name is multiple words,
138add @samp{-p}. Examples are @code{framep} and @code{frame-live-p}. 138add @samp{-p}. Examples are @code{framep} and @code{frame-live-p}.
139 139
140@item 140@item
141If a user option variable records a true-or-false condition, give it a
142name that ends in @samp{-flag}.
143
144@item
145If the purpose of a variable is to store a single function, give it a 141If the purpose of a variable is to store a single function, give it a
146name that ends in @samp{-function}. If the purpose of a variable is 142name that ends in @samp{-function}. If the purpose of a variable is
147to store a list of functions (i.e., the variable is a hook), please 143to store a list of functions (i.e., the variable is a hook), please