From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] org-drill.el: Fix void function error Date: Sun, 07 Apr 2019 08:59:44 +0200 Message-ID: <874l7a7127.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:52277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hD1mR-0003qG-CD for emacs-orgmode@gnu.org; Sun, 07 Apr 2019 02:59:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hD1mQ-0006Cp-Ff for emacs-orgmode@gnu.org; Sun, 07 Apr 2019 02:59:51 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:57889) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hD1mQ-0006Ah-6I for emacs-orgmode@gnu.org; Sun, 07 Apr 2019 02:59:50 -0400 In-Reply-To: (alexander haeckel's message of "Sat, 16 Mar 2019 12:38:21 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: alexander.haeckel@web.de Cc: emacs-orgmode@gnu.org Hello, alexander.haeckel@web.de writes: > * org-drill.el (org-drill--compute-cloze-keywords, org-drill-cloze-regexp) Use > real function name cl-copy-list instead of alias copy-list, because of void > function error at org startup in emacs 26.1 for org-plus-contrib package. > --- > contrib/lisp/org-drill.el | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/contrib/lisp/org-drill.el b/contrib/lisp/org-drill.el > index 1c11515..36b5bb4 100644 > --- a/contrib/lisp/org-drill.el > +++ b/contrib/lisp/org-drill.el > @@ -241,9 +241,9 @@ the hidden cloze during a test.") > > (defun org-drill--compute-cloze-keywords () > (list (list (org-drill--compute-cloze-regexp) > - (copy-list '(1 'org-drill-visible-cloze-face nil)) > - (copy-list '(2 'org-drill-visible-cloze-hint-face t)) > - (copy-list '(3 'org-drill-visible-cloze-face nil)) > + (cl-copy-list '(1 'org-drill-visible-cloze-face nil)) > + (cl-copy-list '(2 'org-drill-visible-cloze-hint-face t)) > + (cl-copy-list '(3 'org-drill-visible-cloze-face nil)) > ))) > > (defvar-local org-drill-cloze-regexp > @@ -1011,7 +1011,7 @@ in the matrix." > (learn-str > (let ((learn-data (or (and learn-str > (read learn-str)) > - (copy-list initial-repetition-state)))) > + (cl-copy-list initial-repetition-state)))) > (list (nth 0 learn-data) ; last interval > (nth 1 learn-data) ; repetitions > (org-drill-entry-failure-count) Thank you. I ended up applying a slightly different patch, though. Regards, -- Nicolas Goaziou