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

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

bug#55830: closed (`byte-compile` drops doc string)


From: GNU bug Tracking System
Subject: bug#55830: closed (`byte-compile` drops doc string)
Date: Wed, 08 Jun 2022 08:30:02 +0000

Your message dated Wed, 8 Jun 2022 10:29:03 +0200
with message-id <58C8BDDC-B428-4D73-B43A-B9F79D80E99A@acm.org>
and subject line bug#55830: `byte-compile` drops doc string
has caused the debbugs.gnu.org bug report #55830,
regarding `byte-compile` drops doc string
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
55830: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55830
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- 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 ---

reply via email to

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