|
@@ -358,15 +358,14 @@ FORMAT and ARGS are passed to `message'."
|
|
|
"Bind container and associated from COLLECTION and execute BODY."
|
|
"Bind container and associated from COLLECTION and execute BODY."
|
|
|
(declare (debug (form body)) (indent 1))
|
|
(declare (debug (form body)) (indent 1))
|
|
|
`(with-no-warnings
|
|
`(with-no-warnings
|
|
|
- ;; FIXME: We only need to suppress warnings about unused
|
|
|
|
|
- ;; let-bindings. However, it is unclear how to achieve it with
|
|
|
|
|
- ;; `with-suppressed-warnings'.
|
|
|
|
|
(let* ((container (plist-get ,collection :container))
|
|
(let* ((container (plist-get ,collection :container))
|
|
|
(associated (plist-get ,collection :associated))
|
|
(associated (plist-get ,collection :associated))
|
|
|
(path (plist-get associated :file))
|
|
(path (plist-get associated :file))
|
|
|
(inode (plist-get associated :inode))
|
|
(inode (plist-get associated :inode))
|
|
|
(hash (plist-get associated :hash))
|
|
(hash (plist-get associated :hash))
|
|
|
(key (plist-get associated :key)))
|
|
(key (plist-get associated :key)))
|
|
|
|
|
+ ;; Suppress "unused variable" warnings.
|
|
|
|
|
+ (ignore container associated path inode hash key)
|
|
|
,@body)))
|
|
,@body)))
|
|
|
|
|
|
|
|
(defun org-persist--find-index (collection)
|
|
(defun org-persist--find-index (collection)
|