Ensure `org-password-manager` is loaded when loading password by ID

Otherwise, `org-password-manager-default-password-wait-time` may be undefined
during runtime.
This commit is contained in:
Daniel - 2023-08-18 19:20:44 +02:00
parent c085dda842
commit badbb85da0
Signed by: dbo
GPG Key ID: 784AA8DF0CCDF625
1 changed files with 1 additions and 0 deletions

View File

@ -1001,6 +1001,7 @@ cache if that's in use."
The password is assumed to be stored at the PASSWORD property."
(require 'org-password-manager)
(let ((pom (org-id-find id 'marker)))
(unless (markerp pom)
(user-error "Cannot find item with id %s" id))