all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Ivanov Dmitry <usr345@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Incorrect error message for file operation in Windows
Date: Sun, 02 Jun 2013 16:50:30 -0400	[thread overview]
Message-ID: <jwv4ndgi6gb.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <1265839700.20130602145343@gmail.com> (Ivanov Dmitry's message of "Sun, 2 Jun 2013 14:53:43 +0400")

> (condition-case ex
>     (copy-file "~/.emacs.d/drupal.el" "e:/video")
>   ('error (message (format "Caught exception: [%s]" ex))))

On an unrelated note: the above `condition-case' will catch the signals
`error' and `quote', but of course, there is no such thing as
a `quote' signal.  IOW you wanted to write:

   (condition-case ex
       (copy-file "~/.emacs.d/drupal.el" "e:/video")
     (error (message (format "Caught exception: [%s]" ex))))


        Stefan



  parent reply	other threads:[~2013-06-02 20:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-02 10:53 Incorrect error message for file operation in Windows Ivanov Dmitry
2013-06-02 15:57 ` Eli Zaretskii
2013-06-02 16:45   ` Re[2]: " Ivanov Dmitry
2013-06-02 17:11     ` Eli Zaretskii
2013-06-03 15:04       ` Eli Zaretskii
2013-06-02 20:50 ` Stefan Monnier [this message]
2013-06-03  7:31   ` Re[2]: " Ivanov Dmitry

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv4ndgi6gb.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=usr345@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.