GNU bug report logs - #27016
possible bug in `defsetf'

Previous Next

Package: emacs;

Reported by: Rafael D Sorkin <rsorkin <at> perimeterinstitute.ca>

Date: Mon, 22 May 2017 06:40:01 UTC

Severity: minor

Tags: fixed, patch

Found in versions 24.4, 25.2

Fixed in version 26.1

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


Message #8 received at 27016 <at> debbugs.gnu.org (full text, mbox):

From: npostavs <at> users.sourceforge.net
To: Rafael D Sorkin <rsorkin <at> perimeterinstitute.ca>
Cc: 27016 <at> debbugs.gnu.org
Subject: Re: bug#27016: possible bug in `defsetf'
Date: Mon, 22 May 2017 08:11:25 -0400
tags 27016 unreproducible
quit

Rafael D Sorkin <rsorkin <at> perimeterinstitute.ca> writes:

> emacs-version				; 24.5.1
> (setq pair (cons 3 4))			; (3 . 4)
> (foobar pair)				; Symbol's function definition is void: foobar
> (setf (foobar pair) 0)			; (foobar pair) is not a valid place expression 
> (unless t
>   (defalias 'foobar 'cons)
>   (defsetf foobar setcar))		; nil 
> (foobar pair)				; same as above
> (setf (foobar pair) 0)			; 0       !
> pair					; (0 . 4) !

I'm not able to reproduce this behaviour on 24.5, the second setf throws
an error just like the first.  How are you evaluating these exactly
(starting from emacs -Q)?  I tried C-x C-e on each sexp in turn.




This bug report was last modified 7 years and 290 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.