From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2442 invoked by alias); 27 Jun 2013 21:59:21 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 2433 invoked by uid 89); 27 Jun 2013 21:59:20 -0000 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 Received: from mail2.asahi-net.or.jp (HELO mail2.asahi-net.or.jp) (202.224.39.198) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 27 Jun 2013 21:59:19 +0000 Received: from binki (z160157.dynamic.ppp.asahi-net.or.jp [110.4.160.157]) by mail2.asahi-net.or.jp (Postfix) with ESMTP id AAEF536FE6 for ; Fri, 28 Jun 2013 06:59:17 +0900 (JST) Message-ID: <20130628065919.4008@binki> Date: Thu, 27 Jun 2013 22:32:00 -0000 From: wynfield@gmail.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.4040402@fgm.com> <51CC8B0C.9070809@cornell.edu> X-SW-Source: 2013-06/txt/msg00710.txt.bz2 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