From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Loury Subject: [PATCH] Fix the call to `org-expiry-handler-function' Date: Mon, 19 Sep 2016 08:27:45 +0200 Message-ID: <87fuow2yla.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bls4V-0002FU-3n for emacs-orgmode@gnu.org; Mon, 19 Sep 2016 02:28:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bls4O-0007Xy-Sl for emacs-orgmode@gnu.org; Mon, 19 Sep 2016 02:28:53 -0400 Received: from mail-wm0-f48.google.com ([74.125.82.48]:37255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bls4O-0007Xl-Lm for emacs-orgmode@gnu.org; Mon, 19 Sep 2016 02:28:48 -0400 Received: by mail-wm0-f48.google.com with SMTP id b130so44019299wmc.0 for ; Sun, 18 Sep 2016 23:28:48 -0700 (PDT) Received: from localhost (162.48.7.109.rev.sfr.net. [109.7.48.162]) by smtp.gmail.com with ESMTPSA id gg10sm21359638wjd.4.2016.09.18.23.27.47 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Sep 2016 23:27:47 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: OrgMode ML --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain `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. --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Fix-the-call-to-org-expiry-handler-function.patch Content-Transfer-Encoding: quoted-printable From=208eedc132e7524b78bf435cf41cf303257b4c73dc Mon Sep 17 00:00:00 2001 From: Konubinix Date: Thu, 6 Nov 2014 09:20:22 +0100 Subject: [PATCH 1/2] 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 symb= ol of a function to be called. Therefore, calling (funcall 'org-expiry-handler-function) results in a void function error whi= le (funcall org-expiry-handler-function) correctly calls the contained functio= n. =2D-- contrib/lisp/org-expiry.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/lisp/org-expiry.el b/contrib/lisp/org-expiry.el index cd36d08..67dc89e 100644 =2D-- a/contrib/lisp/org-expiry.el +++ b/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)))) =2D (funcall 'org-expiry-handler-function)) + (funcall org-expiry-handler-function)) (delete-overlay ov))))) =20 (defun org-expiry-process-entries (beg end) =2D-=20 2.9.3 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Konubinix GPG Key : 7439106A Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJX34VhAAoJEHXSPO10ORBqHvoH/0xlbH5n/8AMm7VtaFD8wMH3 NI53UsRlbn5X/Liv22rRVB2GMHF8mKaTr+4+QQ1ifAyr2ssWKFyw8u7nIDdWo4RG aNJc9wnCs+AeGElk48jhdDDCnkyNJeB4JpAncESLNSKc5j1sJE1NmJ7IMKYHrFQ0 l9C9FPlq3CLJR4mFUSbjvlTOCZ55JUYjz1iFwStbjn6Mgs93U+qpGaxcHrGV7UoI 1NLkcJYq/0FhC4oaFcIMZX3LFnfb6Xkzz9M93TV2JcCV0/NcQwvNu115AbnGHRfz L+4srxsDa1SzRo6Sb6yby9aNo2qMNj2DFYJCQofZNuCI2Abfhc7RLtlAeSI+m0U= =nYCk -----END PGP SIGNATURE----- --==-=-=--