From: Kambiz Darabi <darabi@m-creations.net>
To: emacs-orgmode@gnu.org
Subject: Small patch for org-refile
Date: Thu, 21 Apr 2022 11:50:58 +0200 [thread overview]
Message-ID: <87pmlazrwd.fsf@kd-tux.m-creations.int> (raw)
[-- Attachment #1: Type: text/plain, Size: 427 bytes --]
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: org-refile patch --]
[-- Type: text/x-diff, Size: 762 bytes --]
From 9b2ac43338945022418389168835a5cd2cc2adcd Mon Sep 17 00:00:00 2001
From: Kambiz Darabi <darabi@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
next reply other threads:[~2022-04-21 10:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-21 9:50 Kambiz Darabi [this message]
2022-04-21 13:55 ` Small patch for org-refile Ihor Radchenko
2022-04-21 14:46 ` Kambiz Darabi
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=87pmlazrwd.fsf@kd-tux.m-creations.int \
--to=darabi@m-creations.net \
--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).