Commit 9c23ca47 authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

Fix bug#5313: editing files in hexl-mode corrupts file

* hexl.el (hexl-printable-character): Fix check of `hexl-iso',
  which is always a string.
parent 8794c483
2010-01-14 Juanma Barranquero <lekktu@gmail.com>
* hexl.el (hexl-printable-character): Fix check of `hexl-iso',
which is always a string. (Bug#5313)
2010-01-14 Juanma Barranquero <lekktu@gmail.com>
* progmodes/ada-xref.el (ada-default-prj-properties):
......
......@@ -779,11 +779,11 @@ This discards the buffer's undo information."
(defun hexl-printable-character (ch)
"Return a displayable string for character CH."
(format "%c" (if hexl-iso
(if (or (< ch 32) (and (>= ch 127) (< ch 160)))
(format "%c" (if (equal hexl-iso "")
(if (or (< ch 32) (>= ch 127))
46
ch)
(if (or (< ch 32) (>= ch 127))
(if (or (< ch 32) (and (>= ch 127) (< ch 160)))
46
ch))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment