From: Kaushal Modi Date: Sat, 12 Oct 2019 20:26:50 +0000 (+0200) Subject: Document that variables should not be called -p X-Git-Tag: emacs-27.0.90~1123 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6bc938712fa5eb10b383d71c7a76572e99a6ab91;p=emacs.git Document that variables should not be called -p * doc/lispref/tips.texi (Coding Conventions): Document that variables should now be called -p (bug#26564). --- diff --git a/doc/lispref/tips.texi b/doc/lispref/tips.texi index 6d84cfef53b..9f6420949de 100644 --- a/doc/lispref/tips.texi +++ b/doc/lispref/tips.texi @@ -158,7 +158,9 @@ If the purpose of a function is to tell you whether a certain condition is true or false, give the function a name that ends in @samp{p} (which stands for ``predicate''). If the name is one word, add just @samp{p}; if the name is multiple words, add @samp{-p}. -Examples are @code{framep} and @code{frame-live-p}. +Examples are @code{framep} and @code{frame-live-p}. This predicate +suffix should not be used in variable names (i.e., you should name a +variable @code{foo-feature} instead of @code{foo-feature-p}). @item If the purpose of a variable is to store a single function, give it a