Title [Bug: 21.4.22] and [Bug: 21.5-b28]
Type defect Module ediff
Severity some work obstructed Platform N/A
Keywords Nosy List duthen-01, stephen
These controls should only be changed by committers and tracker administrators.
Status done/needs work   Reason
Superseder   Submitted 2009-03-03.15:50:57
Priority normal   Assigned To

Created on 2009-03-07.08:45:03 by duthen-011, last changed 2009-03-07.08:55:49 by stephen.

msg1077 [hidden] ([hidden]) Date: 2009-03-07.08:55:49
  Message-ID: <>
This has been discussed on XEmacs Beta but apparently isn't in 
the tracker yet.  ediff-coding-system-for-write should be set to 
escape-quoted in XEmacs, as emacs-internal doesn't exist.

Will be fixed upstream.  Waiting on new release of ediff.
msg1073 [hidden] ([hidden]) Date: 2009-03-07.08:45:03
  Message-ID: <>
--text follows this line--
Dear Bug Team!

This bug occurs with 21.4.22 and 21.5-b28
XEmacs 21.4 (patch 22) "Instant Classic" [Lucid] (i586-pc-win32) of
Tue Jan 06 2009 on VSHELTON-PC2
XEmacs 21.5  (beta28) "fuki"  [Lucid] (i586-pc-win32, Mule) of Tue Jan
06 2009 on VSHELTON-PC2

I renamed my ~/.xemacs directory to get rid of my initialization files.

When I try to "ediff" two empty buffers "tmp01" and "tmp02", I get an error:
C-x 2
C-x b tmp01 RET
C-x o
C-x b tmp02 RET
C-x o
M-x ediff-buffers RET RET RET
Debugger entered--Lisp error: (invalid-argument "No such coding
system" emacs-internal)
  coding-system-property(emacs-internal pre-write-conversion)
  write-region("" nil
"C:\\DOCUME~1\\jduthen\\LOCALS~1\\Temp/ediffceAgeH" nil silent nil
  byte-code("..." [proposed-name keep-proposed-name temp-buffer file
file-exists-p make-temp-name get-buffer-create
generate-new-buffer-name " *temp*" ((byte-code "?!???!???" ... 2))
write-region "" nil silent excl] 8)
  ediff-make-temp-file("tmp01" nil)
  ediff-buffers-internal("tmp01" "tmp02" nil nil ediff-buffers)
  #<compiled-function (buffer-A buffer-B &optional startup-hooks
job-name) "...(13)" [startup-hooks buffer-B buffer-A job-name
ediff-buffers ediff-buffers-internal nil] 6 ("c:/Program
Files/XEmacs/xemacs-packages/lisp/ediff/ediff.elc" . 5697) (let (bf)
(list ... ...))>("tmp01" "tmp02")
  command-execute(ediff-buffers t)
  (dispatch-event "[internal]")

I found that this is due to ediff-coding-system-for-write:

ELISP> ediff-coding-system-for-read
ELISP> ediff-coding-system-for-write
ELISP> (coding-system-property ediff-coding-system-for-write
*** Eval error ***  error: "No such coding system", emacs-internal
ELISP> file-coding-system-alist
. binary)
 ("TUTORIAL\\.\\(?:hr\\|pl\\|ro\\)\\'" . iso-8859-2))

In ediff-make-temp-file, coding-system-for-write is locally set to

I could get rid of the bug and make ediff run by setting
to something else than emacs-internal, for example raw-text

I hope you can fix this bug.




System Info to help track down your bug:

OS version:

Microsoft Windows XP [Version 5.1.2600]

OS: Windows_NT

XEmacs 21.5-b28 "fuki"  configured for `i586-pc-win32'.

  Building XEmacs using "nmake".

  Building XEmacs using make flags "                  ".

  Building XEmacs in source tree "c:\\XEmacsBuild\\xemacs-21.5.28".

  For src, using compiler "icl -nologo -W3 -DSTRICT  -Zi -Od -MD -c
-TP  -Ic:\XEmacsBuild\xemacs-21.5.28\nt\inc
-I"e:/cygwin/usr/local/src\jpeg-6b" -I"e:/cygwin/usr/local/src/zlib"
-DPATH_PROGNAME=\"xemacs\"				 -DEMACS_VERSION=\"21.5-b28\"		

  For lib-src, using compiler "icl -nologo -W3 -DSTRICT  -Zi -Od -MD
-Ic:\XEmacsBuild\xemacs-21.5.28\src -DHAVE_CONFIG_H -DWIN32_NATIVE".

  Compiling as C++.

  Installing XEmacs in "c:/XEmacsBuild/installed/XEmacs-21.5.28".

  Compiling in support for Microsoft Windows native GUI.

  Compiling in international (MULE) support.

  Compiling in support for XPM images.

  Compiling in support for GIF images.

  Compiling in support for PNG images.

  Compiling in support for TIFF images.

  Compiling in support for JPEG images.

  Compiling in support for GZIP compression/decompression.

  Compiling in support for toolbars.

  Compiling in support for dialogs.

  Compiling in support for widgets.

  Compiling in support for native sounds.

  Using portable dumper.

  Using system malloc.

  Using DLL version of C runtime library.

  Compiling in extra internal error-checking.

  NOTE: ---------------------------------------------------------

  NOTE: Compiling in support for runtime error-checking.

  NOTE: XEmacs will run noticeably more slowly as a result.

  NOTE: Error-checking is on by default for XEmacs beta releases.

  NOTE: ---------------------------------------------------------

  Compiling in debugging support (no slowdown).

  Using new experimental GC mark algorithms.

Load-Path Lisp Shadows:
(c:\Program Files\XEmacs\mule-packages\lisp\mule-base\viet-util
c:\Program Files\XEmacs\XEmacs-21.5.28\lisp\mule\viet-util c:\Program
Files\XEmacs\mule-packages\lisp\mule-base\korea-util c:\Program
Files\XEmacs\XEmacs-21.5.28\lisp\mule\korea-util c:\Program
Files\XEmacs\mule-packages\lisp\mule-base\japan-util c:\Program
Files\XEmacs\XEmacs-21.5.28\lisp\mule\japan-util c:\Program
Files\XEmacs\mule-packages\lisp\mule-base\ethio-util c:\Program
Files\XEmacs\XEmacs-21.5.28\lisp\mule\ethio-util c:\Program
Files\XEmacs\mule-packages\lisp\mule-base\cyril-util c:\Program
Files\XEmacs\XEmacs-21.5.28\lisp\mule\cyril-util c:\Program
Files\XEmacs\mule-packages\lisp\mule-base\china-util c:\Program
Files\XEmacs\XEmacs-21.5.28\lisp\mule\china-util c:\Program
Files\XEmacs\xemacs-packages\lisp\xemacs-base\regexp-opt c:\Program
Files\XEmacs\XEmacs-21.5.28\lisp\regexp-opt c:\Program
Files\XEmacs\xemacs-packages\lisp\xemacs-base\easy-mmode c:\Program

Internationalization Settings:


  Value of LC_ALL      : nil
  Value of LC_COLLATE  : nil
  Value of LC_CTYPE    : nil
  Value of LC_MESSAGES : nil
  Value of LC_MONETARY : nil
  Value of LC_NUMERIC  : nil
  Value of LC_TIME     : nil
  Value of LANG        : nil

Lisp locale settings:

  current-language-environment      => "French"
  default-buffer-file-coding-system => mswindows-multibyte-dos
  default-process-coding-system     => (undecided .
  (current-locale)                  => "French_France.1252"
  keyboard-coding-system            => mswindows-multibyte-system-default
  terminal-coding-system            => mswindows-multibyte-system-default
  (coding-priority-list)            =>
    (no-conversion utf-16-little-endian-bom utf-16-bom utf-8-bom iso-7
    utf-8 iso-8-1 iso-8-2 iso-8-designate iso-lock-shift shift-jis
    big5 utf-16-little-endian utf-16 ucs-4)

Coding system aliases:

  'native                              is aliased to
  'file-name                           is aliased to native
  'mswindows-multibyte-system-default  is not a coding system alias

Installed XEmacs Packages:
(xslt-process ver: 1.12 upstream: 1.2.1)
(xslide ver: 1.09 upstream: 0.2.2)
(xetla ver: 1.02 upstream: steve at
(xemacs-devel ver: 1.79 upstream: No-Upstream-Ver)
(xemacs-base ver: 2.18 upstream: No-Upstream-Ver)
(x-symbol ver: 1.11 upstream: 4.5.1)
(w3 ver: 1.35 upstream: 4.0pre47)
(vm ver: 8.07 upstream: 8.0.12-devo)
(viper ver: 1.65 upstream: 3.09)
(vhdl ver: 1.22 upstream: 3.33.12)
(vc ver: 1.45 upstream: No-Upstream-Ver)
(tramp ver: 1.4 upstream: 2.0.56)
(time ver: 1.14 upstream: 1.17)
(textools ver: 1.15 upstream: No-Upstream-Ver)
(text-modes ver: 1.95 upstream: No-Upstream-Ver)
(texinfo ver: 1.3 upstream: No-Upstream-Ver)
(supercite ver: 1.21 upstream: 3.55x3)
(speedbar ver: 1.29 upstream: 1.0pre4)
(sounds-wav ver: 1.12 upstream: No-Upstream-Ver)
(sieve ver: 1.18 upstream: No-Upstream-Ver)
(sh-script ver: 1.24 upstream: 2.0f)
(sgml ver: 1.11 upstream: No-Upstream-Ver)
(semantic ver: 1.2 upstream: 1.4.4)
(scheme ver: 1.17 upstream: No-Upstream-Ver)
(sasl ver: 1.16 upstream: 1.14.4)
(ruby-modes ver: 1.02 upstream: 1.6.8)
(reftex ver: 1.34 upstream: 4.21)
(re-builder ver: 1.05 upstream: 1.20)
(python-modes ver: 1.12 upstream: 5.0.0)
(psgml ver: 1.45 upstream: 1.3.2)
(ps-print ver: 1.12 upstream: 6.5.6)
(prog-modes ver: 2.18 upstream: No-Upstream-Ver)
(perl-modes ver: 1.14 upstream: No-Upstream-Ver)
(pcomplete ver: 1.05 upstream: 1.1.6)
(pcl-cvs ver: 1.68 upstream: R-2_9_9)
(pc ver: 1.28 upstream: No-Upstream-Ver)
(os-utils ver: 1.41 upstream: No-Upstream-Ver)
(net-utils ver: 1.56 upstream: N/A)
(mmm-mode ver: 1.03 upstream: 0.4.8)
(mh-e ver: 1.31 upstream: 7.4.2)
(mailcrypt ver: 2.14 upstream: 3.5.8)
(mail-lib ver: 1.8 upstream: No-Upstream-Ver)
(jde ver: 1.51 upstream: 2.3.3)
(ispell ver: 1.32 upstream: 3.6)
(igrep ver: 1.16 upstream: 2.111)
(ibuffer ver: 1.09 upstream: No-Upstream-Ver)
(hm--html-menus ver: 1.24 upstream: 5.9)
(gnus ver: 1.93 upstream: 5.10.8)
(fsf-compat ver: 1.17 upstream: No-Upstream-Ver)
(fortran-modes ver: 1.05 upstream: No-Upstream-Ver)
(footnote ver: 1.16 upstream: 0.18x)
(eshell ver: 1.16 upstream: 0fc80a3f6bb3bb59f42e9ff83cc8b89bf90fe658)
(emerge ver: 1.11 upstream: No-Upstream-Ver)
(elib ver: 1.13 upstream: 1.0)
(eieio ver: 1.06 upstream: 1.0pre4)
(efs ver: 1.34 upstream: 1.24)
(edit-utils ver: 2.4 upstream: No-Upstream-Ver)
(ediff ver: 1.77 upstream: 2.75)
(edebug ver: 1.22 upstream: No-Upstream-Ver)
(ecrypto ver: 0.21 upstream: 2.0)
(ecb ver: 1.22 upstream: 2.31)
(easypg ver: 1.02 upstream: 0.0.16)
(dired ver: 1.19 upstream: 7.16)
(debug ver: 1.18 upstream: No-Upstream-Ver)
(cc-mode ver: 1.45 upstream: 5.30.10)
(calc ver: 1.26 upstream: 2.02fX3)
(c-support ver: 1.22 upstream: No-Upstream-Ver)
(bbdb ver: 1.32 upstream: 2.35)
(auctex ver: 1.51 upstream: 11.84)
(mule-base ver: 1.53 upstream: No-Upstream-Ver)
(lookup ver: 1.15 upstream: 1.0)
(locale ver: 1.28 upstream: No-Upstream-Ver)
(latin-unity ver: 1.2 upstream: 1.20)
(latin-euro-standards ver: 1.08 upstream: 1.08)


(mail-abbrevs xemacsbug shadow sendmail rfc822 debug ediff-merg
ediff-diff ediff-wind ediff-tbar ediff-help ediff-util ediff-mult
ediff-init cus-face ediff xslt-process-autoloads xslide-autoloads
xetla-autoloads xemacs-devel-autoloads xemacs-base-autoloads
x-symbol-autoloads w3-autoloads vm-autoloads viper-autoloads
vhdl-autoloads vc-autoloads tramp-autoloads time-autoloads
textools-autoloads text-modes-autoloads texinfo-autoloads
supercite-autoloads speedbar-autoloads sounds-wav-autoloads
sieve-autoloads sh-script-autoloads sgml-autoloads semantic-autoloads
scheme-autoloads sasl-autoloads ruby-modes-autoloads reftex-autoloads
re-builder-autoloads python-modes-autoloads psgml-autoloads
ps-print-autoloads prog-modes-autoloads perl-modes-autoloads
pcomplete-autoloads pcl-cvs-autoloads pc-autoloads os-utils-autoloads
net-utils-autoloads mmm-mode-autoloads mh-e-autoloads
mailcrypt-autoloads mail-lib-autoloads jde-autoloads ispell-autoloads
igrep-autoloads ibuffer-autoloads hm--html-menus-autoloads
gnus-autoloads fsf-compat-autoloads fortran-modes-autoloads
footnote-autoloads eshell-autoloads emerge-autoloads elib-autoloads
eieio-autoloads efs-autoloads edit-utils-autoloads ediff-autoloads
edebug-autoloads ecrypto-autoloads ecb-autoloads easypg-autoloads
dired-autoloads debug-autoloads cc-mode-autoloads calc-autoloads
c-support-autoloads bbdb-autoloads tex-site auctex-autoloads
mule-base-autoloads lookup-autoloads locale-autoloads
latin-unity-autoloads latin-euro-standards-autoloads mule-autoloads
auto-autoloads auto-show fontl-hooks canna-leim tibetan slovenian
czech romanian lao devanagari indian ccl code-cmds gutter-items
menubar-items x-menubar dragdrop mode-motion mouse behavior itimer
auto-save lisp-mode easymenu easy-mmode iso8859-1 page buff-menu
lib-complete loadhist cus-file derived newcomment rsz-minibuf env
text-props frame obsolete cus-start custom widget cl-extra cl cl-19
packages backquote unicode mswindows-scrollbars mswindows toolbar
native-sound scrollbar network-streams subprocesses
menu-accelerator-support menubar md5 xemacs mule gutter tiff png gif
jpeg xpm xbm lisp-float-type file-coding dde windows-nt dragdrop-api
dialog devices window-system base64)

Recent keystrokes:

misc-user C-x o q BS C-x o C-x b t m p 0 1 RET C-x
o C-x b t m p 0 2 RET C-x o M-x e d i SPC f SPC SPC
b SPC u SPC RET RET RET M-: ( s e t q SPC d e b u g
- o n - e r r o r SPC t ) RET M-x M-p C-_ e d i f f
- b u f f e r s RET RET RET misc-user

Recent messages (most recent first):


Defaulting to the GNU Emacs-derived `sendmail.el' mail client. This facility,
while part of base XEmacs, is heinously underfeatured, and not going to get
better in the medium term. We include it so that bug reports work without
packages; we suggest that you choose and/or install one of the other mail
clients from packages if you're doing something other than M-x
report-xemacs-bug , or even if you are reporting bugs regularly.

To choose a package from those installed, click on "Options" ->
"Internet" -> "Compose Mail With ..." and decide on one from the
list. Gnus and VM are full-featured and have active user communities.

To disable this warning and stick with the old behavior, you can explicitly
initialize `mail-user-agent' to 'sendmail-user-agent .
Loading xemacsbug...done
Loading xemacsbug...
Entering debugger...
Loading debug...done
Loading debug...
Invalid argument: No such coding system, emacs-internal
Loading ediff...done
Loading cus-face...done
Loading cus-face...
Loading ediff...
Making completion list...
Making completion list...
Error: An error has occurred while loading c:/Documents and

Cannot open load file: "c:/Documents and Settings/jduthen/HOME/.xemacs/init.el"

Backtrace follows:

  signal(file-error ("Cannot open load file" "c:/Documents and
  # bind (path handler filename nosuffix nomessage noerror file)
  load("c:/Documents and Settings/jduthen/HOME/.xemacs/init.el" nil nil t)
  # bind (file)
  load-file("c:/Documents and Settings/jduthen/HOME/.xemacs/init.el")
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  (load-internal "[internal]")
  load-internal("c:\\Documents and Settings\\jduthen\\HOME\\.emacs" t
t t undecided)
  # bind (path handler filename nosuffix nomessage noerror file)
  load("c:\\Documents and Settings\\jduthen\\HOME\\.emacs" t t t)
  #<compiled-function nil "...(10)" [init-file-had-error
load-user-init-file-p load-user-init-file nil] 2>()
  # (unwind-protect ...)
(__load_init_file_arg__) "...(26)" [init-file-had-error user-init-file
__load_init_file_arg__ errstr error-message-string message "Error in
init file: %s" lwarn initialization error "An error has occurred while
loading %s:\n\n%s\n\nBacktrace follows:\n\n%s\n\nTo ensure normal
operation, you should investigate the cause of the error\nin your
initialization file and remove it.  Use the `-debug-init' option\nto
XEmacs to enter the debugger when the error occurs and investigate
the\nexact problem."
backtrace-in-condition-handler-eliminating-handler t] 8>
#<compiled-function nil "...(10)" [init-file-had-error
load-user-init-file-p load-user-init-file nil] 2>)
  # (condition-case ... . ((error)))
  # bind (debug-on-error debug-on-error-from-init-file
debug-on-error-should-be-set debug-on-error-initial)
  # bind (command-line-args-left)
  # (condition-case ... . ((t (byte-code "	??" [error-data data nil] 1))))
  # bind (error-data)
  # (condition-case ... . error)
  # (catch top-level ...)

To ensure normal operation, you should investigate the cause of the error
in your initialization file and remove it.  Use the `-debug-init' option
to XEmacs to enter the debugger when the error occurs and investigate the
exact problem.
Error in init file: Cannot open load file: "c:/Documents and
loading .emacs ...

XEmacs-Beta mailing list
XEmacs-Beta at
Date User Action Args
2009-03-07 08:55:49stephensetstatus: done/needs work
assignedto: stephen
type: defect
severity: some work obstructed
platform: + N/A
nosy: + duthen-01, stephen, - duthen-011
messages: + msg1077
module: + ediff
priority: normal
2009-03-07 08:45:03duthen-011create