mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-25 07:28:20 +00:00
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.
This commit is contained in:
parent
cbe81f1d96
commit
4114ed61cd
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||||
|
|
||||||
* files.el (cd): Make completion obey cd-path (bug#7924).
|
* 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
|
;; This just makes the arrow displayed in the right fringe
|
||||||
;; area look correct when the image is wider than the window.
|
;; area look correct when the image is wider than the window.
|
||||||
(setq truncate-lines t)
|
(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
|
;; Allow navigation of large images
|
||||||
(set (make-local-variable 'auto-hscroll-mode) nil)
|
(set (make-local-variable 'auto-hscroll-mode) nil)
|
||||||
(setq image-type type)
|
(setq image-type type)
|
||||||
|
Loading…
Reference in New Issue
Block a user