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: Thanks Date: Fri, 19 Apr 2019 06:18:11 +0200 Message-ID: <87imvay6f0.fsf@web.de> References: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="117019"; 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: "Miguel V. S. Frasson" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 19 06:19:16 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 1hHKzb-000UJK-NV for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Apr 2019 06:19:15 +0200 Original-Received: from localhost ([127.0.0.1]:50983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHKza-00037A-Ft for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Apr 2019 00:19:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHKzP-000374-DE for bug-gnu-emacs@gnu.org; Fri, 19 Apr 2019 00:19:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hHKzO-0004lE-JN for bug-gnu-emacs@gnu.org; Fri, 19 Apr 2019 00:19:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57580) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hHKzO-0004l2-Ey for bug-gnu-emacs@gnu.org; Fri, 19 Apr 2019 00:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hHKzO-0000Js-5i for bug-gnu-emacs@gnu.org; Fri, 19 Apr 2019 00:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Apr 2019 04:19:02 +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.15556475031168 (code B ref 34708); Fri, 19 Apr 2019 04:19:02 +0000 Original-Received: (at 34708) by debbugs.gnu.org; 19 Apr 2019 04:18:23 +0000 Original-Received: from localhost ([127.0.0.1]:42891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hHKyk-0000Im-ME for submit@debbugs.gnu.org; Fri, 19 Apr 2019 00:18:22 -0400 Original-Received: from mout.web.de ([217.72.192.78]:49409) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hHKyi-0000IS-Ku for 34708@debbugs.gnu.org; Fri, 19 Apr 2019 00:18:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1555647492; bh=oF5vCHPSNO14nJT7xkOB4VCfdpKH71FEeRIHvBwEPJU=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=hiqF1tBTDLAAa2SR0DceESoyY7KYD8uMb0WiELs4Nvv/eIX8xsk87ctK3CeMsvO+p wiQdCgd66Auo2rD21P8NAICfYPV49HBQtmX9Ibxu9Q9YozU/rixLB3u7k/0Rxw6lWA 2lOO86GLfhcjUi0qun0IrJxBqAIM4a3OewWIS33c= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([92.208.95.234]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MQ6PP-1hDEVr0xwR-005G9K; Fri, 19 Apr 2019 06:18:12 +0200 In-Reply-To: (Miguel V. S. Frasson's message of "Thu, 18 Apr 2019 23:24:38 -0300") X-Provags-ID: V03:K1:pMKGmkot6tdWwfXopp3u13rRRW5iP0O0RCZyF0K6uhY7XLR/TG3 64GBjaL6mkAm3Meyb1OgS+JQiWhwXKGF8Jet6ahDUYfWHXGMYDBWYYroTRfooeiRtDPpLd/ 6wFY0JLML+4JxyP5XSlaumx0NbyPQwKxxL7z9BgLLBeazAN+d56gZn9LtkbhNzxN3omvc0Z o8N09kIGMLeLCP9I9vSAw== X-UI-Out-Filterresults: notjunk:1;V03:K0:sS6dLIWiF94=:DfZyofdLp2aPwHybo9M67X e2ix+/w9l8HMsH6h++8/w82q2Bm6cWiYeeMHdxXAVC3z+ntFgLypNU9iLPFZSllb4CusRhtBZ rVo9/bhMY2X7nrGZhi8owqk7LPJH44WpXakkUIIanBDOsbNRgxQxhkuo6N50APWqEgiaTQBP4 wj7v8t84zxiOSbvxJr0rivuiC5Lh/8T9j8yg4nkw4XaJhQetwtw4YTo/ej/hAeol86BSG8Z9o AWvSWC8ardpCP36FjgHdHpGioWDrhTf+Rx8KxqVnoXWq07BLX9YJOgiAXpeEg5CILJFiCQgbY UcIhytzCx4/5GA5Lh25YC5PRbpDm7imWYb2cBR+PtW1nzKB27DctUCRSrRVDsBM/gwC8ZEOVM qwPUEcvPbfhSRu+vaPu0RwbVvToKynmyeGUBLL4cDTSCPYrQX3b/EQmtNJUwmxYvDrZO/PVen BN5dAWI9IZt0RJD0IvfvMAYSYy+Meko4bv8wUdx0DysOhZevmk9FiHgjzMrVxtqJYd+Jy+WiK j3CTV9xTVrrgcj3CkiUBSiX4eVVqlLzw9fR+Xad2vUVu4PTQcIuAY3HPw26tTy3SVTFMyFt8I uFMrstaXFsX76R/iuEeHIAq/eLfncOXaROqFr9O82hhWIJFMjOIlkLGxwI3EuVnPzOWpp4IOd 4LNQJTRDztvlv+LhNLPcwOETayv+ovFqvVqoGHkFcYPK0iUDt/nzkQgNPmGiyPGzvr65GbfHg JjLKs7K0pLLy1p7DAPfb5LozGqm7e1b3m7H9Xx4XhdztIIuuI4f5jcRokfGLaNZrU/Evl2a4 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:157821 Archived-At: "Miguel V. S. Frasson" writes: > I learned a from this discussion, specially about how to use > alist-get. The only missing lesson was how to remove association of a > key from alist using setf and alist-get. > > Could someone give a quick example? The modified docstring of alist-get has now an example. It says: [...] When using it to set a value, optional argument REMOVE non-nil means to remove KEY from ALIST if the new value is `eql' to DEFAULT (more precisely the first found association will be deleted from the alist). Example: (setq foo '((a . 1) (b . 2))) (setf (alist-get 'b foo nil 'remove) nil) foo =3D> ((a . 1)) Does this suffice? BTW, it doesn't say you have to use this feature. If you find it confusing, use delq+assoc+setq, or alternatively, what map.el provides. Regards, Michael.