diff options
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/image-mode.el | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f65ec67e7b8..367e685dd1d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-02-18 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * image-mode.el (image-toggle-display-image): Set | ||
| 4 | find-file-literally non-nil in buffers visiting binary image | ||
| 5 | files. (Bug#8047) | ||
| 6 | |||
| 1 | 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 8 | ||
| 3 | * files.el (cd): Make completion obey cd-path (bug#7924). | 9 | * files.el (cd): Make completion obey cd-path (bug#7924). |
diff --git a/lisp/image-mode.el b/lisp/image-mode.el index 190ca08722b..64dcf9076ae 100644 --- a/lisp/image-mode.el +++ b/lisp/image-mode.el | |||
| @@ -505,6 +505,11 @@ was inserted." | |||
| 505 | ;; This just makes the arrow displayed in the right fringe | 505 | ;; This just makes the arrow displayed in the right fringe |
| 506 | ;; area look correct when the image is wider than the window. | 506 | ;; area look correct when the image is wider than the window. |
| 507 | (setq truncate-lines t) | 507 | (setq truncate-lines t) |
| 508 | ;; Disable adding a newline at the end of the image file when it | ||
| 509 | ;; is written with, e.g., C-x C-w. | ||
| 510 | (if (coding-system-equal (coding-system-base buffer-file-coding-system) | ||
| 511 | 'no-conversion) | ||
| 512 | (set (make-local-variable 'find-file-literally) t)) | ||
| 508 | ;; Allow navigation of large images | 513 | ;; Allow navigation of large images |
| 509 | (set (make-local-variable 'auto-hscroll-mode) nil) | 514 | (set (make-local-variable 'auto-hscroll-mode) nil) |
| 510 | (setq image-type type) | 515 | (setq image-type type) |