bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#8047: 23.2.94; Auto image mode breaks C-x C-w


From: Stefan Monnier
Subject: bug#8047: 23.2.94; Auto image mode breaks C-x C-w
Date: Wed, 16 Feb 2011 15:58:55 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> --- lisp/image-mode.el~       2011-02-15 21:32:39.565125000 +0200
> +++ lisp/image-mode.el        2011-02-16 21:55:04.190125000 +0200
> @@ -507,6 +507,9 @@ (defun image-toggle-display-image ()
>      ;; 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.
> +    (setq find-file-literally t)
>      ;; Allow navigation of large images
>      (set (make-local-variable 'auto-hscroll-mode) nil)
>      (setq image-type type)

Is this really as safe as it seems?  I mean, what happens when you visit
an XPM, PS, or SVG file encoded in utf-8?


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]