bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62746: [PATCH] Updated Elispref-Manual: `nil' cannot be defuned


From: Shynur Xie
Subject: bug#62746: [PATCH] Updated Elispref-Manual: `nil' cannot be defuned
Date: Mon, 10 Apr 2023 09:11:05 +0000

I tried to defun `nil', but Emacs gived me an error:

```
(defmacro defun (name arglist &optional docstring &rest body)
  ...
  (or name (error "Cannot define '%s' as a function" name))
```

And sorry, I will attach the reason for my modification next time, instead of 
waiting for others to ask.

________________________________________
From: Eli Zaretskii <eliz@gnu.org>
Sent: Monday, April 10, 2023 5:01 PM
To: Shynur Xie
Cc: monnier@iro.umontreal.ca; 62746@debbugs.gnu.org
Subject: Re: bug#62746: [PATCH] Updated Elispref-Manual: `nil' cannot be defuned

> From: Shynur Xie <one.last.kiss@outlook.com>
> CC: "62746@debbugs.gnu.org" <62746@debbugs.gnu.org>
> Date: Mon, 10 Apr 2023 08:56:40 +0000
>
> I think what the manual says is: for example, if the value stored in the 
> function cell of symbol `my-func` is `nil` or `void`, then defining `nil` or 
> `void` with defun makes `my-func` a valid function.

And why is that wrong?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]