Subject: Re: bug#49561: 28.0.50; (declare (modes ...)) does not have an effect

From: Daniel Mendler <[email-masked]>
Date: Wed, 14 Jul 2021 19:39:07 +0200

On 7/14/21 7:13 PM, Daniel Mendler wrote:
> (defun test-cmd2 () ; does not work
>   (interactive)
>   (declare (modes test-mode)))
> (command-modes #'test-cmd2) ; evaluates to nil

Disregard, this works.

(defun test-cmd2 ()
  (declare (modes test-mode))
  (interactive))

For some reason I had assumed that the order of the declarations in the
beginning of the `defun` does not matter.

Daniel