--- Begin Message ---
Subject: |
`byte-compile` drops doc string |
Date: |
Tue, 7 Jun 2022 13:19:58 +0200 |
A function with doc string and interactive spec:
(defun hello ()
"my function"
(interactive)
(message "hello"))
Then:
(byte-compile 'hello)
results in the doc string being lost.
This probably happens in byte-compile--reify-function where the doc string and
interactive spec are swapped around.
Shouldn't that function also deal with :documentation? What about declare forms?
--- End Message ---
--- Begin Message ---
Subject: |
bug#55830: `byte-compile` drops doc string |
Date: |
Wed, 8 Jun 2022 10:29:03 +0200 |
> Shouldn't that function also deal with :documentation? What about declare
> forms?
No, :documentation and declare forms are dealt with during macro-expansion.
Only a literal doc string is left once the compiler gets to look at the code
again.
Fixed on master.
--- End Message ---