From: Kenichi Handa <handa@m17n.org>
To: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: eliz@gnu.org, emacs-devel@gnu.org
Subject: Re: Emacs 22.2.90 pretest
Date: Thu, 21 Aug 2008 20:25:51 +0900 [thread overview]
Message-ID: <E1KW8IZ-0008CA-PO@etlken.m17n.org> (raw)
In-Reply-To: <wlpro228rj.wl%mituharu@math.s.chiba-u.ac.jp> (message from YAMAMOTO Mitsuharu on Thu, 21 Aug 2008 15:16:00 +0900)
In article <wlpro228rj.wl%mituharu@math.s.chiba-u.ac.jp>, YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> writes:
> > Is nm the only variable in danger? If so, how about if we simply
> > copy it on all platforms?
> I think it is one possible solution if properly commented.
Another is to do something like this (excerpted from send_process ()).
int offset = 0;
[...]
/* Running filters might relocate buffers or strings.
Arrange to relocate BUF. */
if (BUFFERP (object))
offset = BUF_PTR_BYTE_POS (XBUFFER (object), buf);
else if (STRINGP (object))
offset = buf - SDATA (object);
#ifdef EMACS_HAS_USECS
wait_reading_process_output (0, 20000, 0, 0, Qnil, NULL, 0);
#else
wait_reading_process_output (1, 0, 0, 0, Qnil, NULL, 0);
#endif
if (BUFFERP (object))
buf = BUF_BYTE_ADDRESS (XBUFFER (object), offset);
else if (STRINGP (object))
buf = offset + SDATA (object);
---
Kenichi Handa
handa@ni.aist.go.jp
next prev parent reply other threads:[~2008-08-21 11:25 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-15 17:08 Emacs 22.2.90 pretest Chong Yidong
2008-08-16 7:57 ` Eli Zaretskii
2008-08-16 8:20 ` Eli Zaretskii
2008-08-16 8:41 ` Eli Zaretskii
2008-08-16 13:43 ` Chong Yidong
2008-08-16 15:23 ` Agustin Martin
2008-08-16 16:53 ` Chong Yidong
2008-08-16 16:20 ` Eli Zaretskii
2008-08-16 13:47 ` Chong Yidong
2008-08-17 5:09 ` Jason Rumney
2008-08-17 18:44 ` Eli Zaretskii
2008-08-17 17:54 ` Lennart Borgman (gmail)
2008-08-20 8:10 ` YAMAMOTO Mitsuharu
2008-08-20 14:44 ` Chong Yidong
2008-08-25 18:54 ` Eli Zaretskii
2008-08-20 16:07 ` Eli Zaretskii
2008-08-21 0:51 ` YAMAMOTO Mitsuharu
2008-08-21 5:35 ` Eli Zaretskii
2008-08-21 6:16 ` YAMAMOTO Mitsuharu
2008-08-21 11:25 ` Kenichi Handa [this message]
2008-08-20 8:21 ` YAMAMOTO Mitsuharu
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=E1KW8IZ-0008CA-PO@etlken.m17n.org \
--to=handa@m17n.org \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=mituharu@math.s.chiba-u.ac.jp \
/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.