[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 52de048389: Improve exif-field discoverability
From: |
Lars Ingebrigtsen |
Subject: |
master 52de048389: Improve exif-field discoverability |
Date: |
Sat, 16 Apr 2022 11:35:57 -0400 (EDT) |
branch: master
commit 52de048389f7c0a49a6a721697af41b4b57c2eea
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
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 c177121c80..c66d05eb93 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 35666b954c..fd4673dc1b 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 52de048389: Improve exif-field discoverability,
Lars Ingebrigtsen <=