On Thu, 2003-02-06 at 11:05, Jouni Seppanen wrote:
In "xemacs-21.4.10 -vanilla", with the sumo package of
2003-02-05
installed, hexl-find-file produces the following error message:
Symbol's function definition is void: get-coding-system
Eek. get-coding-system is defined only in Mule XEmacsen, and invoking
`find-file' with the optional CODESYS argument uses it, no matter
whether running on Mule or not.
I'm not sure how this should be fixed, but the patch below could qualify
as a workaround for this particular case (feedback most welcome). Maybe
find-file-* in files.el should check for availablility of
get-coding-system before using it. hexl.el from GNU Emacs 21.2.93 uses
`find-file-literally' here, which we don't have.
By the way Jouni, do you happen to have any idea why the hut.fi Linux
boxes have a non-Mule XEmacs? Maybe a note to the ATK-keskus people
would be a good idea :)
Index: hexl.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/packages/xemacs-packages/text-modes/hexl.el,v
retrieving revision 1.5
diff -a -u -r1.5 hexl.el
--- hexl.el 20 Jul 2001 14:09:16 -0000 1.5
+++ hexl.el 9 Feb 2003 13:20:30 -0000
@@ -293,7 +293,9 @@
"Edit file FILENAME in hexl-mode.
Switch to a buffer visiting file FILENAME, creating one if none exists."
(interactive "fFilename: ")
- (find-file filename 'binary)
+ (if (featurep 'mule)
+ (find-file filename 'binary)
+ (find-file filename))
(if (not (eq major-mode 'hexl-mode))
(hexl-mode)))
--
\/ille Skyttä
scop at
xemacs.org