[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r103339: Fix bug #8047 with require-f
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r103339: Fix bug #8047 with require-final-newline in binary image buffers. |
Date: |
Fri, 18 Feb 2011 19:59:06 +0200 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 103339
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Fri 2011-02-18 19:59:06 +0200
message:
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.
modified:
lisp/ChangeLog
lisp/image-mode.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2011-02-18 17:18:16 +0000
+++ b/lisp/ChangeLog 2011-02-18 17:59:06 +0000
@@ -1,3 +1,9 @@
+2011-02-18 Eli Zaretskii <address@hidden>
+
+ * 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 <address@hidden>
* files.el (cd): Make completion obey cd-path (bug#7924).
=== modified file 'lisp/image-mode.el'
--- a/lisp/image-mode.el 2011-02-01 21:22:21 +0000
+++ b/lisp/image-mode.el 2011-02-18 17:59:06 +0000
@@ -505,6 +505,11 @@
;; 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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r103339: Fix bug #8047 with require-final-newline in binary image buffers.,
Eli Zaretskii <=