unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#7564: write-region could check if file is a directory sooner
@ 2010-12-05 16:06 jidanni
  2011-07-02 21:30 ` Lars Magne Ingebrigtsen
  2011-07-04 13:14 ` jidanni
  0 siblings, 2 replies; 4+ messages in thread
From: jidanni @ 2010-12-05 16:06 UTC (permalink / raw)
  To: 7564

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
emacs-version "24.0.50.1"





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#7564: write-region could check if file is a directory sooner
  2010-12-05 16:06 bug#7564: write-region could check if file is a directory sooner jidanni
@ 2011-07-02 21:30 ` Lars Magne Ingebrigtsen
  2011-07-04 13:14 ` jidanni
  1 sibling, 0 replies; 4+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-07-02 21:30 UTC (permalink / raw)
  To: jidanni; +Cc: 7564

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

I'm unable to reproduce this.  I get the expected error:

Debugger entered--Lisp error: (file-error "Opening output file" "is a directory" "/home/larsi/tmp")
  write-region(1 2 "/home/larsi/tmp")
  eval((write-region 1 2 "/home/larsi/tmp") nil)
  eval-expression((write-region 1 2 "/home/larsi/tmp") nil)

Are you calling `write-region' in a different way?  
  
-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#7564: write-region could check if file is a directory sooner
  2010-12-05 16:06 bug#7564: write-region could check if file is a directory sooner jidanni
  2011-07-02 21:30 ` Lars Magne Ingebrigtsen
@ 2011-07-04 13:14 ` jidanni
  2011-07-04 13:45   ` Lars Magne Ingebrigtsen
  1 sibling, 1 reply; 4+ messages in thread
From: jidanni @ 2011-07-04 13:14 UTC (permalink / raw)
  To: larsi; +Cc: 7564

>>>>> "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)





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#7564: write-region could check if file is a directory sooner
  2011-07-04 13:14 ` jidanni
@ 2011-07-04 13:45   ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-07-04 13:45 UTC (permalink / raw)
  To: jidanni; +Cc: 7564

jidanni@jidanni.org writes:

> 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)

Oh, right, when using it interactively.

I've now fixed this bug.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-07-04 13:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-05 16:06 bug#7564: write-region could check if file is a directory sooner jidanni
2011-07-02 21:30 ` Lars Magne Ingebrigtsen
2011-07-04 13:14 ` jidanni
2011-07-04 13:45   ` Lars Magne Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).