From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Laurent Langlois Newsgroups: gmane.emacs.bugs Subject: In Win(/XP), command 'mail' creates empty mail buffer and error "Opening output file: invalid argument...". Date: Thu, 13 Mar 2008 09:55:50 -0500 Message-ID: <1955-Thu13Mar2008095550-0500-Laurent.Langlois@adacel.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1205433084 25966 80.91.229.12 (13 Mar 2008 18:31:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Mar 2008 18:31:24 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 13 19:31:52 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JZsDP-0000wX-6O for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Mar 2008 19:31:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZsCq-0000DG-6m for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Mar 2008 14:31:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JZosV-0003fd-CS for bug-gnu-emacs@gnu.org; Thu, 13 Mar 2008 10:57:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JZosR-0003fI-S4 for bug-gnu-emacs@gnu.org; Thu, 13 Mar 2008 10:57:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZosR-0003fB-MW for bug-gnu-emacs@gnu.org; Thu, 13 Mar 2008 10:57:51 -0400 Original-Received: from mgw3.adacelcanada.com ([192.139.155.71]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JZosR-00044W-94 for bug-gnu-emacs@gnu.org; Thu, 13 Mar 2008 10:57:51 -0400 Original-Received: from adacel-mx2.adacelcanada.com (fw-atm-ha.adacelcanada.com [192.139.155.2]) by mgw3.adacelcanada.com (8.13.1/8.13.1) with ESMTP id m2DEnolO013463 for ; Thu, 13 Mar 2008 10:56:44 -0400 Original-Received: from LLANGLOIS-D ([192.168.231.39]) by adacel-mx2.adacelcanada.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 13 Mar 2008 10:55:51 -0400 X-Mailer: emacs 22.1.1 (via feedmail 8 I) X-OriginalArrivalTime: 13 Mar 2008 14:55:51.0440 (UTC) FILETIME=[548F9900:01C8851A] X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Thu, 13 Mar 2008 14:29:51 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17711 Archived-At: The Problem ----------- Calling 'mail' to compose an email, I get: 1- an empty '*mail*' buffer, i.e., no Header lines and no Separator line ("--text follows this ...") ; 2- the following error message in the mini-buffer: Opening output file: invalid argument, d:/Laurent/#*mail*#2268xvT# A Workaround ------------ The following workaround seems to work (I was able to send an email to myself and if you get this, I was able to send you this bug report.) I modified the 'mail' function and changed all occurences of "*mail*" to "-mail-". Hence, (insert (buffer-name)) inserted: -mail- Thanks. -- Laurent Langlois (modest contributor to FSF) P.S.: I have been using Emacs for over twenty years now and this is the very first time that I am sending a bug report. You guys are doing marvellous work. Thank you so very very very much ! In GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600) of 2007-06-02 on RELEASE Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --cflags -Ic:/gnuwin32/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: icomplete-mode: t display-time-mode: t encoded-kbd-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: y M-x m a i l C-M-- s e n d m a i l M-x m a C-g C-h f m a i l C-SPC M-w * s c C-y * m a i l * - m a i l - SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC C-M-x Recent messages: Quit [2 times] Loading help-fns...done Type C-x 1 to remove help window. Mark set Saved text from "(defun mail (&optional noerase to subjec" Mark set [2 times] Replaced 12 occurrences mail Loading emacsbug...done Undo!