bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Juanma Barranquero
Subject: bug#5313: editing files in hexl-mode corrupts file
Date: Thu, 14 Jan 2010 01:50:34 +0100

On Mon, Jan 4, 2010 at 14:35, Jonathan Underwood
<jonathan.underwood@gmail.com> wrote:

> A bug report was filed downstream about hexl-mode corrupting a file
> during editing:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=547566

Could you please try the following patch?

    Juanma


=== modified file 'lisp/hexl.el'
--- lisp/hexl.el        2010-01-13 08:35:10 +0000
+++ lisp/hexl.el        2010-01-14 00:38:04 +0000
@@ -779,7 +779,7 @@

 (defun hexl-printable-character (ch)
   "Return a displayable string for character CH."
-  (format "%c" (if hexl-iso
+  (format "%c" (if (not (equal hexl-iso ""))
                   (if (or (< ch 32) (and (>= ch 127) (< ch 160)))
                       46
                     ch)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]