From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yPzGCtExYWL4bgAAbAwnHQ (envelope-from ) for ; Thu, 21 Apr 2022 12:28:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wH2PCtExYWJuQgAAauVa8A (envelope-from ) for ; Thu, 21 Apr 2022 12:28:33 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CD9952D227 for ; Thu, 21 Apr 2022 12:28:31 +0200 (CEST) Received: from localhost ([::1]:43038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhU33-0007MR-ST for larch@yhetil.org; Thu, 21 Apr 2022 06:28:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhTSy-0004LL-99 for emacs-orgmode@gnu.org; Thu, 21 Apr 2022 05:51:12 -0400 Received: from mail.m-creations.net ([195.160.197.12]:39892) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhTSw-0004cT-08 for emacs-orgmode@gnu.org; Thu, 21 Apr 2022 05:51:11 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.m-creations.net (Postfix) with ESMTP id D11EA1F47EC for ; Thu, 21 Apr 2022 11:51:00 +0200 (CEST) Received: from mail.m-creations.net ([127.0.0.1]) by localhost (mail.m-creations.int [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id T3bJMZALZnxC; Thu, 21 Apr 2022 11:50:59 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.m-creations.net (Postfix) with ESMTP id 5A4B31F484E; Thu, 21 Apr 2022 11:50:59 +0200 (CEST) X-Virus-Scanned: amavisd-new at mail.m-creations.int Received: from mail.m-creations.net ([127.0.0.1]) by localhost (mail.m-creations.int [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ozUz4cXN5jgN; Thu, 21 Apr 2022 11:50:59 +0200 (CEST) Received: from kd-tux.m-creations.int.m-creations.net (ip5b42b25e.dynamic.kabel-deutschland.de [91.66.178.94]) by mail.m-creations.net (Postfix) with ESMTPSA id 120981F47EC; Thu, 21 Apr 2022 11:50:59 +0200 (CEST) From: Kambiz Darabi To: emacs-orgmode@gnu.org Subject: Small patch for org-refile Date: Thu, 21 Apr 2022 11:50:58 +0200 Message-ID: <87pmlazrwd.fsf@kd-tux.m-creations.int> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: none client-ip=195.160.197.12; envelope-from=darabi@m-creations.net; helo=mail.m-creations.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 21 Apr 2022 06:24:25 -0400 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Kambiz Darabi Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650536912; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=fsFrok6YMsZMphkFf48F0s+mHIjEZgpTuhWXtqAJZ7g=; b=dYNd0dwIWzr4z6FaHK8Y6Xt3+SerOwXNNwVsFBBAMJIM/nsERNAaC0kyue90Rt/oHLyVWa vHKXxdi/Dg7mAc1KuuT86bGprpTPRNOweuPuoIguVmh7fLQyiAH9SuXyAIywJojH5U+TTc WdG8ODEjeYAQv0fb4wGFaIT3hF+seQJ7QsOUQWa8hwD7xS+n4gCUmxnFiC45Ew5vFCbts1 fVx0WapuKl77tRWsgdiPOLWWpUFg03mgjqsp7pGj45ksShk12jxCjhtXLD+TCm/Spchu0q f+tP2tbWEoCeYdSkkWBBT4mBCVn2PNfp/bdT+rHc3WOOnUgHw8P2Fqib49E+gw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650536912; a=rsa-sha256; cv=none; b=iCdE+M8d++PlsvIcg1b7j4/T7gzSgdySwRBhuoz3C+Awvt7m6K0jxXKFvAjwZ5+lszWGF0 5hHi4vRS5gMgDZJ+a8kaDenssiIqg+XyqwhszQFdDqkl2xhWsNvlK3s2V1zgQje/SI1lmq TAav7L5/qqJH4vu1j4H3OeIT8ItYtNdCuH6tK8kvy+AwehUUjk1MkIsA3mLub5bOzoLBsz 4mJmwwCIhLUAbrBVIltZg9pJlup0wRC3dw3pi0q4893eebplFbr7ZDk1qD6B3IZ5H+D1ah PILMzyNLx3a5nV6AQpzJpx2dnAicXvh6CCx6v9A2dlVfZaovS2yfCm2MEeQZQQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.84 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: CD9952D227 X-Spam-Score: -0.84 X-Migadu-Scanner: scn1.migadu.com X-TUID: ksk5fFDK5osr --=-=-= Content-Type: text/plain 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 --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-org-refile-add-when-param-to-obsolete-org-copy.patch Content-Description: org-refile patch >From 9b2ac43338945022418389168835a5cd2cc2adcd Mon Sep 17 00:00:00 2001 From: Kambiz Darabi 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 --=-=-=--