[Bug: 21.4.19] XEmacs hangs at exit with "No such coding system: iso-2022-8"

René Kyllingstad listmailxemacs at kyllingstad.com
Tue Jul 25 01:07:58 EDT 2006


Hi,

>  I try to exit XEmacs 21.4.19 under Windows XP by either using the main
>  window close button or menu item File > Exit XEmacs.
>  The minibuffer shows message
>  
>     No such coding system: iso-2022-8


>  `kill-emacs-hook' is a variable declared in Lisp.
>     -- loaded from
>     "e:\acs\software\XEmacsWindowsKit\xemacs-21.4-2006-01-28\lisp\subr.elc"
>  
>  Value: (save-place-kill-emacs-hook savehist-autosave

Stephen Turnbull posted a patch for this April 8th in:

    http://list-archive.xemacs.org/xemacs-beta/200604/msg00065.html

pasted in below.  Looks like it hasn't been applied yet, so you need to
update your local version.


-- René
Index: savehist.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/packages/xemacs-packages/edit-utils/savehist.el,v
retrieving revision 1.4
diff -u -r1.4 savehist.el
--- savehist.el	14 Nov 2005 07:05:54 -0000	1.4
+++ savehist.el	7 Apr 2006 15:54:27 -0000
@@ -135,11 +135,16 @@
 
 ;; This should be capable of representing characters used by Emacs.
 ;; We prefer UTF-8 over ISO 2022 because it is well-known outside
-;; Mule.  XEmacs prir to 21.5 had UTF-8 provided by an external
+;; Mule.  XEmacs prior to 21.5 had UTF-8 provided by an external
 ;; package which may not be loaded, which is why we check for version.
-(defvar savehist-coding-system (if (and (featurep 'xemacs)
-					(<= emacs-major-version 21)
-					(< emacs-minor-version 5))
-				   'iso-2022-8 'utf-8)
+(defvar savehist-coding-system (if (featurep 'xemacs)
+				   (if (featurep 'mule)
+				       (or (find-coding-system 'utf-8)
+					   (find-coding-system 'iso-2022-8)
+					   ;; #### eh?!  should error?
+					   (find-coding-system 'binary))
+				     'binary)
+				 ;; assume Emacs 20, at least
+				 'utf-8))
   "The coding system savehist uses for saving the minibuffer history.
 Changing this value while Emacs is running is supported, but considered
 unwise, unless you know what you are doing.")




More information about the XEmacs-Beta mailing list