From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#28023: fix make-temp-file race on local host Date: Sat, 12 Aug 2017 09:25:37 -0700 Organization: UCLA Computer Science Department Message-ID: <269e192f-15d8-4625-bbf0-ca11fb66edcc@cs.ucla.edu> References: <8c2c16ff-94ec-a691-57b1-bab8f5b39dfb@cs.ucla.edu> <87shh18c9e.fsf@detlef> <877ey9dqfl.fsf@detlef> <83poc0ix8a.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1502555178 12374 195.159.176.226 (12 Aug 2017 16:26:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 12 Aug 2017 16:26:18 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 Cc: 28023@debbugs.gnu.org, michael.albinus@gmx.de To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 12 18:26:15 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 1dgZEp-0002nD-Kk for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Aug 2017 18:26:11 +0200 Original-Received: from localhost ([::1]:38197 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgZEt-00080I-3f for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Aug 2017 12:26:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgZEj-0007yL-By for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2017 12:26:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgZEg-0006by-5u for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2017 12:26:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48360) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dgZEg-0006bV-25 for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2017 12:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dgZEf-0003CU-TB for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2017 12:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Aug 2017 16:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28023 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 28023-submit@debbugs.gnu.org id=B28023.150255515312296 (code B ref 28023); Sat, 12 Aug 2017 16:26:01 +0000 Original-Received: (at 28023) by debbugs.gnu.org; 12 Aug 2017 16:25:53 +0000 Original-Received: from localhost ([127.0.0.1]:57041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgZEW-0003CF-UK for submit@debbugs.gnu.org; Sat, 12 Aug 2017 12:25:53 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:53760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgZEU-0003C8-NM for 28023@debbugs.gnu.org; Sat, 12 Aug 2017 12:25:50 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 499FF1607CE; Sat, 12 Aug 2017 09:25:44 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 7c0b8hrB1YtE; Sat, 12 Aug 2017 09:25:40 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 85E6416080B; Sat, 12 Aug 2017 09:25:38 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id z7lBtNVkwju8; Sat, 12 Aug 2017 09:25:38 -0700 (PDT) Original-Received: from [192.168.1.9] (unknown [47.153.184.153]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 47D691607CE; Sat, 12 Aug 2017 09:25:38 -0700 (PDT) In-Reply-To: <83poc0ix8a.fsf@gnu.org> Content-Language: en-US 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:135690 Archived-At: Eli Zaretskii wrote: > I think the function you are > adding should be named make-temp-file-internal, as we do with other > functions whose low-level parts are implemented in C. I was following the lead of names like lread--substitute-command-keys,=20 print--preprocess, and thread--blocker, all low-level C functions whose f= irst=20 part identifies which C module they're in. Although I see that the "-inte= rnal"=20 suffix is more popular for this sort of thing, isn't that a revenant of t= he old=20 days, before we instituted the convention of using PREFIX--NAME for priva= te=20 names? Or is the "-internal" suffix a separate naming convention, used by= both=20 Lisp and C code, that has a different semantics from PREFIX--NAME? If so,= it=20 would be nice to have advice somewhere as to when to use the -internal su= ffix vs=20 when to use PREFIX--NAME.