summaryrefslogtreecommitdiff
path: root/lisp/image-mode.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2021-02-19 08:36:56 -0800
committerGlenn Morris <rgm@gnu.org>2021-02-19 08:36:56 -0800
commit1d50050af7f6cde7283d29cd79526bf1cd4a73ae (patch)
treee010861d80fe684c74141bdd9fc10f93c552fe0b /lisp/image-mode.el
parent51d056b14136c3d479ccf949dafa0f3602e7ee2f (diff)
parent8e8b46ef818a5f94a9697dce1c49c6869d61deed (diff)
downloademacs-1d50050af7f6cde7283d29cd79526bf1cd4a73ae.tar.gz
Merge from origin/emacs-27
8e8b46ef81 (origin/emacs-27) More accurate documentation of the "r" i... dcb2015a5b Mention the GNU Kind Communications Guidelines in the FAQ 9882e63eea ; * CONTRIBUTE: Another wording change regarding tiny chan... 850f18ef23 Allow newlines in password prompts again in comint c977370dd7 Avoid point movement when visiting image files da64a257a4 ; * CONTRIBUTE: Yet another clarification of significant c... d03f2a6ee9 Avoid assertion violation in callproc.c dcc00bbb19 ; * CONTRIBUTE: Clarify the "15-lines" rule a bit more.
Diffstat (limited to 'lisp/image-mode.el')
-rw-r--r--lisp/image-mode.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/image-mode.el b/lisp/image-mode.el
index ec0a559c8db..7384abf3b23 100644
--- a/lisp/image-mode.el
+++ b/lisp/image-mode.el
@@ -858,7 +858,9 @@ was inserted."
(setq image-transform-rotation
(or (exif-orientation
(ignore-error exif-error
- (exif-parse-buffer)))
+ ;; exif-parse-buffer can move point, so preserve it.
+ (save-excursion
+ (exif-parse-buffer))))
0.0)))
;; Swap width and height when changing orientation
;; between portrait and landscape.