[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs 22.2.90 pretest
From: |
Kenichi Handa |
Subject: |
Re: Emacs 22.2.90 pretest |
Date: |
Thu, 21 Aug 2008 20:25:51 +0900 |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
In article <address@hidden>, YAMAMOTO Mitsuharu <address@hidden> 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
address@hidden
- Re: Emacs 22.2.90 pretest, (continued)
Re: Emacs 22.2.90 pretest, Chong Yidong, 2008/08/25
Re: Emacs 22.2.90 pretest, YAMAMOTO Mitsuharu, 2008/08/20