[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#67568: Emacs master: Bug in byte compiler when there's an unused par
From: |
Alan Mackenzie |
Subject: |
bug#67568: Emacs master: Bug in byte compiler when there's an unused parameter. |
Date: |
Fri, 1 Dec 2023 16:34:18 +0000 |
Hello, Stefan.
On Fri, Dec 01, 2023 at 10:40:55 -0500, Stefan Monnier wrote:
> > I have a candidate for the buggy function, namely macroexp-parse-body.
> Duh!
> I think the patch below should fix it.
It certainly will in the test case, yes.
I think I understand the function better now, thanks.
Are you going to commit your patch, or should I? :-)
> Stefan
> diff --git a/lisp/emacs-lisp/macroexp.el b/lisp/emacs-lisp/macroexp.el
> index 6eb670d6dc1..6ed3e0c4896 100644
> --- a/lisp/emacs-lisp/macroexp.el
> +++ b/lisp/emacs-lisp/macroexp.el
> @@ -540,7 +540,9 @@ macroexp-parse-body
> (while
> (and body
> (let ((e (car body)))
> - (or (stringp e)
> + (or (and (stringp e)
> + ;; Only the first string can be a docstring.
> + (not (delq nil (mapcar #'stringp decls))))
> (memq (car-safe e)
> '(:documentation declare interactive
> cl-declare)))))
> (push (pop body) decls)))
--
Alan Mackenzie (Nuremberg, Germany).
- bug#67568: Emacs master: Bug in byte compiler when there's an unused parameter., Alan Mackenzie, 2023/12/01
- bug#67568: Emacs master: Bug in byte compiler when there's an unused parameter., Dmitry Gutov, 2023/12/01
- bug#67568: Emacs master: Bug in byte compiler when there's an unused parameter., Alan Mackenzie, 2023/12/01
- bug#67568: Emacs master: Bug in byte compiler when there's an unused parameter., Alan Mackenzie, 2023/12/01
- bug#67568: Emacs master: Bug in byte compiler when there's an unused parameter., Stefan Monnier, 2023/12/01
- bug#67568: Emacs master: Bug in byte compiler when there's an unused parameter.,
Alan Mackenzie <=
- bug#67568: Emacs master: Bug in byte compiler when there's an unused parameter., Stefan Monnier, 2023/12/03
- bug#67568: Emacs master: Bug in byte compiler when there's an unused parameter., Eli Zaretskii, 2023/12/03
- bug#67568: Emacs master: Bug in byte compiler when there's an unused parameter., Stefan Monnier, 2023/12/03
- bug#67568: Emacs master: Bug in byte compiler when there's an unused parameter., Eli Zaretskii, 2023/12/03