diff options
| author | Stefan Monnier | 2008-05-30 14:55:07 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-05-30 14:55:07 +0000 |
| commit | 8f39c96dec86bb2a5c57b12cf73f6fc7480f9a4c (patch) | |
| tree | 14280677506d42b8628b8e5152f5649aeb827be2 | |
| parent | 145b63776b1beebd20faa429c278e2b7d9d0e260 (diff) | |
| download | emacs-8f39c96dec86bb2a5c57b12cf73f6fc7480f9a4c.tar.gz emacs-8f39c96dec86bb2a5c57b12cf73f6fc7480f9a4c.zip | |
(Coding Conventions): Do not encourage the use of "-flag" variable names.
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/tips.texi | 4 |
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 @@ | |||
| 1 | 2008-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 | |||
| 1 | 2008-05-03 Eric S. Raymond <esr@golux> | 6 | 2008-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, | |||
| 138 | add @samp{-p}. Examples are @code{framep} and @code{frame-live-p}. | 138 | add @samp{-p}. Examples are @code{framep} and @code{frame-live-p}. |
| 139 | 139 | ||
| 140 | @item | 140 | @item |
| 141 | If a user option variable records a true-or-false condition, give it a | ||
| 142 | name that ends in @samp{-flag}. | ||
| 143 | |||
| 144 | @item | ||
| 145 | If the purpose of a variable is to store a single function, give it a | 141 | If the purpose of a variable is to store a single function, give it a |
| 146 | name that ends in @samp{-function}. If the purpose of a variable is | 142 | 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 | 143 | to store a list of functions (i.e., the variable is a hook), please |