GNU bug report logs - #25110
defun nil should err

Previous Next

Package: emacs;

Reported by: "Devon Sean McCullough" <Emacs-Hacker2016 <at> jovi.net>

Date: Sun, 4 Dec 2016 18:41:02 UTC

Severity: minor

Found in version 26.0.50

Fixed in version 26.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25110 in the body.
You can then email your comments to 25110 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#25110; Package emacs. (Sun, 04 Dec 2016 18:41:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Devon Sean McCullough" <Emacs-Hacker2016 <at> jovi.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 04 Dec 2016 18:41:02 GMT) Full text and rfc822 format available.

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

From: "Devon Sean McCullough" <Emacs-Hacker2016 <at> jovi.net>
To: bug-gnu-emacs <at> gnu.org
Subject: defun nil should err
Date: Sun, 4 Dec 2016 12:39:51 -0600
Not critical but a definite bug:

(defun nil () (error "Nil")) => nil
(symbol-function nil) => (lambda nil (error "Nil"))
(nil) ?? (void-function nil)
(funcall nil) ?? (void-function nil)

(setf (symbol-function nil) '+)
(symbol-function nil) => +
(nil 1 2) ?? (void-function nil)
(funcall nil 1 2) ?? (void-function nil)

	Peace
		—Devon





Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Sun, 11 Dec 2016 03:00:03 GMT) Full text and rfc822 format available.

Notification sent to "Devon Sean McCullough" <Emacs-Hacker2016 <at> jovi.net>:
bug acknowledged by developer. (Sun, 11 Dec 2016 03:00:03 GMT) Full text and rfc822 format available.

Message #10 received at 25110-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 25110-done <at> debbugs.gnu.org
Subject: Re: bug#25110: defun nil should err
Date: Sat, 10 Dec 2016 21:59:53 -0500
Version: 26.1

Thanks; done in ba8e883.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25110; Package emacs. (Sun, 11 Dec 2016 03:24:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: 25110 <at> debbugs.gnu.org
Cc: Emacs-Hacker2016 <at> jovi.net
Subject: Re: bug#25110: defun nil should err
Date: Sat, 10 Dec 2016 22:23:05 -0500
Glenn Morris wrote:

> Thanks; done in ba8e883.

Hmph. I thought this worked the first time I tried it, but now it seems
to cause build errors, so I've taken part of it out again (3fd4433),
pending further investigation.




bug No longer marked as fixed in versions 26.1 and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 11 Dec 2016 03:25:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25110; Package emacs. (Sun, 11 Dec 2016 16:53:01 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: "Devon Sean McCullough" <Emacs-Hacker2016 <at> jovi.net>
Cc: 25110 <at> debbugs.gnu.org
Subject: Re: bug#25110: defun nil should err
Date: Sun, 11 Dec 2016 11:52:12 -0500
> (defun nil () (error "Nil")) => nil

How/when did you bump into this?


        Stefan "who decided it wasn't worth paying attention to that case
                when he made `nil` to mean unbound for `symbol-function`"




Forcibly Merged 25110 25166. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 11 Dec 2016 18:40:02 GMT) Full text and rfc822 format available.

Disconnected #25166 from all other report(s). Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 12 Dec 2016 20:24:02 GMT) Full text and rfc822 format available.

Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Mon, 12 Dec 2016 20:25:02 GMT) Full text and rfc822 format available.

Notification sent to "Devon Sean McCullough" <Emacs-Hacker2016 <at> jovi.net>:
bug acknowledged by developer. (Mon, 12 Dec 2016 20:25:03 GMT) Full text and rfc822 format available.

Message #27 received at 25110-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 25110-done <at> debbugs.gnu.org
Subject: Re: bug#25110: defun nil should err
Date: Mon, 12 Dec 2016 15:24:16 -0500
Version: 26.1

Glenn Morris wrote:

>> Thanks; done in ba8e883.
>
> Hmph. I thought this worked the first time I tried it, but now it seems
> to cause build errors, so I've taken part of it out again (3fd4433),
> pending further investigation.

I figure out what was causing this problem in 61f8c23,
and re-applied the fset change in ffb1302.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 10 Jan 2017 12:24:04 GMT) Full text and rfc822 format available.

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

Previous Next


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