From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.help Subject: Plist-put changes literal argument Date: Wed, 2 Sep 2020 19:55:25 -0400 Message-ID: <30E631BA-6845-43C1-AB5E-4C02C4F44780@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40719"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 03 01:55:53 2020 Return-path: Envelope-to: geh-help-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 1kDcbY-000ATD-0o for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 03 Sep 2020 01:55:52 +0200 Original-Received: from localhost ([::1]:44072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDcbW-0000Mf-RK for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Sep 2020 19:55:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47540) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDcbC-0000MN-21 for help-gnu-emacs@gnu.org; Wed, 02 Sep 2020 19:55:30 -0400 Original-Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]:43036) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kDcbA-00082p-JE for help-gnu-emacs@gnu.org; Wed, 02 Sep 2020 19:55:29 -0400 Original-Received: by mail-qk1-x732.google.com with SMTP id o64so1458226qkb.10 for ; Wed, 02 Sep 2020 16:55:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=8hluL7CoKTxp+t2V/oWD7ir2pQa9kSdAgzJ+eUXV/FY=; b=CngoQboSQlHV5DbZoJQzVs5upEaOZspF3pXIBlFQ5cMqGZVdizMs1wfy3IpLG9ZJt5 Gkya8NWzkPd37bxNm6FJaamoW9pQe3vfbRdLbsS+2OCR5Vm0l7ou0f7XC8SNHNqe/1B+ s5FingUv4gNFQ3qKm4Mi++yuhoLL8qoyM2lj2MGeCi/UMU7/e1zSW15p8RkLJoAaxdAX 2RUuijEZFyhEKibOJiS5sO0ddN5JevVBwMBqfDmXmj/T9Vt9CKE8TYvhJhX6IBpHzkSh U7D6V40nnnQwxvbBTu9vFa9xfCvvCYYdcVNGK7fCpw+YFCO4G3XjuzOrKr8rD9rHHgbd VKTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=8hluL7CoKTxp+t2V/oWD7ir2pQa9kSdAgzJ+eUXV/FY=; b=SLguglABFalEVmBrqlq7/GtfQy9rI1JnvZZagD0OzNnCCD9tY3HvsfbKvHQHc6yTNi UQG5hWHqwRPJCM6/B8GSmQBX7Hxr0vR5cEb2UHCH+sQUtQm7qrE/w+nhG9kmRQniKXR2 Rz71t9xOyAA9m97YMLzYPf0X2QKJw/+WUSifYKeG4YU/lJxjl9y5TjzeRy0Bl22eVr5/ HV3L17dN1duKWW3TR6SFd2jjGxb9ZK7czFAgTwR/2LJvKeScABI0YJaciWJMabPDhmgP 2lCcnMaGbtnW8Rr0jz6RdKxndGEyU/rcpjVaX50nN4stbZ2aT5FR42QzV7lhMuABuONi l8rw== X-Gm-Message-State: AOAM530QUXcuWT+NB4G8tJ3Z5bIbFbDqTcxOYV4vOhBBnv/iGW5qr5Fe nq4AmM4cYJw4BC/e8rxzY1Kkd3/YGKXMJ7y5 X-Google-Smtp-Source: ABdhPJwAqCIr4ljP9zva0Wsq8Yy+bwq4ABONwUJIAH3UrEieBjCi4jSwaFsi2f0jB2rF5mt7hME5ow== X-Received: by 2002:a05:620a:38a:: with SMTP id q10mr529745qkm.382.1599090927265; Wed, 02 Sep 2020 16:55:27 -0700 (PDT) Original-Received: from ?IPv6:2601:98a:4200:9210:a1a2:2e54:b0b0:8047? ([2601:98a:4200:9210:a1a2:2e54:b0b0:8047]) by smtp.gmail.com with ESMTPSA id g123sm920377qkd.127.2020.09.02.16.55.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Sep 2020 16:55:26 -0700 (PDT) X-Mailer: Apple Mail (2.3608.120.23.2.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::732; envelope-from=casouri@gmail.com; helo=mail-qk1-x732.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123906 Archived-At: I found plist-put changes the literal argument I pass to a function: (defun test () (test-2 '(:a b))) (defun test-2 (form) (print form) (plist-put form :a 'c) nil) (progn (test) (test)) (:a b) (:a c) nil I thought Elisp is pass-by-copy? Is this expected? P.S., (setf (alist-get )) does the same, I guess this IS expected? Yuan