From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#26564: Document that only functions and not variables can end with "-p" Date: Wed, 19 Apr 2017 15:04:59 -0700 (PDT) Message-ID: References: <831ssocrcw.fsf@gnu.org> <87d1c8dq5f.fsf@drachen> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1492639569 15120 195.159.176.226 (19 Apr 2017 22:06:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 19 Apr 2017 22:06:09 +0000 (UTC) Cc: 26564@debbugs.gnu.org To: Michael Heerdegen , Kaushal Modi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 20 00:06:06 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0xjh-0003qL-Q6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Apr 2017 00:06:05 +0200 Original-Received: from localhost ([::1]:50738 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0xjn-0005hh-Ii for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Apr 2017 18:06:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0xjh-0005hR-Ct for bug-gnu-emacs@gnu.org; Wed, 19 Apr 2017 18:06:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0xje-0008RS-7A for bug-gnu-emacs@gnu.org; Wed, 19 Apr 2017 18:06:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59355) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d0xje-0008RL-40 for bug-gnu-emacs@gnu.org; Wed, 19 Apr 2017 18:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d0xjd-0008CH-O4 for bug-gnu-emacs@gnu.org; Wed, 19 Apr 2017 18:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Apr 2017 22:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26564 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26564-submit@debbugs.gnu.org id=B26564.149263951031446 (code B ref 26564); Wed, 19 Apr 2017 22:06:01 +0000 Original-Received: (at 26564) by debbugs.gnu.org; 19 Apr 2017 22:05:10 +0000 Original-Received: from localhost ([127.0.0.1]:57554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0xio-0008B7-8G for submit@debbugs.gnu.org; Wed, 19 Apr 2017 18:05:10 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:43776) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0xil-0008At-IU for 26564@debbugs.gnu.org; Wed, 19 Apr 2017 18:05:08 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v3JM51G9004456 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 19 Apr 2017 22:05:01 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id v3JM51l1020501 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 19 Apr 2017 22:05:01 GMT Original-Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v3JM51W7017053; Wed, 19 Apr 2017 22:05:01 GMT In-Reply-To: <87d1c8dq5f.fsf@drachen> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6767.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:131774 Archived-At: > > -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 might name a > > +variable @code{foo-feature} instead of @code{foo-feature-p}). >=20 > I think we should not discourage naming variables bound to a predicate > "-p". I guess you only mean "boolean variables" here? I _would_ discourage that. And I'd promote the practice of naming variables expected to be bound to a Boolean _value_ with suffix `-p'. Just as a predicate _returns_ a Boolean value, so does a Boolean-valued variable. A variable whose value is a _predicate_ I'd name something like `foo-predicate' or `foo-pred' or even `foo-function' (the last one following the current convention).