From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Help making a map-do/seq-do based code work on emacs 26.3 Date: Thu, 05 May 2022 14:32:15 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1763"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Help Gnu Emacs mailing list , Nicolas Petton To: Kaushal Modi Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 05 20:48:07 2022 Return-path: Envelope-to: geh-help-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 1nmgWF-0000Bh-5W for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 05 May 2022 20:48:07 +0200 Original-Received: from localhost ([::1]:45442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nmgWE-0006Cb-0t for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 05 May 2022 14:48:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41678) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmgH0-0007Q6-NE for help-gnu-emacs@gnu.org; Thu, 05 May 2022 14:32:22 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:40154) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmgGx-0000OA-Qf for help-gnu-emacs@gnu.org; Thu, 05 May 2022 14:32:21 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 28D548049E; Thu, 5 May 2022 14:32:18 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id B8B968012F; Thu, 5 May 2022 14:32:16 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1651775536; bh=0ELmrreMnT1o2eyNAmk8kL2QjVRT7WZNX8RFMz0x7TU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=jd8pFgP2B0n44X4AVE83YgZoXcyzGgSnFCsaBbvKKVfEwq3Dv/QbdrMLwBeLMHMhP oWCFgVg1Ca414cy/laK6FUxwj+cub+lebcbuiw+mG2au/SvilJXRMoNs3HpNDeAa8W YAeFGFhfnCGyCC+6ZDGtNgCzmSbBhoeeeIx9GYWn3/IiTYrRcoGMcKKZkN1DtitlbF HrU40opUp3nyA6PXXjUpYK+CX7QCTemkNhGODYk4g2enw6OyCHU4tjXS4Qgcg3Kk91 DTdW8ueJPAVx115f0aDl4/e1O4nPaC+TD1182dSJhBcCObH0dWsRV8YZY9okbsZ+MH d1UwL8UFVqTPg== Original-Received: from alfajor (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id A3DC8120163; Thu, 5 May 2022 14:32:16 -0400 (EDT) In-Reply-To: (Kaushal Modi's message of "Thu, 5 May 2022 12:24:12 -0400") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:137151 Archived-At: >> For `seq`, yes, but `map` is not in GNU ELPA. > map is actually available from GNU ELPA. Indeed, I didn't check carefully enough. Even better! > I couldn't do (package-install 'map) from an emacs 26.3 session. My crystal ball says it's just because of a lack of `package-refresh-contents` or something like that somewhere. > But running (package-install-file "tomelr.el") installed the newer map > and seq from GNU ELPA. Great. > So I am hoping that when a user installs the new tomelr version from > GNU ELPA (on Emacs 26.3), it will install the newer map and seq > versions for them as well. It will, indeed. > ===(defun tomelr-install () [...] > ;; Below require will auto-create `package-user-dir' it doesn't exist. > (require 'package) > > ;; Load emacs packages and activate them. > ;; Don't delete this line. > (package-initialize) ; > ;; `package-initialize' call is required before any of the below > ;; can happen. This call to `package-initialize` should not be necessary on recent Emacsen (but it used to be needed, indeed). If you find it's still necessary with Emacs `master`, please report it as a bug. Stefan