emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-depend: bug fix
@ 2022-03-25  6:18 Damien Couroussé
  2022-04-30  4:19 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Damien Couroussé @ 2022-03-25  6:18 UTC (permalink / raw)
  To: emacs-orgmode


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

Please find attached a small patch for org-depend, which fixes a bug 
(function 'remove-if' is unknown).

Thank you all for your work around emacs and org-mode!

best regards,
Damien Couroussé

-- 
Damien Couroussé
Research Engineer
Commissariat à l’énergie atomique et aux énergies alternatives
Institut List | Minatec Campus
17 avenue des Martyrs | 38054 Grenoble Cedex | France

Tel : +33 (0)4 38 78 04 66
Web :http://www-list.cea.fr

[-- Attachment #1.2: Type: text/html, Size: 815 bytes --]

[-- Attachment #2: 0001-org-depend.el-function-remove-if-is-renamed-org-remo.patch --]
[-- Type: text/x-patch, Size: 971 bytes --]

From 685dc764fab6bba1008da001eb295a301db16bfd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Damien=20Courouss=C3=A9?= <damien.courousse@cea.fr>
Date: Thu, 24 Mar 2022 15:43:25 +0100
Subject: [PATCH] org-depend.el: function remove-if is renamed org-remove-if

* org-depend.el: Fix bug, due to function 'remove-if' being not found.
  The org API has changed and the function was renamed 'org-remove-if'.

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

diff --git a/lisp/org-depend.el b/lisp/org-depend.el
index 8306184..7dab651 100644
--- a/lisp/org-depend.el
+++ b/lisp/org-depend.el
@@ -287,7 +287,7 @@ This does two different kinds of triggers:
 				 (if no-wrap items-after
 				   (append items-after items-before))))
 			      (t (nreverse items))))
-		  (setq items (remove-if
+		  (setq items (org-remove-if
 			       (lambda (item)
 				 (or (equal (first item) this-item)
 				     (and (not todo-and-done-only)
-- 
2.30.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: org-depend: bug fix
  2022-03-25  6:18 org-depend: bug fix Damien Couroussé
@ 2022-04-30  4:19 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2022-04-30  4:19 UTC (permalink / raw)
  To: Damien Couroussé; +Cc: emacs-orgmode

Damien Couroussé <damien.courousse@cea.fr> writes:

> Please find attached a small patch for org-depend, which fixes a bug 
> (function 'remove-if' is unknown).
> -		  (setq items (remove-if
> +		  (setq items (org-remove-if

org-remove-if is itself obsolete :)
I applied a slightly different change remove-if -> cl-remove-if.

Best,
Ihor


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-30  4:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-25  6:18 org-depend: bug fix Damien Couroussé
2022-04-30  4:19 ` Ihor Radchenko

Code repositories for project(s) associated with this 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).