all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tino Calancha <tino.calancha@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Tino Calancha <tino.calancha@gmail.com>,
	Emacs developers <emacs-devel@gnu.org>
Subject: Re: [ELPA] New package: hap.el
Date: Thu, 2 Mar 2017 15:52:42 +0900 (JST)	[thread overview]
Message-ID: <alpine.DEB.2.20.1703021546570.22314@calancha-pc> (raw)
In-Reply-To: <jwvd1e0xjtf.fsf-monnier+gmane.emacs.devel@gnu.org>



On Thu, 2 Mar 2017, Stefan Monnier wrote:

>> 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.
Wow, i'm on fire! Neither Michael Jordan in his best old times.
>> 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?
Yeah, basically.  I said because `map-put' or `map-delete', for instance. 
Maybe the implemention is simpler if we make `plist-get' setf-able.



  reply	other threads:[~2017-03-02  6:52 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
2017-03-02  6:52       ` Tino Calancha [this message]
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=alpine.DEB.2.20.1703021546570.22314@calancha-pc \
    --to=tino.calancha@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.