From 64ef8ff74d3f111d2d71a22c2326fa4c974182ba Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Wed, 17 Feb 2021 00:43:52 +0100 Subject: [PATCH] Don't move point in `exif-parse-buffer' * lisp/image/exif.el (exif-parse-buffer): Don't move point (bug#46552). --- lisp/image/exif.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/image/exif.el b/lisp/image/exif.el index 2dc9419b817..c2cf2346408 100644 --- a/lisp/image/exif.el +++ b/lisp/image/exif.el @@ -118,8 +118,9 @@ If the data is invalid, an `exif-error' is signaled." dest)) (when-let ((app1 (cdr (assq #xffe1 (exif--parse-jpeg))))) (exif--parse-exif-chunk app1)))) - (when-let ((app1 (cdr (assq #xffe1 (exif--parse-jpeg))))) - (exif--parse-exif-chunk app1))))) + (save-excursion + (when-let ((app1 (cdr (assq #xffe1 (exif--parse-jpeg))))) + (exif--parse-exif-chunk app1)))))) (defun exif-orientation (exif) "Return the orientation (in degrees) in EXIF. -- 2.39.2