Hello,

I recently switched to Emacs 28 and stumpled upon a call in org-refile to
define-obsolete-function-alias which doesn't have the 'when' parameter.
As Emacs 28 has made the 'when' parameter mandatory, this is a problem
for me.

Attached is a tiny patch against the git repo which I cloned today which
resolves the problem.

Thanks for your great work


Kambiz

PS: please keep me in Cc as I'm not subscribed to the list

>From 9b2ac43338945022418389168835a5cd2cc2adcd Mon Sep 17 00:00:00 2001
From: Kambiz Darabi <dar...@m-creations.net>
Date: Thu, 21 Apr 2022 10:29:13 +0200
Subject: [PATCH] org-refile: add 'when' param to obsolete org-copy

---
 lisp/org-refile.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-refile.el b/lisp/org-refile.el
index a8a2ef2a6..ee19788fc 100644
--- a/lisp/org-refile.el
+++ b/lisp/org-refile.el
@@ -373,7 +373,7 @@ the *old* location.")
 (defvar org-refile-keep nil
   "Non-nil means `org-refile' will copy instead of refile.")
 
-(define-obsolete-function-alias 'org-copy 'org-refile-copy)
+(define-obsolete-function-alias 'org-copy 'org-refile-copy "Org 9.4")
 
 ;;;###autoload
 (defun org-refile-copy ()
-- 
2.25.1

Reply via email to