Procházet zdrojové kódy

org-expiry: Fix the call to `org-expiry-handler-function'

* contrib/lisp/org-expiry.el (org-expiry-process-entry): Fix the call to
`org-expiry-handler-function'.

`org-expiry-handler-function' is meant to be a variable containing the symbol of
a function to be called. Therefore, calling
(funcall 'org-expiry-handler-function) results in a void function error while
(funcall org-expiry-handler-function) correctly calls the contained function.
Konubinix před 10 roky
rodič
revize
4835befde2
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      contrib/lisp/org-expiry.el

+ 1 - 1
contrib/lisp/org-expiry.el

@@ -253,7 +253,7 @@ Otherwise rely on `org-expiry-confirm-flag' to decide."
 		     (not (interactive)))
 		(and org-expiry-confirm-flag
 		     (y-or-n-p (format "Entry expired by %d days.  Process? " d))))
-	  (funcall 'org-expiry-handler-function))
+	  (funcall org-expiry-handler-function))
 	(delete-overlay ov)))))
 
 (defun org-expiry-process-entries (beg end)