GNU bug report logs - #26564
Document that only functions and not variables can end with "-p"

Previous Next

Package: emacs;

Reported by: Kaushal Modi <kaushal.modi <at> gmail.com>

Date: Wed, 19 Apr 2017 15:48:01 UTC

Severity: wishlist

Tags: fixed

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #57 received at 26564 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: rms <at> gnu.org
Cc: 26564 <at> debbugs.gnu.org, larsi <at> gnus.org, kaushal.modi <at> gmail.com
Subject: RE: bug#26564: Document that only functions and not variables can end
 with "-p"
Date: Mon, 14 Oct 2019 02:22:42 +0000 (UTC)
> -p is used in function names.
> For a variable, it is better to end in -flag.

`-flag' has been used only, AFAIK, for user options.

---

What I use, FWIW:

* `-flag' for user options.  (I'm about the only
one who does this anymore, it seems.)

* `-p' for non-option variables whose values
  are used just as Booleans (`nil', non-`nil').

* No suffix for non-option variables whose values
  are used other than just as Booleans (`nil',
  non-`nil').




This bug report was last modified 5 years and 219 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.