* bug#12812: defsetf with third argument = t
@ 2012-11-06 7:41 Glenn Morris
2012-11-07 3:16 ` Stefan Monnier
0 siblings, 1 reply; 5+ messages in thread
From: Glenn Morris @ 2012-11-06 7:41 UTC (permalink / raw)
To: 12812
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...
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#12812: defsetf with third argument = t
2012-11-06 7:41 bug#12812: defsetf with third argument = t Glenn Morris
@ 2012-11-07 3:16 ` Stefan Monnier
2012-11-07 4:51 ` Glenn Morris
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2012-11-07 3:16 UTC (permalink / raw)
To: Glenn Morris; +Cc: 12812
> 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.
Indeed, thanks, fixed.
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#12812: defsetf with third argument = t
2012-11-07 3:16 ` Stefan Monnier
@ 2012-11-07 4:51 ` Glenn Morris
2012-11-07 5:02 ` Glenn Morris
2012-11-08 1:32 ` Stefan Monnier
0 siblings, 2 replies; 5+ messages in thread
From: Glenn Morris @ 2012-11-07 4:51 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 12812
Stefan Monnier wrote:
>> 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.
>
> Indeed, thanks, fixed.
Still fails for me as originally described.
I think it's gv-define-simple-setter that's broken now, by #12813.
The FIX-RETURN case... doesn't.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#12812: defsetf with third argument = t
2012-11-07 4:51 ` Glenn Morris
@ 2012-11-07 5:02 ` Glenn Morris
2012-11-08 1:32 ` Stefan Monnier
1 sibling, 0 replies; 5+ messages in thread
From: Glenn Morris @ 2012-11-07 5:02 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 12812
PS gv, cl-lib etc all looks like very nice stuff. Just reporting these
issues while trying to figure out how to document some of it.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#12812: defsetf with third argument = t
2012-11-07 4:51 ` Glenn Morris
2012-11-07 5:02 ` Glenn Morris
@ 2012-11-08 1:32 ` Stefan Monnier
1 sibling, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2012-11-08 1:32 UTC (permalink / raw)
To: Glenn Morris; +Cc: 12812
>>> 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.
>> Indeed, thanks, fixed.
> Still fails for me as originally described.
> I think it's gv-define-simple-setter that's broken now, by #12813.
> The FIX-RETURN case... doesn't.
Indeed, I fix it and broke it right away. Should be fixed for good
this time.
> PS gv, cl-lib etc all looks like very nice stuff.
Thanks. I'm particularly proud of gv.el ;-)
> Just reporting these issues while trying to figure out how to document
> some of it.
Tank you for doing that. FWIW, I think the third arg of defsetf should
be undocumented. I hesitated whether to fix it or not since AFAIK the
only users of that feature were in cl-macs.el and now use
gv-define-simple-setter instead. The only reason why I installed the
fix is that it was such a trivial change to make.
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-11-08 1:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-06 7:41 bug#12812: defsetf with third argument = t Glenn Morris
2012-11-07 3:16 ` Stefan Monnier
2012-11-07 4:51 ` Glenn Morris
2012-11-07 5:02 ` Glenn Morris
2012-11-08 1:32 ` Stefan Monnier
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).