Source

text-modes / hexl.el

Diff from to
   "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 'file-coding)
+      (find-file filename 'binary)
+    (find-file filename))
   (if (not (eq major-mode 'hexl-mode))
       (hexl-mode)))