From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/39714 Path: main.gmane.org!not-for-mail From: Daniel Pittman Newsgroups: gmane.emacs.gnus.general Subject: Re: Q: Use external editor for Gnus? Date: Sun, 28 Oct 2001 20:37:22 +1100 Organization: Not today, thank you, Mother. Sender: owner-ding@hpc.uh.edu Message-ID: <87ofms2jhp.fsf@inanna.rimspace.net> References: <87bsizjcsd.fsf@inanna.rimspace.net> <874roqu49o.fsf@inanna.rimspace.net> <87bsis7l6y.fsf@deneb.enyo.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035175382 29462 80.91.224.250 (21 Oct 2002 04:43:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:43:02 +0000 (UTC) Return-Path: Original-Received: (qmail 23669 invoked from network); 28 Oct 2001 09:38:50 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 28 Oct 2001 09:38:50 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 15xmOW-0002vq-00; Sun, 28 Oct 2001 03:38:16 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 28 Oct 2001 03:37:54 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id DAA28532 for ; Sun, 28 Oct 2001 03:37:43 -0600 (CST) Original-Received: (qmail 23019 invoked by alias); 28 Oct 2001 09:37:53 -0000 Original-Received: (qmail 23008 invoked from network); 28 Oct 2001 09:37:53 -0000 Original-Received: from melancholia.rimspace.net (HELO melancholia.danann.net) (210.23.138.19) by gnus.org with SMTP; 28 Oct 2001 09:37:53 -0000 Original-Received: from localhost (melancholia.rimspace.net [210.23.138.19]) by melancholia.danann.net (Postfix) with ESMTP id AC5932A801 for ; Sun, 28 Oct 2001 20:37:35 +1100 (EST) Original-Received: by localhost (Postfix, from userid 1000) id 4CF618212B; Sun, 28 Oct 2001 20:37:22 +1100 (EST) Original-To: ding@gnus.org In-Reply-To: <87bsis7l6y.fsf@deneb.enyo.de> (Florian Weimer's message of "Sun, 28 Oct 2001 00:49:25 +0200") X-Homepage: http://danann.net/ Original-Lines: 38 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.5 (asparagus) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:39714 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:39714 On Sun, 28 Oct 2001, Florian Weimer wrote: > Daniel Pittman writes: > >> (let ((filename (make-temp-name "silly.vi.user.")) >> (message (current-buffer))) >> (with-temp-buffer filename > > This code results in a nasty /tmp race. Creates a nasty race in the current working directory of Emacs, actually, unless `make-temp-name' is different under Emacs than XEmacs. > You should use 'make-temp-file' instead, or create a subdirectory in > which you store the file. It's not portable, nor is the FFI interface. :) Seriously, though, even the almost-latest XEmacs doesn't support `make-temp-file', which means that I would need to emulate it... Creating a directory in a world-writable folder wouldn't help. I really should have done: (let ((filename (expand-file-name (make-temp-name "silly.vi.user.") "~/"))) ... That would ensure that one of two things are true: 1) The rest of the world can't write the area the file is in. 2) The rest of the world can write '.emacs'[1], which means the user is losing anyway... Daniel Footnotes: [1] ...or .profile, or... -- Show me a sane man and I will cure him for you. -- Carl Jung