[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#7564: write-region could check if file is a directory sooner
From: |
jidanni |
Subject: |
bug#7564: write-region could check if file is a directory sooner |
Date: |
Mon, 04 Jul 2011 21:14:49 +0800 |
>>>>> "LMI" == Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
LMI> jidanni@jidanni.org writes:
>> write-region could check if file is a directory sooner,
>> File /tmp already exists; overwrite anyway? (y or n) y
>> Instead of waiting for this,
>> apply: Opening output file: is a directory, /tmp
LMI> I'm unable to reproduce this. I get the expected error:
LMI> Debugger entered--Lisp error: (file-error "Opening output file" "is a
directory" "/home/larsi/tmp")
LMI> write-region(1 2 "/home/larsi/tmp")
LMI> eval((write-region 1 2 "/home/larsi/tmp") nil)
LMI> eval-expression((write-region 1 2 "/home/larsi/tmp") nil)
LMI> Are you calling `write-region' in a different way?
Turn off your debugger.
$ emacs -q -nw
C-x h ESC x w r i t e - r e TAB RET / t m p RET
File /tmp already exists; overwrite anyway? (y or n)