Commit 4114ed61 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Fix bug #8047 with require-final-newline in binary image buffers.

 image-mode.el (image-toggle-display-image): Set
 find-file-literally non-nil in buffers visiting binary image
 files.
parent cbe81f1d
2011-02-18 Eli Zaretskii <eliz@gnu.org>
* image-mode.el (image-toggle-display-image): Set
find-file-literally non-nil in buffers visiting binary image
files. (Bug#8047)
2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
 
* files.el (cd): Make completion obey cd-path (bug#7924).
......
......@@ -505,6 +505,11 @@ was inserted."
;; This just makes the arrow displayed in the right fringe
;; area look correct when the image is wider than the window.
(setq truncate-lines t)
;; Disable adding a newline at the end of the image file when it
;; is written with, e.g., C-x C-w.
(if (coding-system-equal (coding-system-base buffer-file-coding-system)
'no-conversion)
(set (make-local-variable 'find-file-literally) t))
;; Allow navigation of large images
(set (make-local-variable 'auto-hscroll-mode) nil)
(setq image-type type)
......
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