all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: [ELPA] New package: hap.el
Date: Thu, 02 Mar 2017 01:43:54 -0500	[thread overview]
Message-ID: <jwvd1e0xjtf.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: alpine.DEB.2.20.1703021446430.22314@calancha-pc

> In hap.el, optionally, you can convert from alist to hash table,
> so that:
> (let ((map '((1 . a) (1 . foo) (2 . b))))
>   (equal
>    (alist-get 1 map)
>    (gethash 1 (map-into map 'hash-table))))
> => t

Oh, you've just found a bug in map.el.  The intention is that it returns t.

> We might do plist-get setf-able as it was done for alist-get.

That seems to be unrelated to hap.el/map.el, or am I missing something?


        Stefan




  reply	other threads:[~2017-03-02  6:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-01  9:00 [ELPA] New package: hap.el Tino Calancha
2017-03-01 13:44 ` Mark Oteiza
2017-03-01 13:46 ` Stefan Monnier
2017-03-02  6:02   ` Tino Calancha
2017-03-02  6:43     ` Stefan Monnier [this message]
2017-03-02  6:52       ` Tino Calancha
2017-03-02  9:03       ` Nicolas Petton
2017-03-02  9:37         ` Tino Calancha
2017-03-02 10:29           ` Nicolas Petton
2017-03-02 12:38           ` Nicolas Petton
2017-03-02 13:07             ` Tino Calancha

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvd1e0xjtf.fsf-monnier+gmane.emacs.devel@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.