From: Glenn Morris <rgm@gnu.org>
To: 12812@debbugs.gnu.org
Subject: bug#12812: defsetf with third argument = t
Date: Tue, 06 Nov 2012 02:41:55 -0500 [thread overview]
Message-ID: <sp7gpzfa9o.fsf@fencepost.gnu.org> (raw)
Package: emacs
Version: 24.2.50
In Emacs 24.2 and earlier, defsetf was documented [1] to accept a third
argument = t, with the same meaning as gv-define-simple-setter's
optional FIX-RETURN argument. This behaviour no longer works.
Here is an artificial example in `emacs -Q -l cl':
(defun foo (x)
(car x))
(defun foo-set (x y)
(setcar x y)
nil)
(defsetf foo foo-set t)
(setq bar '(0 2 3))
(setf (foo bar) 1) ; -> nil
bar ; -> (1 2 3)
The setf call correctly returns 1 in 24.2.
[1] (info "(cl)Customizing Setf")
[...]
As a special (non-Common-Lisp) extension, a third argument of `t'
to `defsetf' says...
next reply other threads:[~2012-11-06 7:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-06 7:41 Glenn Morris [this message]
2012-11-07 3:16 ` bug#12812: defsetf with third argument = t Stefan Monnier
2012-11-07 4:51 ` Glenn Morris
2012-11-07 5:02 ` Glenn Morris
2012-11-08 1:32 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sp7gpzfa9o.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=12812@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).