From: Lars Ingebrigtsen Date: Tue, 16 Feb 2021 16:42:24 +0000 (+0100) Subject: Revert "Fix problem of point movement in image-mode" X-Git-Tag: emacs-28.0.90~3701 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=76220fc3fc8b109d53676c1771fa1f05f3706ac7;p=emacs.git Revert "Fix problem of point movement in image-mode" This reverts commit 7c7377288a125ef47f2b422cf131f044a3b418e1. This is fixed differently in Emacs 27. --- diff --git a/lisp/image-mode.el b/lisp/image-mode.el index 28b75c8113a..ec0a559c8db 100644 --- a/lisp/image-mode.el +++ b/lisp/image-mode.el @@ -611,7 +611,6 @@ Key bindings: (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)) @@ -932,7 +931,6 @@ If the current buffer is displaying an image file as an image, 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)