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#35546: 27.0.50; setf return value for new alist entries is wrong Date: Tue, 07 May 2019 15:43:28 +0200 Message-ID: <878svimlbz.fsf@web.de> References: <87lfznzm08.fsf@gnu.org> <87ftpqmrz9.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="223689"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 35546@debbugs.gnu.org To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 07 15:44:15 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 1hO0OF-000w2k-32 for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 May 2019 15:44:15 +0200 Original-Received: from localhost ([127.0.0.1]:47058 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hO0OB-0004a3-3e for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 May 2019 09:44:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hO0O3-0004Yu-Od for bug-gnu-emacs@gnu.org; Tue, 07 May 2019 09:44:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hO0O2-0005ZS-Pt for bug-gnu-emacs@gnu.org; Tue, 07 May 2019 09:44:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44870) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hO0O2-0005ZG-Mz for bug-gnu-emacs@gnu.org; Tue, 07 May 2019 09:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hO0O2-0007yL-Hx for bug-gnu-emacs@gnu.org; Tue, 07 May 2019 09:44: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, 07 May 2019 13:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35546 X-GNU-PR-Package: emacs Original-Received: via spool by 35546-submit@debbugs.gnu.org id=B35546.155723662130611 (code B ref 35546); Tue, 07 May 2019 13:44:02 +0000 Original-Received: (at 35546) by debbugs.gnu.org; 7 May 2019 13:43:41 +0000 Original-Received: from localhost ([127.0.0.1]:58414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hO0Ng-0007xe-Ut for submit@debbugs.gnu.org; Tue, 07 May 2019 09:43:41 -0400 Original-Received: from mout.web.de ([217.72.192.78]:34861) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hO0Nd-0007xN-SI for 35546@debbugs.gnu.org; Tue, 07 May 2019 09:43:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1557236610; bh=jm2Uo/j//WM+1XjsqDE2gU3z/yNoCZcdkL8GFvU7kZI=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=qkMDop5ijqvsFw0UpuKSa2HIp+1+2VmWPBy1D/fsFo6Th8Ju8jy7LqmxVarZXcpxc oCdVgJRSYD+3lduQwWfFFR9SiJ3Dp8Jlk3CMxHSyZsSc6fi0Sa0oBYZH+v59j469ON Uo0idOQ85uVlCBLL0zHzJeTMkYatMSVpgGv/poTI= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([88.66.186.107]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MfqAq-1h3CHF3PfQ-00NDfF; Tue, 07 May 2019 15:43:29 +0200 In-Reply-To: <87ftpqmrz9.fsf@web.de> (Michael Heerdegen's message of "Tue, 07 May 2019 13:19:54 +0200") X-Provags-ID: V03:K1:p6lmCIFQEUCqBF7iZMZWY/5Ok3cFiOWiGF2lLKFa0m9BHhtP6o7 r8l0JqLpBTNv9lyneHMpGBvX0RJnFTeCLJcmEdkh7x6naaKEuMAXG3p85AzG79+MDenL66Z udqty4G2id2uPUIpZCb0EsBSM5j+nEsHYkjbD4DBGS2LeVWQkFte7U/PFhf6bTckLg3/etC N+j3JL4N/JWMVjT4TD3Og== X-UI-Out-Filterresults: notjunk:1;V03:K0:uvC3uYNMSwY=:90AQtz0DsF4aZfzt5LGN51 qIz7OZuTT9rI1QrEtR2tfiWqUnefHXYeWZycZQtMbhc3rHn4jj4dTpP5XSl7S+9lLXZJx7BDy mjd9gIWzrbz3qLMC6hx3dPc+JQRcJ+fmM6IH9Xp5grNfxX6kcBcdcsVPLPS9XcW+BKreVCADs gKK8jB/wIEBZXe2xTnojM161oW/y3W8n0kij8ZOo9d5xmc8lw72VsH7YFN6Mwo/MSpNnbqzGM +zfQ146kJftGDLSU4CnF/fdhOVitI24VfT09+wPy2uvs2vQWxvIYD46gm1NgazgDZkPyfLbNk HROQIDHfJL/2XGnmZ/4wnvWOwwOB4B8uFgd0oXLyzlpOc7fuHD0n8u1UAHxK2bDQHcvZI9Xcw AKB98mpUnv97RAZ6ZIKx4GPgbTG7J0W5BGetx5kV0+9NJpoBIvUzqV8IQ+GdOg47uRnl/q995 O3015h/iOkjWWUWwsNMVkb07ussXvJJFx20MaWxnMpEwwAaTcXzLvpjT/l7DSJvN1ENQfFvLL y7JWCrjZm/g7X6diY8FxwluFpe3zHyvD0L1mMMDn8xML9BlCiA2ZXYiMTM732iynretLiE/7S 9D6Y0wV1ysP9BrDs8x3WfwFYKFcfxRRrKkqZoFAbFP/qSBoCgTNhe/kr1pYj8LxIIaAvwHSMY hYHwWZkXK1Iqg+uUMPkjHgFDprYF+UrjFQD+AnG/VffoLIK4+NVg9fJy71Sq5u1JqWNshCwfj UksonViiAPw8DFlbRbxm1/Njp2g6RReTax3/6dL4fI5CGShH4fDwNG0XX7yaWJMkf+XTs5+h 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:158870 Archived-At: Michael Heerdegen writes: > Tassilo Horn writes: > > > According to the last sentence, I'd assume that > > > > (setq my-alist nil) > > (setf (alist-get 'foo my-alist) "foo-value") > > > > would return "foo-value", but infact it returns ((foo . "foo-value")). I quickly looked if there are any more such cases in gv.el. I found 'cons' and 'logand'. While 'cons' also seems easy to fix, I'm struggling with 'logand', because I don't understand what it is doing. Not only that "it should arguably fail when trying to set a value outside of the mask" as described in the file header, I also don't see how the used formula makes more sense than setting the place to just V. Michael.