From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#34708: alist-get has unclear documentation Date: Mon, 04 Mar 2019 17:38:57 +0100 Message-ID: <87fts2h9we.fsf@web.de> References: <87wolhr5k6.fsf@web.de> <87y35xdu4w.fsf@web.de> <87mumcdu7f.fsf@web.de> <875zsyhakx.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="134262"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 34708@debbugs.gnu.org To: Eric Abrahamsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 04 17:40:17 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h0qdV-000YpV-FM for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Mar 2019 17:40:17 +0100 Original-Received: from localhost ([127.0.0.1]:57008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0qdU-0007Zc-9d for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Mar 2019 11:40:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0qdO-0007ZW-2J for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 11:40:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0qdN-0002Ib-Cc for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 11:40:10 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46586) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h0qdG-0002B9-0v for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 11:40:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h0qdF-00006S-Qi for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 11:40:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Mar 2019 16:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34708 X-GNU-PR-Package: emacs Original-Received: via spool by 34708-submit@debbugs.gnu.org id=B34708.1551717556326 (code B ref 34708); Mon, 04 Mar 2019 16:40:01 +0000 Original-Received: (at 34708) by debbugs.gnu.org; 4 Mar 2019 16:39:16 +0000 Original-Received: from localhost ([127.0.0.1]:60130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0qcW-000059-4i for submit@debbugs.gnu.org; Mon, 04 Mar 2019 11:39:16 -0500 Original-Received: from mout.web.de ([217.72.192.78]:36315) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0qcT-0008WU-Hs for 34708@debbugs.gnu.org; Mon, 04 Mar 2019 11:39:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1551717538; bh=Rtx9/5JYcTol+ID0VzLcKTemTbJZ4CYzELZhJXeVZCo=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=ehNvm5PyTPs+a+Tr8MWyuwVek0pwTuuSVmX2Qh1IBZlX9icdGnnLVaBCb5zEJ0tU7 DfZ/TLcUHmQN9nyv6Zw7B9mprDYoiUfEjd5ztgthTTM97xoAJtVzHMeOieUDpilEdO AUQTC5dS1v0TbrzVS45ILVL+vbZAw7hFiZjPP6e0= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([88.67.111.211]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MEmoQ-1gm1hg1hN4-00G0UJ; Mon, 04 Mar 2019 17:38:58 +0100 In-Reply-To: <875zsyhakx.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Mon, 04 Mar 2019 08:24:14 -0800") X-Provags-ID: V03:K1:VEJiTcxB6de8RkQb0DFlQyxHu1PUknmv8TrrcO2u4z3ctK3jbt2 j7veGVsztcDKzWSlprC+jmtHFOg5Lfk6MioimlXgSq/YAIQmBolQh1XZfJNAVo9YdH+5oaD sWXtOwk/bzOZLrMiYc+g8FczxvZ5TBtzGX4LHn6kvbETmLHlkcKuRB4gydt9q2jQkTIM7f1 uL/VMdbyuSycHOhac5xhA== X-UI-Out-Filterresults: notjunk:1;V03:K0:Pcp7DTRhbWY=:JImsD8t3UyJRRImg0wHlQp 2peDQY66T6uAMQzgEaRRaD4kZE+8R+ziGuSpWV+Qgpx1LOW2SYoOERKrXg3GBCIqFC5Q7NtZW R1l5RZO3TPUadtvfRgqkq6ob9oxp/Or3lse5ZWa30O5NMfkFF4yTKBpWN42t9KXcCvjPM0zto PU9psJbB+CosM9vxK0z8PUhTlgvdQFa2Tb2PK0yw8dyL2U6gyvT6koQKrdaZjk0aRXXRWwQdq fylhhKXaZUnXk8bpipdX4ZGUxKuR63xjdjRrZ27XXgvB8xozPtrHpKai4rc8acBYYTVaeJhOl sWtyXX7oXJ14/q8sbccS9wuB5kNnuFqzlS0enCwlTpxFG2U2TDC1w9vpUdcC9ciJcA4wx0sdk Anxb1eJXCIcufKs+4wVUcLFdHoNYKoFEzYuGDDKwViInPK/eUi8tCxK5Stqr+HqM6FTllfzx0 s7N3kW3u6dAPdSkUJtBr+m+44StfR4XA7zYESFEaikkNi8SBF93hALI4oiQu7xsmVZ983CyMD O7vBToLBBUQDFGv/RVIekziU6a8J9OlsZIucaEGNSqO5lxEaUrFMiZGzRTWyKPVMoYrFu9KmB UZ5G8/hNA3/ttEGulqbFwkDStdqvw4mszMBfFcPztMgTb9oru+nDJTHtYcq8n1QJpCJKzIkrP reaZKIEzfbvkHvM6LYTPHOzRwsMvxq1z+f+2JCMAg8Sbn6GzHFDOSb8pDsbaRD9vMPLNL4//v IU0RW6ytQyCu+DkdcfO7GHN+jwYj/q7rwv0blmzHHsuO34EPXamG3EzoWQIuqI2NT8DZI0ms X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:156034 Archived-At: Eric Abrahamsen writes: > I think it would be nice to have an example that shows both a common > use-case (as an accumulator), and how to use REMOVE. I started off with > the accumulator part: > > (let (word word-freq) > (while (setq word (pop word-list)) > (cl-incf (alist-get word word-freq 0 #'equal) 1))) > > But so far haven't come up with a non-contrived way to work REMOVE in > there... And I guess you didn't really want to specify a function as REMOVE arg, right? Michael.