7 Nov 2002 05:05
Fix for Emacs Crash
Ben Key <Bkey1 <at> tampabay.rr.com>
2002-11-07 04:05:16 GMT
2002-11-07 04:05:16 GMT
The following patch fixes a bug I experienced when running a build of GNU
Emacs I made on Windows XP SP1 on Windows 2000 SP2. The crash occurred when
starting Emacs.
<patch>
--- _21.3/src/w32menu.c 2002-08-05 12:33:44.000000000 -0400
+++ 21.3/src/w32menu.c 2002-11-06 23:01:11.000000000 -0500
<at> <at> -2215,9 +2215,11 <at> <at>
info.fState = wv->selected ? MFS_CHECKED : MFS_UNCHECKED;
}
- set_menu_item_info (menu,
- item != NULL ? (UINT) item : (UINT) wv->call_data,
- FALSE, &info);
+ set_menu_item_info (
+ menu,
+ item != NULL ? (UINT) item : (UINT) wv->call_data,
+ item != NULL ? FALSE : TRUE,
+ &info);
}
}
return return_value;
</patch>
The logic behind this patch is as follows:
* The documentation of SetMenuItemInfo from the MSDN Library is as follows:
SetMenuItemInfo
The SetMenuItemInfo function changes information about a menu item.
BOOL SetMenuItemInfo(
(Continue reading)
jitter as well as a new customization var. a code
enhancement opportunity lies in the scoring method, which passes through
to gtp command `estimate_score' currently -- suggestions welcome.
dear RMS: i have procrastinated mightily on the variable-width fonts
support, but at least you can see how it is i love monospace so much...
thi
____________________________________________________________
;;; ID: gnugo.el,v 1.15 2002/11/16 00:26:37 ttn Exp
;;;
;;; Copyright (C) 1999, 2000, 2002 Thien-Thi Nguyen
;;; This file is part of ttn's personal elisp library, released under GNU
;;; GPL with ABSOLUTELY NO WARRANTY. See the file COPYING for details.
;;; Description: Run GNU Go in a buffer.
;;; Commentary:
;; This is an interface to GNU Go using the Go Text Protocol. Interaction
;; with the gnugo subprocess is synchronous except for `gnugo-get-move'. This
;; means you can use Emacs to do other things while gnugo is thinking about
;;
;; Customization is presently limited to `gnugo-animation-string', q.v.
;;
;; This code was tested with Emacs 20.7 on a monochrome 80x24 terminal.
;;; Code:
(require 'cl) ; use the source luke!
RSS Feed