From: Kenichi Handa <handa@etl.go.jp>
Cc: eliz@is.elta.co.il, walters@debian.org, emacs-devel@gnu.org
Subject: Re: recursive load case in openp
Date: Thu, 11 Apr 2002 08:43:35 +0900 (JST) [thread overview]
Message-ID: <200204102343.IAA06716@etlken.m17n.org> (raw)
In-Reply-To: message from Richard Stallman on Wed, 10 Apr 2002 14:17:24 -0600 (MDT)
Richard Stallman <rms@gnu.org> writes:
>> Why does encode_coding_string call
>> temp_output_buffer_setup?
> To run post-read-conversion and pre-write-conversion
> functions of a coding system. We must make a temporary
> working buffer for them.
> I don't see anything like that in the code of
> temp_output_buffer_setup. What exactly in the code of
> temp_output_buffer_setup do you actually want to do here?
Here's a copy of temp_output_buffer_setup. I just need
lines from Fset_buffer to Ferase_buffer (inclusive).
void
temp_output_buffer_setup (bufname)
char *bufname;
{
int count = specpdl_ptr - specpdl;
register struct buffer *old = current_buffer;
register Lisp_Object buf;
record_unwind_protect (set_buffer_if_live, Fcurrent_buffer ());
Fset_buffer (Fget_buffer_create (build_string (bufname)));
current_buffer->directory = old->directory;
current_buffer->read_only = Qnil;
current_buffer->filename = Qnil;
current_buffer->undo_list = Qt;
current_buffer->overlays_before = Qnil;
current_buffer->overlays_after = Qnil;
current_buffer->enable_multibyte_characters
= buffer_defaults.enable_multibyte_characters;
Ferase_buffer ();
XSETBUFFER (buf, current_buffer);
Frun_hooks (1, &Qtemp_buffer_setup_hook);
unbind_to (count, Qnil);
specbind (Qstandard_output, buf);
}
---
Ken'ichi HANDA
handa@etl.go.jp
next reply other threads:[~2002-04-10 23:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-10 23:43 Kenichi Handa [this message]
2002-04-11 13:01 ` recursive load case in openp Stefan Monnier
2002-04-12 3:13 ` Richard Stallman
2002-04-12 4:03 ` Stefan Monnier
2002-04-12 9:35 ` Kim F. Storm
2002-04-12 3:12 ` Richard Stallman
-- strict thread matches above, loose matches on Subject: below --
2002-04-12 6:48 Kenichi Handa
2002-04-09 12:34 Kenichi Handa
2002-04-10 20:17 ` Richard Stallman
2002-04-08 2:55 Colin Walters
2002-04-08 6:50 ` Eli Zaretskii
2002-04-09 12:07 ` Richard Stallman
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=200204102343.IAA06716@etlken.m17n.org \
--to=handa@etl.go.jp \
--cc=eliz@is.elta.co.il \
--cc=emacs-devel@gnu.org \
--cc=walters@debian.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 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).