GNU bug report logs - #49561
28.0.50; (declare (modes ...)) does not have an effect

Previous Next

Package: emacs;

Reported by: Daniel Mendler <mail <at> daniel-mendler.de>

Date: Wed, 14 Jul 2021 17:14:01 UTC

Severity: normal

Found in version 28.0.50

Done: Daniel Mendler <mail <at> daniel-mendler.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Daniel Mendler <mail <at> daniel-mendler.de>
To: 49561 <at> debbugs.gnu.org
Subject: bug#49561: 28.0.50; (declare (modes ...)) does not have an effect
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




This bug report was last modified 4 years and 7 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.