From: "Philip K." <philipk@posteo.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 42668@debbugs.gnu.org
Subject: bug#42668: 26.1; Undefined functions when calling invoking project.el
Date: Mon, 03 Aug 2020 00:02:34 +0200 [thread overview]
Message-ID: <87y2mwbtad.fsf@posteo.net> (raw)
In-Reply-To: <834kplceka.fsf@gnu.org> (message from Eli Zaretskii on Sun, 02 Aug 2020 17:23:01 +0300)
[-- Attachment #1: Type: text/plain, Size: 317 bytes --]
> 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.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Replace-assoc-delete-all-with-26.1-compatible-altern.patch --]
[-- Type: text/x-diff, Size: 1405 bytes --]
From 4c073d987273807ff7bfb932d72c584afdad9315 Mon Sep 17 00:00:00 2001
From: Philip K <philipk@posteo.net>
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
next prev parent reply other threads:[~2020-08-02 22:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-02 9:07 bug#42668: 26.1; Undefined functions when calling invoking project.el Philip K.
2020-08-02 14:23 ` Eli Zaretskii
2020-08-02 14:36 ` Philip K.
2020-08-02 22:02 ` Philip K. [this message]
2020-08-02 22:16 ` Dmitry Gutov
2020-08-05 21:00 ` Philip K.
2020-08-06 14:51 ` Dmitry Gutov
2020-08-02 22:06 ` Dmitry Gutov
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y2mwbtad.fsf@posteo.net \
--to=philipk@posteo.net \
--cc=42668@debbugs.gnu.org \
--cc=eliz@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.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).