From unknown Thu Aug 14 18:40:28 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#42668 <42668@debbugs.gnu.org> To: bug#42668 <42668@debbugs.gnu.org> Subject: Status: 26.1; Undefined functions when calling invoking project.el Reply-To: bug#42668 <42668@debbugs.gnu.org> Date: Fri, 15 Aug 2025 01:40:28 +0000 retitle 42668 26.1; Undefined functions when calling invoking project.el reassign 42668 emacs submitter 42668 philipk@posteo.net (Philip K.) severity 42668 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 02 05:07:39 2020 Received: (at submit) by debbugs.gnu.org; 2 Aug 2020 09:07:39 +0000 Received: from localhost ([127.0.0.1]:41691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k29xy-0003BV-RL for submit@debbugs.gnu.org; Sun, 02 Aug 2020 05:07:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:42714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k29xv-0003BN-PU for submit@debbugs.gnu.org; Sun, 02 Aug 2020 05:07:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k29xv-000435-46 for bug-gnu-emacs@gnu.org; Sun, 02 Aug 2020 05:07:35 -0400 Received: from mout01.posteo.de ([185.67.36.65]:56326) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k29xs-0003Sj-1Q for bug-gnu-emacs@gnu.org; Sun, 02 Aug 2020 05:07:34 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 8805616005F for ; Sun, 2 Aug 2020 11:07:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1596359248; bh=9d2QrXQa2w0o01ft25e/EpxJ9Hg0cF+WS8rmUGnC8qU=; h=From:To:Subject:Date:From; b=WUl0T7Q8d/g09tUZU2c3NuQgaDOe0cBKRWhhZ4QT2Sndf8RCS/QiZnup+t9iXFfHa +xvP7TubNmToexdPjnwaFxxNo1lGSXl/7jOrc2brXtsUkTdDBEThitjpBnQkLNNwQy JHAcjfQ4m3jOXgI9OlrSl0OF5wh0KqdbFA4mtilW5K2MWT7bxgnjs0OQ0FzCBVOtQs dQ+mLXefDCRr8yT80Q0wY9PRNNKKlKYDq1M/BQARp4UdBOMcN8kgR0s+9RPuAQlSKy B2gh6SUO5/PY5abzGaMvGY6hl7c67yZ4/XHCTFRhE2bCvy9dB5+sI0q5yoV8B95Ko1 L7xWhgLwLhAaA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BKFXJ03qWz6tmM for ; Sun, 2 Aug 2020 11:07:27 +0200 (CEST) From: philipk@posteo.net (Philip K.) To: bug-gnu-emacs@gnu.org Subject: 26.1; Undefined functions when calling invoking project.el Date: Sun, 02 Aug 2020 11:07:27 +0200 Message-ID: <87r1spfmb4.fsf@bulbul> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/02 05:07:28 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) When trying to to use some project.el commands, and noticed that there are a (at least) two undefined functions right after loading project.el in a vanilla session: - The first complaint is seq-every-p, used by project--read-project-list, but this is "easily" solved by loading seq.el. - The more critical complaint is that assoc-delete-all, used by=20 project--add-to-project-list-front and project--remove-from-project-list are not loaded or defined in Emacs 26. My guess is that this function should be replaced by it's functionally equivalent code, that only uses functions available in Emacs 26? =20=20 In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2019-09-23, modified by Debian built on x86-grnet-01 Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux 10 (buster) Recent messages: Type C-x 1 to delete the help window. custom-initialize-reset: Symbol=E2=80=99s function definition is void: asso= c-delete-all Saving file /home/phi/.emacs.d/elpa/project-0.5.0/project.el... Wrote /home/phi/.emacs.d/elpa/project-0.5.0/project.el Quit Entering debugger... Mark set Back to top level Entering debugger... Back to top level Configured using: 'configure --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --enable-libsystemd --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:= /usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share= /emacs/site-lisp --with-sound=3Dalsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --enable-libsystemd --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:= /usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share= /emacs/site-lisp --with-sound=3Dalsa --without-gconf --with-mailutils --with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-toolkit-scroll-bars 'CFLAGS=3D-g -O2 -fdebug-prefix-map=3D/build/emacs-StqULU/emacs-26.1+1=3D. -fstack-protecto= r-strong -Wformat -Werror=3Dformat-security -Wall' 'CPPFLAGS=3D-Wdate-time -D_FORTIFY_SOURCE=3D2' LDFLAGS=3D-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: shell-dirtrack-mode: t diff-auto-refine-mode: t paredit-mode: t ivy-mode: t display-time-mode: t electric-pair-mode: t recentf-mode: t save-place-mode: t savehist-mode: t show-paren-mode: t winner-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /home/phi/.emacs.d/elpa/project-0.5.0/project hides /usr/share/emacs/26.1/l= isp/progmodes/project /home/phi/.emacs.d/elpa/flymake-1.0.9/flymake hides /usr/share/emacs/26.1/l= isp/progmodes/flymake /home/phi/.emacs.d/elpa/let-alist-1.0.6/let-alist hides /usr/share/emacs/26= .1/lisp/emacs-lisp/let-alist Features: (shadow emacsbug eieio-opt speedbar sb-image ezimage dframe xref find-func cl-print debug swiper bug-reference bookmark map vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc vc-dispatcher project subr-x help-fns radix-tree char-fold network-stream starttls url-http tls gnutls url-gw nsm url-cache url-auth eww mm-url url-queue url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap shr svg xml dom browse-url nnmail gnus-int gnus-range mail-source sort ffap tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete parse-time advice misearch multi-isearch flyspell ispell mail-extr cl-extra help-mode vc-git diff-mode easy-mmode time-stamp qp vc-fossil rmailmm message rmc puny rfc822 mml mml-sec epa derived epg mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231 paredit init ivy delsel colir color ivy-overlay edmacro kmacro rx pcase dired-x dired dired-loaddefs holidays hol-loaddefs cal-menu calendar cal-loaddefs erc-goodies erc thingatpt pp erc-backend erc-compat format-spec gnus nnheader gnus-util time sendmail rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils compile hippie-exp comint ansi-color elec-pair recentf tree-widget saveplace savehist paren winner ring cus-edit cus-start cus-load wid-edit tex-site finder-inf slime-autoloads info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib devhelp time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 465615 101116) (symbols 48 38230 1) (miscs 40 693 3645) (strings 32 115237 17474) (string-bytes 1 3036144) (vectors 16 57732) (vector-slots 8 1037505 74204) (floats 8 304 1052) (intervals 56 6627 2315) (buffers 992 27)) --=20 Philip K. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 02 10:23:24 2020 Received: (at 42668) by debbugs.gnu.org; 2 Aug 2020 14:23:24 +0000 Received: from localhost ([127.0.0.1]:43086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2EtY-0007Zk-98 for submit@debbugs.gnu.org; Sun, 02 Aug 2020 10:23:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2EtV-0007ZU-Ux for 42668@debbugs.gnu.org; Sun, 02 Aug 2020 10:23:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50917) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k2EtQ-0004DR-K2; Sun, 02 Aug 2020 10:23:16 -0400 Received: from [176.228.60.248] (port=1429 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k2EtP-0008V0-QT; Sun, 02 Aug 2020 10:23:16 -0400 Date: Sun, 02 Aug 2020 17:23:01 +0300 Message-Id: <834kplceka.fsf@gnu.org> From: Eli Zaretskii To: philipk@posteo.net (Philip K.) In-Reply-To: <87r1spfmb4.fsf@bulbul> (philipk@posteo.net) Subject: Re: bug#42668: 26.1; Undefined functions when calling invoking project.el References: <87r1spfmb4.fsf@bulbul> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 42668 Cc: 42668@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: philipk@posteo.net (Philip K.) > Date: Sun, 02 Aug 2020 11:07:27 +0200 > > > When trying to to use some project.el commands, and noticed that there > are a (at least) two undefined functions right after loading project.el > in a vanilla session: > > - The first complaint is seq-every-p, used by > project--read-project-list, but this is "easily" solved by loading > seq.el. > - The more critical complaint is that assoc-delete-all, used by > project--add-to-project-list-front and > project--remove-from-project-list are not loaded or defined in Emacs > 26. > My guess is that this function should be replaced by it's functionally > equivalent code, that only uses functions available in Emacs 26? To make sure I understand the report: you are using project.el from GNU ELPA in conjunction with Emacs 26? From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 02 10:36:33 2020 Received: (at 42668) by debbugs.gnu.org; 2 Aug 2020 14:36:34 +0000 Received: from localhost ([127.0.0.1]:43113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2F6H-0007wB-M3 for submit@debbugs.gnu.org; Sun, 02 Aug 2020 10:36:33 -0400 Received: from mout02.posteo.de ([185.67.36.66]:41423) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2F6F-0007vp-Eh for 42668@debbugs.gnu.org; Sun, 02 Aug 2020 10:36:32 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id CC7202400FC for <42668@debbugs.gnu.org>; Sun, 2 Aug 2020 16:36:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1596378984; bh=GtnnJdvH606iHbKQjlyFr9rYaHK8bP06iuZG6UAElO8=; h=From:To:Cc:Subject:Date:From; b=Ypi6S4FysA2LSMx+RMVe6GsmRVOfkAvyvrxjt79jHjunT3lL1B1aNoLaHTJwc+O6P g0ib79H57ZlFQni9ptPHY5r/QsS41fwyCqmObV5hTBH4E0sRFQANGK2AGW3cPpGrcf ed8zdIIV53/iKWBt+T1TBJuL5fEtAVD+1niMzHhqPFoY6m1uHZk9YRVKCavIdF1uN4 UhC1lOH7khR31dDflNN0X87fvqfpaSWTJZG3rYefP3UbMHEW9Cz0ZoSAmsQIdciiNy K0npA1/M90Q3dAmSLagUYK8Jh8tI849fre7vPg3SyaeBTsqJa1BX+/a5kvt9DNWD7t W6BLNtM7bu9RQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BKNqr2V2vz6tmM; Sun, 2 Aug 2020 16:36:24 +0200 (CEST) From: "Philip K." To: Eli Zaretskii Subject: Re: bug#42668: 26.1; Undefined functions when calling invoking project.el In-Reply-To: <834kplceka.fsf@gnu.org> (message from Eli Zaretskii on Sun, 02 Aug 2020 17:23:01 +0300) Date: Sun, 02 Aug 2020 16:36:23 +0200 Message-ID: <874kplcdy0.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 42668 Cc: 42668@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: >> From: philipk@posteo.net (Philip K.) >> Date: Sun, 02 Aug 2020 11:07:27 +0200 >> >> >> When trying to to use some project.el commands, and noticed that there >> are a (at least) two undefined functions right after loading project.el >> in a vanilla session: >> >> - The first complaint is seq-every-p, used by >> project--read-project-list, but this is "easily" solved by loading >> seq.el. >> - The more critical complaint is that assoc-delete-all, used by >> project--add-to-project-list-front and >> project--remove-from-project-list are not loaded or defined in Emacs >> 26. >> My guess is that this function should be replaced by it's functionally >> equivalent code, that only uses functions available in Emacs 26? > > To make sure I understand the report: you are using project.el from > GNU ELPA in conjunction with Emacs 26? Yes, I open Emacs 26, and load ~/.emacs.d/elpa/project-0.5.0/project.el. -- Philip K. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 02 18:02:45 2020 Received: (at 42668) by debbugs.gnu.org; 2 Aug 2020 22:02:45 +0000 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 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 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== 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) From: "Philip K." To: Eli Zaretskii Subject: Re: bug#42668: 26.1; Undefined functions when calling invoking project.el In-Reply-To: <834kplceka.fsf@gnu.org> (message from Eli Zaretskii on Sun, 02 Aug 2020 17:23:01 +0300) Date: Mon, 03 Aug 2020 00:02:34 +0200 Message-ID: <87y2mwbtad.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 42668 Cc: 42668@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= 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 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 02 18:06:48 2020 Received: (at 42668) by debbugs.gnu.org; 2 Aug 2020 22:06:48 +0000 Received: from localhost ([127.0.0.1]:43649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2M80-0004vB-61 for submit@debbugs.gnu.org; Sun, 02 Aug 2020 18:06:48 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:45736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2M7w-0004uw-Pj for 42668@debbugs.gnu.org; Sun, 02 Aug 2020 18:06:46 -0400 Received: by mail-wr1-f53.google.com with SMTP id z18so28894541wrm.12 for <42668@debbugs.gnu.org>; Sun, 02 Aug 2020 15:06:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=XD4Kzgc06GNPf9EWLiyH0lxCtduW+wSAS/wKM+LkBKE=; b=lOYCsUf3bXh6F6Fvs1zbifuXiyqyejTYe4cufKAPyxJ3/KSDvJ4KnfDHgp+Fdg8B2K /YsPr0fB8PrwpxG4K1mS4lVo1eqxypL8wxD9SBcDBOydn6jj3bn1Oxn1+JCnQRCKNRue z5mhZthZr4F4GGjV3sipXfkHGSoSR/nnrOH8Razb4/eY1QR3ZepO7ebt40aW6sMqS7K6 h3Bb9CzHG5SV+b6cp1Ie0LtTA/M4XD9zM1KkPWg30DuiChAsU3ZRFD6m2APBQr4eCcUp eL5I9J/FcoW2VoSuWVUd9N2zhehRurqlI12iD05gMtSHRSwPPb8cX8Kc1WWzwn9J/qvP is8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=XD4Kzgc06GNPf9EWLiyH0lxCtduW+wSAS/wKM+LkBKE=; b=MKNs7QmjFmAj80V0ewV59t+G8qgPjtXG0LWGfXmH7IcIQ0w6A2kTOh8pTvVTcw6Aru KgDJ/zSq/K1xe4g/K+tlJ9aBKB6Y49DmUqxYNHnv4wBN/rufd17c5GqFNU1U/JkpCOIr CFAjp/ad0CGTo6n/p11piMD44nQgrkmurHSe1fg02srVJkq4XgZJOhuOW5exDMkcrlTl K7t3ywDSvR5enpYwJbQdGH5QjhZCjGhQDSJirINdSHKb4VFYkBVIf1LBEOJA9njrcW3L uWaCwv19Esp/FegBP2EtragYRTtuoLiuzhBQ2u16EsusRAqJNe82uqSHzcyHdIGCCCFB eDmg== X-Gm-Message-State: AOAM530CSbloesGD0qSR2nHM9fAZt6QtQTjVjZzzHohRE4hxUCOgitID mfpmSKl+BrTFdzs+w1SFqd2W9YQU X-Google-Smtp-Source: ABdhPJzTTyZXadpRTGFCoo23DkoszXYApuRMXDVaWyQsTdeEAIF4Om5PAUnBPrCQ2Cv7+DXtytah2w== X-Received: by 2002:adf:9561:: with SMTP id 88mr11983718wrs.240.1596405998506; Sun, 02 Aug 2020 15:06:38 -0700 (PDT) Received: from [192.168.0.3] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id h13sm21287168wrx.17.2020.08.02.15.06.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 02 Aug 2020 15:06:37 -0700 (PDT) Subject: Re: bug#42668: 26.1; Undefined functions when calling invoking project.el To: "Philip K." , 42668@debbugs.gnu.org References: <87r1spfmb4.fsf@bulbul> From: Dmitry Gutov Message-ID: <959ad36f-7548-9473-28bf-76b1a3b67571@yandex.ru> Date: Mon, 3 Aug 2020 01:06:36 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87r1spfmb4.fsf@bulbul> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 42668 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.5 (--) Hi Philip, On 02.08.2020 12:07, Philip K. wrote: > > When trying to to use some project.el commands, and noticed that there > are a (at least) two undefined functions right after loading project.el > in a vanilla session: Thank you for testing that. > - The first complaint is seq-every-p, used by > project--read-project-list, but this is "easily" solved by loading > seq.el. That is already fixed on master, should be in the next project.el release. > - The more critical complaint is that assoc-delete-all, used by > project--add-to-project-list-front and > project--remove-from-project-list are not loaded or defined in Emacs > 26. > My guess is that this function should be replaced by it's functionally > equivalent code, that only uses functions available in Emacs 26? seq-remove, cl-delete-if (or even cl-delete with :key) seem like the prime candidates. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 02 18:17:04 2020 Received: (at 42668) by debbugs.gnu.org; 2 Aug 2020 22:17:04 +0000 Received: from localhost ([127.0.0.1]:43660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2MHw-0005BQ-Af for submit@debbugs.gnu.org; Sun, 02 Aug 2020 18:17:04 -0400 Received: from mail-wr1-f48.google.com ([209.85.221.48]:41509) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2MHu-0005Ap-MZ for 42668@debbugs.gnu.org; Sun, 02 Aug 2020 18:17:03 -0400 Received: by mail-wr1-f48.google.com with SMTP id r2so27387479wrs.8 for <42668@debbugs.gnu.org>; Sun, 02 Aug 2020 15:17:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=F/HgP1G084gt1rsxyAzqpaCYA+fO2DO5idpP/05u9iM=; b=JJwPdM4SKVHR0eD2ixiZQwHwW11/cbGqBVFz4r8tYrwYPNWOEk+m/42uF/oHKXHWNV q53ztL7/co88bEMzi5r9UCjNylV86z78IMnNoEVcc4XOMzp8taiROfN6kEkzErBCpZM4 qX/6fDwx3BzVGsG4sGsAPIk2f/woaTT28JzuLle6QXprLIxXq9F8tv3ynkU713egFMjO AeC32V01QUBmKEtwq/Ct7qCuqjcpIzBiN6vsX1baX7FTGpD1RKv98pF2b36GNqwPejjs Pu0dMza7m9LOilF3EZd2+pRyGK3NE1FgcRi8ODpEzpleW+pznncMyb326VpgNl0i/XSl TgTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=F/HgP1G084gt1rsxyAzqpaCYA+fO2DO5idpP/05u9iM=; b=psM9QH9W5o/GbHJyySzMKklqIU5uEfKOInWCQ0cw3V/aWjh2tTMuJQeXypTns69A6T HqhmSXh6uAK4pUn7Bfdrn98St0FhHDnQWj+QVNRQRiieHm4DcUegjtCBJ34b93pSyF0h +i1F8NKTPvGasgq6EIMkcDKKwy7ojlMl5ckXyYbaXQrLZMXpBw6bpL42Y/cwKRv6vuRp F6bFQSmgdi1xNgDNpj8Edh00HJuk8n3xu1da9m4tPpMtQ4pyfK4ssPsv0W90kQQaFtVP arPgU/DnrsfXJDP/+bjU0+AGoQw0oWEElR1DboyMiQ/3CnfCoxMgW9j6MTq66yiysY4x T6sA== X-Gm-Message-State: AOAM533hQ2of5VfHU9kkYJl2aMGzrB4AvGsmDqiM5HAklPKYNpzX4UPF jw10+5KNNdI+KeZuYwU5azO5d7hm X-Google-Smtp-Source: ABdhPJwA5IFLaMCvd0QHgjgIqbVCAsVsuBW0fcy2G82rTqqGAxEGyR4fOZ8fMvLVkrKneVNY/pGTtw== X-Received: by 2002:a5d:42c2:: with SMTP id t2mr12335491wrr.396.1596406616338; Sun, 02 Aug 2020 15:16:56 -0700 (PDT) Received: from [192.168.0.3] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id k15sm9844655wrp.43.2020.08.02.15.16.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 02 Aug 2020 15:16:55 -0700 (PDT) Subject: Re: bug#42668: 26.1; Undefined functions when calling invoking project.el To: "Philip K." , Eli Zaretskii References: <87r1spfmb4.fsf@bulbul> <87y2mwbtad.fsf@posteo.net> From: Dmitry Gutov Message-ID: Date: Mon, 3 Aug 2020 01:16:54 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87y2mwbtad.fsf@posteo.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 42668 Cc: 42668@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.5 (--) On 03.08.2020 01:02, Philip K. wrote: > The patch attached below should fix the assoc-delete-all issue. Thanks! Could you add a commit message as well, formatted according to CONTRIBUTE? From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 05 17:01:02 2020 Received: (at 42668) by debbugs.gnu.org; 5 Aug 2020 21:01:02 +0000 Received: from localhost ([127.0.0.1]:52314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k3QX0-0001hk-BC for submit@debbugs.gnu.org; Wed, 05 Aug 2020 17:01:02 -0400 Received: from mout01.posteo.de ([185.67.36.65]:59065) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k3QWw-0001h1-Jp for 42668@debbugs.gnu.org; Wed, 05 Aug 2020 17:01:01 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 3E31316005F for <42668@debbugs.gnu.org>; Wed, 5 Aug 2020 23:00:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1596661252; bh=YYE388WYZZa3ACuRt3aDuItrxory+yAVirPgs8FhMgo=; h=From:To:Cc:Subject:Date:From; b=iAMrVSayM1tqTOVbsFpeB2GrSn3poCSF+ypQC1D9oUpSe99JJsF9hAQD3QtDNQFzH d1aII6H1Mf2V3nZsKWI3B8M+85JtR60eJfhyK8G58MqNUKphHH//qY91WVoJnFxUGh HUPZue6rWdlSBqH6R12LpCTTBBifmLOu/YqteFKn5xvZaymf6U2ZDJ57dYAtJu8EhP rWwNUgvR4xfCpXAtMS0gDMMFlxpqoBUOzWGykNMEjXb0sU82Vneyi5hUokEFsr+sYV 6yLX8bCxtf2x5pspVNJ+U7KZPKUI308i6iyXYrmIz19kLV2ozMMwi74u91ph8/6V5r OaAGj8iqiutIw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BMPD33VMbz9rxW; Wed, 5 Aug 2020 23:00:51 +0200 (CEST) From: "Philip K." To: Dmitry Gutov Subject: Re: bug#42668: 26.1; Undefined functions when calling invoking project.el In-Reply-To: (message from Dmitry Gutov on Mon, 3 Aug 2020 01:16:54 +0300) Date: Wed, 05 Aug 2020 23:00:50 +0200 Message-ID: <87sgd0q03h.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 42668 Cc: 42668@debbugs.gnu.org, eliz@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain (sorry for the delay) Dmitry Gutov writes: > On 03.08.2020 01:02, Philip K. wrote: >> The patch attached below should fix the assoc-delete-all issue. > > Thanks! > > Could you add a commit message as well, formatted according to CONTRIBUTE? Sure, I hope this is ok: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Remove-usages-of-assoc-delete-all-in-project.el.patch >From 47dac7a9e6da05bb6303e4b10a0b8ce98aa12eeb Mon Sep 17 00:00:00 2001 From: Philip K Date: Wed, 5 Aug 2020 22:57:01 +0200 Subject: [PATCH] ; Remove usages of assoc-delete-all in project.el assoc-delete-all is not available for users who have installed project.el via ELPA on older Emacs versions. * lisp/progmodes/project.el (project-remember-project, project--remove-from-project-list): Replace assoc-delete-all with equivalent 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..b6161351f0 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 (ent project--list) + (when (equal dir (car ent)) + (setq project--list (delq ent 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))) + (setq project--list (delq ent project--list)) (message "Project `%s' not found; removed from list" pr-dir) (project--write-project-list))) -- 2.20.1 --=-=-= Content-Type: text/plain -- Philip K. --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 06 10:51:37 2020 Received: (at 42668-done) by debbugs.gnu.org; 6 Aug 2020 14:51:37 +0000 Received: from localhost ([127.0.0.1]:54725 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k3hF2-0002ye-Py for submit@debbugs.gnu.org; Thu, 06 Aug 2020 10:51:36 -0400 Received: from mail-wm1-f52.google.com ([209.85.128.52]:52003) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k3hEz-0002yN-SY for 42668-done@debbugs.gnu.org; Thu, 06 Aug 2020 10:51:35 -0400 Received: by mail-wm1-f52.google.com with SMTP id p14so9101189wmg.1 for <42668-done@debbugs.gnu.org>; Thu, 06 Aug 2020 07:51:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=xSgnBMYq7IxPn/bco1+Q3DO5YVpXxNRjIRBY2lFtGMk=; b=lfRcRNB8Iq43sHeMafIemOzglqPjSdfG4+l7pAF+siqBKsiaXE87ziA5vbEWRIjxcL 3x/xkhVvst941dXeH4x4bUVRFNXj7kaHP3W5E3GfHwG70jFkBe44D38Lty0sH+dRcWRB iSIi7E0ZAJA1oxbtpFVHTUQu0Ke43QQ0zbqPOuW5LlE0GEv9WKRxylRsOMPtM6uOqwUk 2y6Bn0idtmWJeGobezLAsLnQyU+73r/ieWM2ZyhWSjcF5plx3RcsE25LoMxbJLEF8+fQ eFt2Ij3YDOYAJccQ77fef4MhvvsTfVmtNIH1Jm4BlnFrOrdk1uXs18H9nhc0tjzPUD6/ pGvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=xSgnBMYq7IxPn/bco1+Q3DO5YVpXxNRjIRBY2lFtGMk=; b=dntpmiC6e0mVKXiYPdArLBDowSRH78GuYupzPjgxaxrq8vCKJmGXIcceiO5YWjsOr1 rdksSVzg8zfci9wjlto511qYgL1qhJwDusioxKXBdX6oszsPdnYP6Dp+mbAv/yAfoe7e xcSytIDFd8HHdXvjVDo0Sasl3NwLIjk/rvnJKGKkfBv3DPHJpn8Aa8Jc91dfdyTLsPT8 7zgwqLgx2SQ5XAFW3XYhaYqL6/WkOO6iA3kqK5Za/KHLbwqFnJcedzNDphOstGcmnom3 MBvER5NBXGvWm+YV3HkCUv4hOVr+RUec3uEO+ziUmxWEM1KE0A4jGnhiMcuzcSX1XWCp trTQ== X-Gm-Message-State: AOAM5309gozk6w3TiUmk5zy5DkWTW3Y0TylhQAJZrSYxwzf+7h5X+dbB F8dgd04d3mR3fm8JCpLbomKuIIxB X-Google-Smtp-Source: ABdhPJwxVtk24v41gtT1zyt9bIPoQiP6337nuqpLpIoTCg5GkaDCwF5PuQ0eI1WT7Tem/nkkhVEyZQ== X-Received: by 2002:a1c:540c:: with SMTP id i12mr3745241wmb.96.1596725487869; Thu, 06 Aug 2020 07:51:27 -0700 (PDT) Received: from [192.168.0.125] ([109.110.245.170]) by smtp.googlemail.com with ESMTPSA id 111sm6894890wrc.53.2020.08.06.07.51.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Aug 2020 07:51:27 -0700 (PDT) Subject: Re: bug#42668: 26.1; Undefined functions when calling invoking project.el To: "Philip K." References: <87sgd0q03h.fsf@posteo.net> From: Dmitry Gutov Message-ID: <9fcdee28-4cee-f990-4a3c-be603589800c@yandex.ru> Date: Thu, 6 Aug 2020 17:51:25 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87sgd0q03h.fsf@posteo.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 42668-done Cc: eliz@gnu.org, 42668-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.5 (--) On 06.08.2020 00:00, Philip K. wrote: > Sure, I hope this is ok: Pushed, thank you. (But see commit 09ba020328e9 with the further tweaks I made to the message.) From unknown Thu Aug 14 18:40:28 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 04 Sep 2020 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator