From: Lars Ingebrigtsen Date: Sat, 16 Apr 2022 15:35:44 +0000 (+0200) Subject: Improve exif-field discoverability X-Git-Tag: emacs-29.0.90~1931^2~511 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=52de048389f7c0a49a6a721697af41b4b57c2eea;p=emacs.git Improve exif-field discoverability * lisp/image/exif.el (exif-parse-file, exif-parse-buffer): Link to `exif-field'. --- diff --git a/etc/NEWS b/etc/NEWS index c177121c808..c66d05eb933 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1114,6 +1114,7 @@ the buffer will take you to that directory. ** Exif +--- *** New function 'exif-field'. This is a convenience function to extract the field data from 'exif-parse-file' and 'exif-parse-buffer'. diff --git a/lisp/image/exif.el b/lisp/image/exif.el index 35666b954ca..fd4673dc1b6 100644 --- a/lisp/image/exif.el +++ b/lisp/image/exif.el @@ -100,7 +100,10 @@ mirrored or not.") "Parse FILE (a JPEG file) and return the Exif data, if any. The return value is a list of Exif items. -If the data is invalid, an `exif-error' is signaled." +If the data is invalid, an `exif-error' is signaled. + +Also see the `exif-field' convenience function to extract data +from the return value of this function." (with-temp-buffer (set-buffer-multibyte nil) (insert-file-contents-literally file) @@ -110,7 +113,10 @@ If the data is invalid, an `exif-error' is signaled." "Parse BUFFER (which should be a JPEG file) and return the Exif data, if any. The return value is a list of Exif items. -If the data is invalid, an `exif-error' is signaled." +If the data is invalid, an `exif-error' is signaled. + +Also see the `exif-field' convenience function to extract data +from the return value of this function." (setq buffer (or buffer (current-buffer))) (with-current-buffer buffer (if enable-multibyte-characters