From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Naming predicates (was: master d0c77a1: Remove some assumptions about timestamp format) Date: Fri, 28 Sep 2018 11:28:32 -0700 (PDT) Message-ID: <2a1f7389-0248-4920-ba11-ecc0b6aaee22@default> References: <20180925021527.10418.61555@vcs0.savannah.gnu.org> <20180925021528.9A119204E8@vcs0.savannah.gnu.org> <87bm8lanwu.fsf@gmx.de> <87o9ck6270.fsf@gmx.de> <2cfc5ca3-d661-f431-397a-705682ab17eb@cs.ucla.edu> <877ej5ap0o.fsf@gmx.de> <3356af4b-f6f5-e353-6162-a5fa8880d223@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1538159738 769 195.159.176.226 (28 Sep 2018 18:35:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 28 Sep 2018 18:35:38 +0000 (UTC) To: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 28 20:35:34 2018 Return-path: Envelope-to: ged-emacs-devel@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 1g5xbx-0008Tp-2p for ged-emacs-devel@m.gmane.org; Fri, 28 Sep 2018 20:35:33 +0200 Original-Received: from localhost ([::1]:45201 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5xe3-00049J-Lt for ged-emacs-devel@m.gmane.org; Fri, 28 Sep 2018 14:37:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5xcu-0003qn-Dx for emacs-devel@gnu.org; Fri, 28 Sep 2018 14:36:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g5xVF-0001mr-Ub for emacs-devel@gnu.org; Fri, 28 Sep 2018 14:28:41 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:39394) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g5xVF-0001lu-LY for emacs-devel@gnu.org; Fri, 28 Sep 2018 14:28:37 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w8SIOQk0195371; Fri, 28 Sep 2018 18:28:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=mtt6iL3BGF9JYT8YZEUvjedQVaXMOMfEDX2vp8xcjlU=; b=mUz6FXFWVwDHvQ+9UoN/Pm6cm+K+rCDk8podCl9OHvC4v+rpVK1Nz8TLE6auXllKbqh4 P3koKTVxwhlVto68LyIe5t9OL074syCJS8HajXqXq5zadbPQrR1LFK9kddxr2PEwFQwC ypvGWlc844RrYDHzBvpt1IIlS7WOpf9hOslMMCgEAA+g6ZahzAa+YipMZIzOtmXpGUzK s+jds+mdX8cmDSgh10hh8BqqJ+mGalJB/baMSt4ALa8wXQdLIz6TXzNrnc8KsIj1Fl7h Tnih2Bz3n1C+3bQ5cqLA2J2i6JxZfDsJ2utqNdf2YxCm88qwywZ3mcpYiPlBfY+Eeowv fg== Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2mnd5u210j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 28 Sep 2018 18:28:35 +0000 Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w8SISYWl027773 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 28 Sep 2018 18:28:34 GMT Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w8SISXAK026809; Fri, 28 Sep 2018 18:28:34 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4735.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9030 signatures=668707 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809280181 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 156.151.31.86 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:230113 Archived-At: > >> Shouldn't this be `time-equal-p', as we have already `time-less-p'? > > Thanks, as a Scheme refugee I never can remember which predicates shoul= d end > > in "-p" vs "p" vs nothing. I installed the attached. >=20 > The rule is not that bad: use a "-p or p" suffix whenever a Schemer > would use a "?" suffix. As for when to use "-p" vs just "p" I'd say you > can simply always use "-p" when it's something you define. I'd say that as a user you can use whatever you want - i.e., "when it's som= ething you define". But there is an Emacs convention, and it's not difficult to find or to foll= ow, for those so inclined: In the Elisp manual, `i convention' shows you this index-entry candidate (*= ), among others:=20 `coding conventions in Emacs Lisp' And choosing that takes you directly to, well, the coding conventions for E= macs Lisp (!), where you find this: 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 'p' (which stands for "predicate"). If the name is one word, add just 'p'; if the name is multiple words, add '-p'. Examples are 'framep' and 'frame-live-p'. _______ * Well, it shows you that candidate if you've configured Emacs option `comp= letion-styles' to include substring matching. Or if you use something like = Icicles. If not then, because that index entry doesn't start with "conventi= on", it won't show up. In that case, you need to know to try `coding TAB' i= nstead of `convention TAB'.