[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

write-region is mishandling an error

From: Richard Bielawski
Subject: write-region is mishandling an error
Date: Wed, 7 Feb 2007 12:47:57 -0600

I couldn't get my data into a file using with-temp-file.
All I got was an empty file.
I eventually traced this command 
(with-temp-file "Test at 12:05.txt" (insert "Hello"))
down to 
* write-region(1 5 "Test at 12:05.txt" nil 0)

Which creates an empty file named "Test at 12" and no error occurs.
Initially I didn't notice that the filename was truncated.
Once I did I realized that : is illegal in a file name.
Some kind of error must be occurring that isn't being reported.
Turning debug-on-error on didn't show an error either.

In GNU Emacs (i386-mingw-nt5.1.2600)
 of 2006-11-07 on W2ONE
X server distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags -Id:/g/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:
  flyspell-mode: t
  show-paren-mode: t
  recentf-mode: t
  global-hi-lock-mode: t
  hi-lock-mode: t
  cua-mode: t
  tabbar-mode: t
  eldoc-mode: t
  which-function-mode: t
  shell-dirtrack-mode: t
  encoded-kbd-mode: t
  tooltip-mode: t
  tool-bar-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
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <menu-bar> <options> 
<debug-on-error> <end> C-j <up> <up> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <delete> <delete> <delete> 
<delete> <delete> C-M-x <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <C-end> w r i t e - r e g i o n <left> 
C-h f <return> <switch-frame> <tab> <switch-frame> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <menu-bar> <help-menu> <report-emacs-b

Recent messages:
Wrote f:/emacs/.emacs.bmk
Saving bookmarks to file ~\.emacs.bmk...done
Starting new Ispell process [default] ...
For information about the GNU Project and its goals, type C-h C-p.
Mark set
Debug on Error enabled
Mark set
mouse-2, RET: find function's definition
Loading emacsbug...done

Rick Bielawski

This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you are not the named addressee you should not disseminate, distribute or copy 
this e-mail. Please notify the sender immediately by e-mail if you have 
received this e-mail by mistake and delete this e-mail from your system. Please 
note that any views or opinions presented in this email are solely those of the 
author and do not necessarily represent those of CH Robinson. CH Robinson 
accepts no liability for any damage caused by any virus transmitted by this 

CH Robinson Worldwide, 8100 Mitchell Road, Eden Prairie, MN, USA

reply via email to

[Prev in Thread] Current Thread [Next in Thread]