* lisp/image-mode.el (image-mode): Switch disable-point-adjustment
on, otherwise `C-c C-c' will move point around oddly.
(image-toggle-display): Ensure that point is on the image (bug#46552).
(major-mode-suspend)
(setq major-mode 'image-mode)
(setq image-transform-resize image-auto-resize)
+ (setq-local disable-point-adjustment t)
;; Bail out early if we have no image data.
(if (zerop (buffer-size))
call `image-mode-as-text' to switch to text or hex display.
Otherwise, display the image by calling `image-mode'."
(interactive)
+ (goto-char (point-min))
(if (image-get-display-property)
(image-mode-as-text)
(if (eq major-mode 'hexl-mode)