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: Tue, 12 Mar 2019 18:45:40 +0100 Message-ID: <87mum0yojf.fsf@web.de> References: <87y35xdu4w.fsf@web.de> <87mumcdu7f.fsf@web.de> <875zsyhakx.fsf@ericabrahamsen.net> <87fts2h9we.fsf@web.de> <871s3mh85d.fsf@ericabrahamsen.net> <874l8iebyz.fsf@web.de> <878sxui7bo.fsf@ericabrahamsen.net> <87va0xcxco.fsf@web.de> <87h8chey12.fsf@ericabrahamsen.net> <60367f47-c0b0-45b4-8ccf-169044400a75@default> <8736ntmsy3.fsf@web.de> <3af3b645-84e0-4208-be48-810e8cd2cfa8@default> <87wol5l6xk.fsf@web.de> <6e0c5a88-34db-4957-9cc5-98a14ae64f9f@default> <87ef7c1bxs.fsf@web.de> <32eea01e-cec1-42b7-8221-f4dd4652f0fa@default> <87va0oyt0l.fsf@web.de> <84e7fa6d-7e89-4c7e-b94d-be40900a3422@default> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="204369"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Eric Abrahamsen , 34708@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 12 19:28:48 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 1h3m8t-000r3x-SE for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Mar 2019 19:28:48 +0100 Original-Received: from localhost ([127.0.0.1]:57422 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3m8s-0001HH-JG for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Mar 2019 14:28:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3lUV-00066c-Ee for bug-gnu-emacs@gnu.org; Tue, 12 Mar 2019 13:47:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3lUU-0003s4-Fu for bug-gnu-emacs@gnu.org; Tue, 12 Mar 2019 13:47:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55241) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h3lUU-0003ro-8f for bug-gnu-emacs@gnu.org; Tue, 12 Mar 2019 13:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h3lUU-0006MD-0o for bug-gnu-emacs@gnu.org; Tue, 12 Mar 2019 13:47: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: Tue, 12 Mar 2019 17:47: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.155241276424367 (code B ref 34708); Tue, 12 Mar 2019 17:47:01 +0000 Original-Received: (at 34708) by debbugs.gnu.org; 12 Mar 2019 17:46:04 +0000 Original-Received: from localhost ([127.0.0.1]:40552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h3lTY-0006Kx-JX for submit@debbugs.gnu.org; Tue, 12 Mar 2019 13:46:04 -0400 Original-Received: from mout.web.de ([212.227.15.4]:51151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h3lTW-0006KD-QA for 34708@debbugs.gnu.org; Tue, 12 Mar 2019 13:46:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1552412741; bh=6nOPEHsQ8AK/rCFHZsC3IPFvUCpU/ucNy8m1IuVMENU=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=djczxP9PF09NIHLJ28FMSPazeR4vZLjkSysm+75R1in5BwfBIITT7RfnRDK8dk2ju Ku4590eCVviY+zK/xyc4Bd5Qzsomso9jRdhz9PAlSH0G9Ik+9cRo4r54MtsRPoetM0 g5HuuyC9UuyG1Nteqnmpy6r/TZ5q3QV7ayR9x0HY= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([88.67.111.211]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MfYoV-1hR41O0xIJ-00P1Ud; Tue, 12 Mar 2019 18:45:41 +0100 In-Reply-To: <84e7fa6d-7e89-4c7e-b94d-be40900a3422@default> (Drew Adams's message of "Tue, 12 Mar 2019 09:48:11 -0700 (PDT)") X-Provags-ID: V03:K1:y+Dyr0NXIjSBwuVUUulzWItfv71oZN+/R6lyublAfv9Dj4rop9Q 2RSAKkcagA/67q49akBin3q1PBz2xsgof4qjpv85ZJ0r6ljA22b9q5AzQiCRhoNeDCmmnnk W3TPGjQa4DRPu9UjHiNIMuMRo97mtcqnAUe8h5x+X+XQy44ABjqv/USKfQ47VxHgKrVEN5B 70dFVpciHlg9cBAZ0xhwA== X-UI-Out-Filterresults: notjunk:1;V03:K0:Aj4VrHXhIKo=:6TXIUruh0bwb8NGuqv8Txq 6ZzL2hkLBfNQpV4oThN3+yW8iTGgkvjOrzvYKhf59KQziFxq0RqHv/eYWjHZk/yBSvjtaI9ol 076t/hS2TAUE7clVqu0LtmaAJGoG+a6fwCGHSue2Y0FlgAMVMt+H0/vcdDWw+cqglGjGq9dKU iIs3S6IKAq1t0P3/UHVFj4ttIiTUbcCaFM4HnhtMY3sToVDTYzo+BTM3LGhMbEabr5r1iTjXF zclCwjktWlMrEaxzWQffF/nusYVwTw7kunAaem3emfjwz+Xhi1k6k4m1aFCgJXqBhhiRGTCZI 0w2rNDQI94m2Y8LKICE/0xG+EVw36G5yModihbaBU70YzzNEp6LwvoJs8v06KMLrfzXZP+XAD FVQuP7XeH3oy6B5CU4mD+j9WJUTvw0o83sJsDJBlEDysIlJ8wCQJLpfyqjYPvkSnuDQJCXKO7 /JNt1DQ9ifShGRpnURSwGY8bjLAVZm9S/6y3kMvjx8uu7i59AkDjqGbuMcQnZPWU5uGVixzXV FLp2CIabCHAXxYrREddHKT7f3tr3uQbn0BS/gpNRYdAICdS2hKeoVM25uWcjHtttiJoK/DG8T TSvjYlJX7F3jKuFDXnixbtA+LPsR3cIMaNcXNDw9aD6VDoqxNATI7zL8Bck2KKQrBWjDXsVQl 2Qtn29iWXW+dSgT5TliW7wiz/iRh3r3LXfhzelt1yANZHnw1nwfD0714XlHAS3BZOANND+MlY p6JQTnDUQonbu7py61YMTPR7PAZi36IKqHE6W/NIp+9TwITlZt+gS6Ur6yQa70XKCCU5tYFw 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:156273 Archived-At: Drew Adams writes: > Why have REMOVE instead of just letting users > set the value (explicitly) to DEFAULT? That's the default behavior without using REMOVE. Removing associations is also a valid use case and in my eyes still consistent with the place semantics. > That would really follow "the expected semantics of setf", with > nothing funny going on, no confusion. > > `alist-get' is a function, not just a gv place. Argument REMOVE makes > no sense for the function (does it?). All the other args do make > sense for the function. Shouldn't all of the args to a function make > sense for it? Should we add args that are only used by `setf'? Has > that been done before? Ok, REMOVE is more or less your only criticism. I too find it a bit odd, especially the additional argument, but not too odd and useful enough to keep it. It's very debatable, agreed. Michael.