]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't move point in `exif-parse-buffer'
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 16 Feb 2021 23:43:52 +0000 (00:43 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 16 Feb 2021 23:43:52 +0000 (00:43 +0100)
* lisp/image/exif.el (exif-parse-buffer): Don't move point
(bug#46552).

lisp/image/exif.el

index 2dc9419b817dd73514338cb238fa536897417520..c2cf23464080bd074c92e58fe7ae52d74497a8d1 100644 (file)
@@ -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.