image-mode.el (image-toggle-display-image): Disable
require-final-newline in buffers visiting binary image files.
2011-02-18 Eli Zaretskii <eliz@gnu.org>
+ * image-mode.el (image-toggle-display-image): Disable
+ require-final-newline in buffers visiting binary image files.
+ (Bug#8047)
+
* international/mule-cmds.el (read-char-by-name, ucs-insert):
Document completion with asterisk and a substring.
;; 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 'require-final-newline) nil))
;; Allow navigation of large images
(set (make-local-variable 'auto-hscroll-mode) nil)
(setq image-type type)