From 95c5c5d14f7976af7bb7ecf0d98a1150baff3b8c Mon Sep 17 00:00:00 2001 From: Daneel Date: Wed, 25 Feb 2026 09:47:45 +0100 Subject: [PATCH] Fix org-caldav: url-hexify-string lambda must accept optional allowed-chars arg url-encode-url calls url-hexify-string with 2 args. Lambda only accepted 1 causing 'Wrong number of arguments' error. Add &optional allowed-chars. --- config.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.el b/config.el index 73a326d..f699ea4 100644 --- a/config.el +++ b/config.el @@ -1783,8 +1783,8 @@ current frame." "Preserve @ in UID path for Baikal CalDAV compatibility." (cl-letf* ((orig-hexify (symbol-function 'url-hexify-string)) ((symbol-function 'url-hexify-string) - (lambda (str) - (replace-regexp-in-string "%40" "@" (funcall orig-hexify str))))) + (lambda (str &optional allowed-chars) + (replace-regexp-in-string "%40" "@" (funcall orig-hexify str allowed-chars))))) ad-do-it)) ;; Fix #2: Some CalDAV events have nil SUMMARY or missing fields, causing