From: Kenichi Handa <handa@m17n.org>
To: rms@gnu.org
Cc: 122@emacsbugs.donarmstrong.com
Subject: bug#122: 23.0.60; Slowdown in directory scanning over time.
Date: Tue, 16 Sep 2008 10:09:39 +0900 [thread overview]
Message-ID: <E1KfP4V-00031U-Nq@etlken.m17n.org> (raw)
In-Reply-To: <E1KfIlu-00027F-0p@fencepost.gnu.org> (rms@gnu.org)
In article <E1KfIlu-00027F-0p@fencepost.gnu.org>, "Richard M. Stallman" <rms@gnu.org> writes:
> (1) A coding system can have pre-write-conversion function,
> and that function can call code-conversion function
> recursively.
> I read in the doc string of define-coding-system
> that the pre-write-conversion function is called
> before doing the ordinary work of encoding.
> Is it possible to call the pre-write-conversion function
> before obtaining the work buffer?
No. If the source of encoding is a string, it is inserted
in a working buffer to allow pre-write-conversion function
to modify it.
> (2) If REPLACE arg is non-nil in insert-file-contents and a
> file need a decoding, we call decode_coding_c_string while a
> work buffer is in use.
> I see why decoding is needed in this case, but why is a work
> buffer already in use? It seems to me that there is only one
> act of decoding to be done in that call to insert-file-contents.
insert-file-contents uses the working buffer to hold the
output of decoding. So, when decode_coding_c_string is
called, we have already called code_conversion_save to make
the working buffer.
---
Kenichi Handa
handa@ni.aist.go.jp
next prev parent reply other threads:[~2008-09-16 1:09 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-26 22:29 bug#122: 23.0.60; Slowdown in directory scanning over time Chong Yidong
2008-08-27 3:02 ` Len Trigg
2008-08-31 21:57 ` Len Trigg
2008-09-02 1:09 ` Richard M. Stallman
2008-09-11 3:29 ` Len Trigg
2008-09-11 4:18 ` Chong Yidong
[not found] ` <E1KdpeJ-0004Sb-Oj@fencepost.gnu.org>
2008-09-11 22:35 ` Len Trigg
2008-09-12 0:42 ` Chong Yidong
2008-09-12 4:00 ` Len Trigg
2008-09-14 21:24 ` Len Trigg
2008-09-15 1:04 ` Kenichi Handa
2008-09-15 2:42 ` Len Trigg
2008-09-15 18:26 ` Richard M. Stallman
2008-09-16 1:09 ` Kenichi Handa [this message]
2008-09-16 16:18 ` Richard M. Stallman
2008-09-15 18:26 ` Richard M. Stallman
2008-09-16 1:27 ` Kenichi Handa
2008-09-16 13:25 ` Stefan Monnier
2008-09-17 2:19 ` Kenichi Handa
2008-09-17 16:02 ` Stefan Monnier
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=E1KfP4V-00031U-Nq@etlken.m17n.org \
--to=handa@m17n.org \
--cc=122@emacsbugs.donarmstrong.com \
--cc=rms@gnu.org \
/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.