Mail Archives: djgpp/1998/02/03/04:39:27
People who use Emacs 20 compiled with DJGPP on Windows 95 please note
that there is a bug in an obscure function that causes Emacs to enter an
endless loop when you press `M-!' and `M-|' to run shell commands from
within Emacs. (Ctrl-BREAK will break out of that loop.) The telltale
sign of the bug is that `M-!' works only every other time. The patch
below corrects this problem.
Note that the bug is not restricted neither to Windows 95 nor to the
above two commands, but somehow it was only spotted in these
circumstances.
1998-01-29 Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
* coding.c (encode_eol): Set consumed to zero when src_bytes is
non-positive.
*** src/coding.c~0 Tue Sep 9 00:43:54 1997
--- src/coding.c Thu Jan 29 18:55:58 1998
*************** encode_eol (coding, source, destination,
*** 2172,2178 ****
int produced;
if (src_bytes <= 0)
! return 0;
switch (coding->eol_type)
{
--- 2172,2181 ----
int produced;
if (src_bytes <= 0)
! {
! *consumed = 0;
! return 0;
! }
switch (coding->eol_type)
{
- Raw text -