From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: bug#55156: [PATCH] eval.c: New functions `defvar-f` and `defconst-f` Date: Thu, 28 Apr 2022 23:10:40 -0400 Message-ID: References: <83sfpxbwkg.fsf@gnu.org> <83ee1hb9tg.fsf@gnu.org> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34400"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55156@debbugs.gnu.org, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 29 05:11:12 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nkH2G-0008ly-8L for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Apr 2022 05:11:12 +0200 Original-Received: from localhost ([::1]:57568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkH2E-0007HX-On for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Apr 2022 23:11:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkH26-0007HA-SC for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2022 23:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56506) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nkH26-0007gb-JM for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2022 23:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nkH26-0003lz-Aw for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2022 23:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Apr 2022 03:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55156 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 55156-submit@debbugs.gnu.org id=B55156.165120184814463 (code B ref 55156); Fri, 29 Apr 2022 03:11:02 +0000 Original-Received: (at 55156) by debbugs.gnu.org; 29 Apr 2022 03:10:48 +0000 Original-Received: from localhost ([127.0.0.1]:50397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkH1r-0003l6-FB for submit@debbugs.gnu.org; Thu, 28 Apr 2022 23:10:48 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51272) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkH1p-0003ks-Tt for 55156@debbugs.gnu.org; Thu, 28 Apr 2022 23:10:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38770) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkH1k-0007ah-OJ; Thu, 28 Apr 2022 23:10:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=K15OR9Epu0KTHQ6HwAAmcn73Q0vVvDqnEm5AbeT1RGQ=; b=ANAlbaPD2w+G gekckfxc1NfxmKjH1NbxhBRsA+YUKUThXqXsHFYSGkJDZQ+JYkjaUMFxaLAoRehuDSr9VxL7m4XZF WBGs9zis+9G6LFsNBrj8nZ3UFoDE2oaKqx9gKnwYSkXeeaXUmdXMryrpam4qaTxrX7D4xNHYG4Y70 Hbpl79jb5U8+ggcjtCxAvflwXhEFpT5gc/cqzC+4vCekCkLYBoU9YqzRE/1FeZcp9UZkEOS3bSDjE 8y/TVwbn79nfmJs1KIMSdHm5f5Vi1D+Ebz83INntE/4gN7DRYHEQjbGWym3HAYX8PQjuKEi28NCE9 9S8/XpljjDu3oadkn/I/iQ==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1nkH1k-0001kF-Ef; Thu, 28 Apr 2022 23:10:40 -0400 In-Reply-To: <83ee1hb9tg.fsf@gnu.org> (message from Eli Zaretskii on Thu, 28 Apr 2022 16:45:47 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:230922 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] We don't have a convention of an `-f' suffix in function names. That form of name is extra cryptic. Let's choose names that follow some existing pattern rather than being inconsistent with old practice. I suggest `defvar-internal', since it isn't meant for users to call. Even `defvar-function' would be better than `defvar-f'. For the doc string, it is better to say in a self-contained way what the function does, rather than only make an analogy. How about this: Define the variable VAR, with initial value INITVAL and doc string DOC. Note that `defvar', being a special form, can distinguish between nil as INITVAL and having only one argument. However, a function cannot do that: it will treat those two cases the same. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)