>>>> "Raymond" == Raymond Toy
<raymond.toy(a)stericsson.com> writes:
Raymond> ================================================================
Raymond> Dear Bug Team!
Raymond> Not sure what the real cause of the problem is, but I get an errors
Raymond> like the following when trying to ediff two buffers
Raymond> Invalid state: Bogus value for `coding-system-for-read',
emacs-internal
Raymond> Computing differences between ediff1aDQ2b and ediff1aDdAi ...
Raymond> Invalid state: Bogus value for `coding-system-for-read',
emacs-internal
Raymond> Is emacs-internal a valid coding system? (Ediff sets
Raymond> ediff-coding-system-for-write to emacs-internal.)
Raymond> But with xemacs -vanilla, I don't have this problem. I'm pretty
sure
Raymond> I don't have any personal hacks, but I'll need to grovel over
decades
Raymond> of customizations to see if I do. ;_9
Raymond> Changing ediff-coding-system-for-read to utf-8 allows this to work.
Did some digging.
ediff-exec-process in ediff-diff.el has this:
(defun ediff-exec-process (program buffer synch options &rest files)
(let ((data (match-data))
;; If this is a buffer job, we are diffing temporary files
;; produced by Emacs with ediff-coding-system-for-write, so
;; use the same encoding to read the results.
(coding-system-for-read
(if (string-match "buffer" (symbol-name ediff-job-name))
ediff-coding-system-for-write
ediff-coding-system-for-read))
args)
In my particular case I was running executing "d E" from pcl-cvs to
merge a file. string-match succeeds so coding-system-for-read is set
to ediff-coding-system-for-write = emacs-internal. I guess that's the
cause of the error.
As a hack, I just changed to code to bind coding-system-for-read to
ediff-coding-system-for-read. This allows ediff to continue.
However, it then gets another error about ediff-default-variant being
an undefined variable. Sure enough it is. It seems that
ediff-merg.el was not loaded (autoloaded). If I load it manually,
then ediff merge works as I expect it too. (So far. I haven't tried
to do the merge itself yet.)
Ray
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta