From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Special Event: Davin reveals his own personal additions to Emacs. Date: Thu, 14 Jul 2022 10:13:15 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29239"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel To: Davin Pearson Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 14 16:16:09 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oBzdQ-0007LE-2n for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Jul 2022 16:16:08 +0200 Original-Received: from localhost ([::1]:54914 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBzdO-0007Oo-DW for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Jul 2022 10:16:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBzas-0005Yh-RI for emacs-devel@gnu.org; Thu, 14 Jul 2022 10:13:31 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:24214) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBzak-0003Y4-Lt for emacs-devel@gnu.org; Thu, 14 Jul 2022 10:13:29 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 52E5210012B; Thu, 14 Jul 2022 10:13:19 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id A4954100120; Thu, 14 Jul 2022 10:13:17 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1657807997; bh=NwueeWslmONzd1hTV3Zea1J6G4+jARC1sDjc3HJ6PeA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Oq66BpOrGnkgQtG8gWgoJi3TX9KyYWld/2tMxc4AlrbhbJlz3slaOpXNRi7O4fVFd Z3IkEBRtJNX8Iklz3Javye+JAvegZAZ1XojmI6+vCwyJWfa7ACLy0Nry6aiW7Ra3kB B4U4OfeNle8IvrgM+6DlarkkWVFwavx9YRs+r8ruvvHoiR+9xxR6NGeRckozu+fOlG YnLvk3XrcelpKOprFuc/mKE2EnidZv+OYTlSdZiZY0a9mNz9r18YX2SqioZbekIexd WT8OWB7ZoCUl2bTO/HKf+M76Usw9C0nLhYSxqZAPjZhJfuub+BBnqIdfBQRRdTwBGF dY43OwDPfd7Ng== Original-Received: from pastel (unknown [45.72.196.165]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 441551207F0; Thu, 14 Jul 2022 10:13:17 -0400 (EDT) In-Reply-To: (Davin Pearson's message of "Thu, 14 Jul 2022 14:30:04 +1200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:292151 Archived-At: > Is dmp a reasonable prefix for global variables? Any prefix is potentially reasonable, yes. IIUC the code under discussion is an example in a piece of text discussing ELisp coding style, so which prefix is used doesn't matter, the important thing is not to set a bad example of code using no prefix at all. Given that the example function uses `manifest-` as prefix, I'd recommend you use `manifest-` as a prefix for the variable as well. > I once used my-* for my global variables but abandoned it > when other people started to use my code. In code which is intended to be shared with other people to use, `my-` is probably not the best choice, indeed. But for your own personal code, `my-` is fine (and if people copy&use that code anyway, it becomes their own personal code, so `my-` is also fine). > It is rather unlikely that there is a dmp out there in the world today. I can definitely imagine someone using `dmp-` as a prefix for some package, tho I don't know if that's the case currently, indeed. > Lisp namespaces should be allocated on a first in first served basis, > which is how internet domain names are allocated. That's pretty much how it works out, tho allocation is "de facto". Stefan