From 52de048389f7c0a49a6a721697af41b4b57c2eea Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 16 Apr 2022 17:35:44 +0200 Subject: [PATCH] Improve exif-field discoverability * lisp/image/exif.el (exif-parse-file, exif-parse-buffer): Link to `exif-field'. --- etc/NEWS | 1 + lisp/image/exif.el | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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 -- 2.39.5