emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Samuel Loury <konubinix@gmail.com>
To: OrgMode ML <emacs-orgmode@gnu.org>
Subject: [PATCH] Call `org-expiry-expired-p' correctly
Date: Tue, 04 Oct 2016 10:46:18 +0200	[thread overview]
Message-ID: <871szwzelh.fsf@gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 104 bytes --]

`org-expiry-expired-p' was called with one argument while the definition
of the function accepts none.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-Call-org-expiry-expired-p-correctly.patch --]
[-- Type: text/x-diff, Size: 986 bytes --]

From 4279659e16e65a8a1a1c772a1144a6564c9990f1 Mon Sep 17 00:00:00 2001
From: Konubinix <konubinix@gmail.com>
Date: Tue, 4 Oct 2016 10:38:47 +0200
Subject: [PATCH] Call `org-expiry-expired-p' correctly

* org-expiry.el: Call `org-expiry-expired-p' with the correct number of
  arguments.  It does not accept argument anymore.
---
 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 67dc89e..45f59a2 100644
--- a/contrib/lisp/org-expiry.el
+++ b/contrib/lisp/org-expiry.el
@@ -240,7 +240,7 @@ Otherwise rely on `org-expiry-confirm-flag' to decide."
   (interactive "P")
   (save-excursion
     (when (called-interactively-p) (org-reveal))
-    (when (org-expiry-expired-p 'any)
+    (when (org-expiry-expired-p)
       (org-back-to-heading)
       (looking-at org-complex-heading-regexp)
       (let* ((ov (make-overlay (point) (match-end 0)))
-- 
2.9.3


[-- Attachment #1.3: Type: text/plain, Size: 104 bytes --]

-- 
Konubinix
GPG Key    : 7439106A
Fingerprint: 5993 BE7A DA65 E2D9 06CE  5C36 75D2 3CED 7439 106A

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 454 bytes --]

             reply	other threads:[~2016-10-04  8:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-04  8:46 Samuel Loury [this message]
2016-10-04 10:04 ` [PATCH] Call `org-expiry-expired-p' correctly Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871szwzelh.fsf@gmail.com \
    --to=konubinix@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).