From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#49848: 27.2.50; map-merge plist return alist Date: Tue, 03 Aug 2021 23:59:14 +0200 Message-ID: <877dh2qjf1.fsf@web.de> References: <87o8ae71yv.fsf@hm.sivalik.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26417"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: rajeev.jnk@sivalik.com To: 49848@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 04 00:00:18 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mB2SP-0006eG-4l for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Aug 2021 00:00:17 +0200 Original-Received: from localhost ([::1]:46016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mB2SN-0002zO-EZ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Aug 2021 18:00:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mB2SA-0002yZ-DO for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2021 18:00:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58395) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mB2SA-0004c4-3X for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2021 18:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mB2SA-0007R4-1H for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2021 18:00: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, 03 Aug 2021 22:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49848 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Rajeev N via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: Rajeev N , 49848@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.162802797928522 (code B ref -1); Tue, 03 Aug 2021 22:00:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Aug 2021 21:59:39 +0000 Original-Received: from localhost ([127.0.0.1]:41708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mB2Rm-0007Py-HL for submit@debbugs.gnu.org; Tue, 03 Aug 2021 17:59:38 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:33516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mB2Rk-0007Pq-PW for submit@debbugs.gnu.org; Tue, 03 Aug 2021 17:59:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mB2Rk-0002wa-BS for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2021 17:59:36 -0400 Original-Received: from mout.web.de ([217.72.192.78]:47565) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mB2Ri-0004I7-Sw for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2021 17:59:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1628027955; bh=wk3NPDs1wTe4vVY90ilglJaKiRor9PsQKj279HVsxFk=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=YAkrGZhCJci7lHOh74Pqh8kkwSGNqfjZe3fUQswSsV7au8vrlLxs//NU8UybUwggd m0QmaS1BTVOO7M1nvAdz4AbGD5dpeglcqmzVvrv4dQLaSSzrbi6x5Fl7DKt9X6XH72 0qZwTZ4unjNm5vWGUAWRQMPBKvomj4qpBegQHH28= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([88.66.201.45]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0M0hfO-1n1CrF1VHy-00unc7; Tue, 03 Aug 2021 23:59:15 +0200 In-Reply-To: <87o8ae71yv.fsf@hm.sivalik.com> (Rajeev N. via's message of "Tue, 03 Aug 2021 19:38:48 +0000") X-Provags-ID: V03:K1:dw3QLMXL6Jzot8iz4srjvr9hphJAxQGiygycXrNJIS+lieV85P0 dyLnj/I6szl0kMCISoHmIKxoBVO6/dS8CSNGE4KJEK1p/FxYQC+Cm8plBf5Std+26Rb1mn7 bmj04su8whIueFpS0G7uKdjJZZyCasBzHPW+eHbji/wSpLXCat2lKX/QpAIyKRJ+fYTofDs qOtIxKsdnpZWTyHU4/+xw== X-UI-Out-Filterresults: notjunk:1;V03:K0:Oo6EhIHn8v0=:BfGgurVxARjpaECHNPIwlR bipc96VMfUNwI6pdCVpKQAzlgwNFnyLMWHSwSE+YR82UFNOCNIIdbZRITPZJ8x7YgNIKyz4cm Gv5h/gxo40TDnh9zbYiskv7e7BJxLjoAz0kE+KJFX1VTEaJUkB6Ad7ZZN9hDlaoCnggJKRxOr ozC4AH6x8r+HTLUlwLJTM1oUgfEe8WHMb3fbBusDZBnwJQAUpzn9BPkhVA4OFZGdoaHy+4QhM BamI++DVTVJt8MT8MgpWHdmcfOS5si+i7G8Ig+eOppHaN0WiIq2a05lR7/JruBYWNks6dRRZB +bHTwxNPrM6HPBea/boGnp2oL+i77O52qmPINlV3EcCLTwqHoRiuF+7iG64gQDFR/3G+OWatA gQgHuERstZQxyIcLveot4u5VamJd8Cf2eiok5Fnggy9bbzOyZLvCbfjDgQACO9JgME1Sdudos O6rrT8sbgWhgM4lwDXxnBtIOEZHJciT+/im/FBTk1KCYC/kyBm0gSPrBwyuruilZKI6F5AF6a n/DvDL+UIO1V4vyrBGGjOdC7MmfWWpC1Fgke9DZE+VKt/v6VO+mbc8Bkwc0IXN7K/eZi1wQ3I OCXs2O7H4+mzbTF2B5NOZmf9hcJpv59brW0mXY54ePWlxNAV7xK5bg/BkXAV7Ig/J+Av3tYiU aX1vig2U/OsADPqBZl7Cq03IPlJx7+1peVDVAu/30ow7knigeMPestPawN4QknYTji7ACj2kG kju4QJK+tgJ8Gh4KOUsQr29BXcHoh6Lxs4fA2yubVyunclwpdnB7q1VwUievhfTpUJMh+1AN Received-SPF: pass client-ip=217.72.192.78; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:211103 Archived-At: Rajeev N via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > (map-merge 'plist nil '(:a 1)) > expected: '(:a 1) > got: '((:a . 1)) I can reproduce this behavior and consider it a bug. The implementation of `map-merge' starts with an empty plist "RESULT" (i.e., nil) and fills it like (map-do (lambda (key value) (setf (map-elt result key) value)) (pop maps)) The setter of `map-elt' treats nil as empty alist (at the end, this is decided by `map--plist-p' which doesn't consider nil a plist). So the underlying problem is more general, maybe this is not the only issue this ambiguity causes. Michael.