X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:to:subject:in-reply-to :references; q=dns; s=default; b=T1aCKJ8/yKe8oJksmtGjEDFDnaYW0tq wQWTsvhV7Jz9x3JbYOpb1ovfkTDT1dVvIUn9qme/0QyLZz2N5zz/8L9BO/AyVu2c XG46NjdmsGB7RowwcZ9lpiv06ujCW2yhY7iUADh+uGSss60YE2Sfjm/KbtLNc8rn 045O6y2gDvTc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:to:subject:in-reply-to :references; s=default; bh=0a9NxH4js6oZQ3bvikkV3chE05c=; b=DsBDn +lF5e7vtsOa5n1wRUxKkW2JHaLIArcNsOsbH2ImWAGV6MNNs79Zm7Vdx/ucFc0kG 8xBxm2z636qdKkyCZ2+MQH0osMiZqo5ZN9NDzknBrOqsSqj5YgyIA5E4Xz2jM87l 7Ky2NCArmWyd+qQqEI8DdaxXey/SxyvgoMivaI= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_NO,SPF_NEUTRAL autolearn=ham version=3.3.1 Message-ID: <20130628065919.4008@binki> Date: Fri, 28 Jun 2013 06:59:19 +0900 From: wynfield AT gmail DOT com To: Subject: Re: where was mention of what creates NUL files? In-reply-to: Your message of Thu, 27 Jun 2013 14:57:16 -0400 <51CC8B0C.9070809@cornell.edu> References: <4C93A171 DOT 4040402 AT fgm DOT com> <51CC8B0C DOT 9070809 AT cornell DOT edu> I do not have the problem using emacs built on cygwin either. > On 6/26/2013 2:53 PM, g wrote: > > > > > > > > Daniel Barclay fgm.com> writes: > > > >> > >> Does anyone recall a mention of what in CygWin (or possibly Emacs) creates > >> files with a simple name of "NUL"? > >> > >> Thanks, > >> Daniel > >> > >> > > > > > > This has been driving me nuts for years. Finally tracked it down. > > These are created by emacs' man.el code when you get a man page. > > Reproduce: > > In emacs, do: > > M-x man > > > > Now, you'll see a NUL file in the directory. > > I can't reproduce this with Cygwin emacs. You must be using native > Windows emacs. > > > Root cause: > > construction of the 'man' command that is passed to the shell includes: > > (concat " %s 2>" null-device) > > > > The variable `null-device' is platform specific and defaults to a pure-copy > > of "/dev/null" which, apparently, becomes "NUL" on windows. > > > > It is a defvar in files.el and 'set' again in dos-w32.el. > > > > Resolution: > > In your .emacs file, do: > > > > (require 'dos-w32) ;; load this first to avoid it undo'ing the next line > > (setq null-device "c:/tmp/emacs-dev-null.txt") ;; set to anything > > Just to be clear, users of Cygwin emacs should *not* do this. > > Ken > > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple