From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Philip K." Newsgroups: gmane.emacs.bugs Subject: bug#42668: 26.1; Undefined functions when calling invoking project.el Date: Mon, 03 Aug 2020 00:02:34 +0200 Message-ID: <87y2mwbtad.fsf@posteo.net> References: <87r1spfmb4.fsf@bulbul> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21335"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 42668@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 03 00:03:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k2M4W-0005TN-Iu for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Aug 2020 00:03:12 +0200 Original-Received: from localhost ([::1]:53220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k2M4V-0002v2-Lp for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Aug 2020 18:03:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k2M4M-0002uu-6h for bug-gnu-emacs@gnu.org; Sun, 02 Aug 2020 18:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60332) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k2M4L-00038o-UM for bug-gnu-emacs@gnu.org; Sun, 02 Aug 2020 18:03:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k2M4L-0004pk-Q4 for bug-gnu-emacs@gnu.org; Sun, 02 Aug 2020 18:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Philip K." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Aug 2020 22:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42668 X-GNU-PR-Package: emacs Original-Received: via spool by 42668-submit@debbugs.gnu.org id=B42668.159640576518554 (code B ref 42668); Sun, 02 Aug 2020 22:03:01 +0000 Original-Received: (at 42668) by debbugs.gnu.org; 2 Aug 2020 22:02:45 +0000 Original-Received: from localhost ([127.0.0.1]:43645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2M45-0004pC-LN for submit@debbugs.gnu.org; Sun, 02 Aug 2020 18:02:45 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:36589) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2M43-0004ow-Bc for 42668@debbugs.gnu.org; Sun, 02 Aug 2020 18:02:45 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id C6A40160061 for <42668@debbugs.gnu.org>; Mon, 3 Aug 2020 00:02:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1596405756; bh=uH2ZWFJwcrz8lbcMjzwBXyNW0H1x7ekZaxRUX5DU0as=; h=From:To:Cc:Subject:Date:From; b=X40JYv8A/9KiyymYjOznLIKlPosm9VbgBnJac4TfyAd0uweBc98YIHpUyVTHtCFB2 u2r+IwE32ndHSWb2Jz2Y2kFdJG0JG3H/jVFTpE7uyKN0/YN78ktkrcUS8Hxgv3qL/c GVJF4+a8Jwa6PcRSt02S/HOKXSADuSe/fpV3k88BGXTvIwF2uYq+8km03rljr3E9YT kkdJIQ16CCsFOBd9EIDqEvDCXLytyTbkg7z3r9L/RMITH3NAtsg/CJhjBwzBNBjL9I SkkRsXYBe0DojDAwOZqzKvffJfnk1PxZhK4QtNit2Y6B7SK08EDe82E/SMn/pXw4D4 zO4olEzMTbKYg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BKZkg4YGxz6tmW; Mon, 3 Aug 2020 00:02:35 +0200 (CEST) In-Reply-To: <834kplceka.fsf@gnu.org> (message from Eli Zaretskii on Sun, 02 Aug 2020 17:23:01 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:183893 Archived-At: --=-=-= Content-Type: text/plain > To make sure I understand the report: you are using project.el from > GNU ELPA in conjunction with Emacs 26? I see that seq has been added as a dependency in the git repository (that appears to not have been released to ELPA yet). The patch attached below should fix the assoc-delete-all issue. -- Philip K. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Replace-assoc-delete-all-with-26.1-compatible-altern.patch >From 4c073d987273807ff7bfb932d72c584afdad9315 Mon Sep 17 00:00:00 2001 From: Philip K Date: Sun, 2 Aug 2020 23:59:40 +0200 Subject: [PATCH] Replace assoc-delete-all with 26.1 compatible alternatives --- lisp/progmodes/project.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 51b9347bb9..06864ccf60 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -1166,7 +1166,9 @@ project-remember-project (project--ensure-read-project-list) (let ((dir (project-root pr))) (unless (equal (caar project--list) dir) - (setq project--list (assoc-delete-all dir project--list)) + (dolist (elem project--list) + (when (equal dir (car elem)) + (setq project--list (delq elem project--list)))) (push (list dir) project--list) (project--write-project-list)))) @@ -1176,8 +1178,8 @@ project--remove-from-project-list result in `project-list-file'. Announce the project's removal from the list." (project--ensure-read-project-list) - (when (assoc pr-dir project--list) - (setq project--list (assoc-delete-all pr-dir project--list)) + (when-let ((ent (assoc pr-dir project--list))) + (delq ent project--list) (message "Project `%s' not found; removed from list" pr-dir) (project--write-project-list))) -- 2.20.1 --=-=-=--