"Display using External Viewer" produces corrupt file under emacs 23
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
VM |
Fix Released
|
Low
|
Uday Reddy |
Bug Description
The "Display using External Viewer" menu option isn't working under
Emacs-23. The file produced is corrupted and typically is slightly
smaller than it should be. This is with vm 7.19. With emacs 22.1
this problem doesn't happen.
The "Save to File" does work, however.
I found that by removing the call to set-buffer-
vm-mime-
% diff -c vm-mime.el.orig vm-mime.el
*** vm-mime.el.orig Tue Dec 1 11:07:31 2009
--- vm-mime.el Thu Dec 10 10:12:31 2009
***************
*** 1967,1973 ****
! (set-buffer-
(setq start (point))
--- 1967,1973 ----
! ;; (set-buffer-
(setq start (point))
%
Examples of using the "Save to File"
-rw------- 1 sharman gx5000 3310 Dec 10 10:13 test.gif
-rw------- 1 sharman gx5000 3424 Dec 10 10:13 test.jpeg
sharmanpc 19%
whearas when using "Display using External Viewer" the temporary file
was a different size
-rw------- 1 sharman gx5000 3302 Dec 10 10:12 test.gif
-rw------- 1 sharman gx5000 3420 Dec 10 10:12 test.jpeg
tags: | added: mime |
Changed in vm: | |
assignee: | nobody → Uday Reddy (reddyuday) |
status: | New → Confirmed |
importance: | Undecided → High |
tags: | added: emacs23 |
tags: | removed: mime |
Changed in vm: | |
milestone: | 8.1.0b → 8.1.0 |
Richard, thanks for reporting this. I believe the problem exists with the current version of VM as well. So this report is valuable. However, the specific line that you identified as the cause isn't in the current version. So, we will have to hunt it down. There are a few other occurrences of set-buffer- multibyte in vm-mime.el. We will have to check all of them, I suppose.
The test.jpg file that you attached is presumably the image that was attached in the message?
Cheers,
Uday