From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Toru TSUNEYOSHI <t_tuneyosi@hotmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: ange-ftp-file-size
Date: Sat, 17 Oct 2009 22:03:06 -0400 [thread overview]
Message-ID: <jwv1vl2yyiy.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <BLU0-SMTP5159BC5C751C1E7BD7610DE2C30@phx.gbl> (Toru TSUNEYOSHI's message of "Sat, 17 Oct 2009 11:21:36 +0900")
>> Now that I look at it: isn't it problematic to set the mode to `ascii'
>> here? If the mode was binary before and we call it with ascii-mode=nil,
>> we end up switching to ascii mode unwittingly, don't we?
> I read the code of `ange-ftp.el'.
> The follows is written...
> In comments:
> By default ange-ftp transfers files in ASCII mode.
> In code:
> (defun ange-ftp-...
> ...
> (unwind-protect
> (progn
> ...
> (if binary
> (ange-ftp-set-binary-mode host user))
> ...)
> (if binary
> (ange-ftp-set-ascii-mode host user)))
> ...)
> So, I understood that `ASCII mode' is basic mode.
> I wrote after the style.
> (In my former patch, I should have used `unwind-protect'.)
OK, thanks, I've changed the prog2 to an unwind-protect.
Stefan
next prev parent reply other threads:[~2009-10-18 2:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-15 3:20 ange-ftp-file-size Toru TSUNEYOSHI
2009-10-15 12:55 ` ange-ftp-file-size Stefan Monnier
2009-10-16 4:31 ` ange-ftp-file-size Toru TSUNEYOSHI
2009-10-16 15:22 ` ange-ftp-file-size Stefan Monnier
2009-10-17 2:21 ` ange-ftp-file-size Toru TSUNEYOSHI
2009-10-18 2:03 ` Stefan Monnier [this message]
2009-10-18 3:07 ` ange-ftp-file-size Toru TSUNEYOSHI
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv1vl2yyiy.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=t_tuneyosi@hotmail.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 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).