unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>,
	 Nicolas Petton <nicolas@petton.fr>
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	[thread overview]
Message-ID: <jwvr157u9ax.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CAFyQvY0hxy5hAUQ5iUGfbQLv7npE9Gb8YeOU0K-6-3pEQKOWvw@mail.gmail.com> (Kaushal Modi's message of "Thu, 5 May 2022 12:24:12 -0400")

>> 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




  reply	other threads:[~2022-05-05 18:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-04 18:50 Help making a map-do/seq-do based code work on emacs 26.3 Kaushal Modi
2022-05-04 19:20 ` Emanuel Berg
2022-05-05  2:20 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-05-05 16:24 ` Kaushal Modi
2022-05-05 18:32   ` Stefan Monnier [this message]
2022-05-05 21:23     ` Kaushal Modi
2022-05-05 21:33       ` Stefan Monnier

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=jwvr157u9ax.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    --cc=kaushal.modi@gmail.com \
    --cc=nicolas@petton.fr \
    /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.
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).