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


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Daniel Mendler <mail <at> daniel-mendler.de>
To: bug-gnu-emacs <at> gnu.org
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>
Subject: 28.0.50; (declare (modes ...)) does not have an effect
Date: Wed, 14 Jul 2021 19:13:46 +0200
Has this feature already been implemented?

Test case:

(defun test-cmd1 () ; works
  (interactive nil test-mode))
(command-modes #'test-cmd1) ; evaluates to (test-mode)

(defun test-cmd2 () ; does not work
  (interactive)
  (declare (modes test-mode)))
(command-modes #'test-cmd2) ; evaluates to nil

In GNU Emacs 28.0.50 (build 28, x86_64-pc-linux-gnu, GTK+ Version
3.24.5, cairo version 1.16.0)
 of 2021-07-14 built on projects
Repository revision: 42b8edfdb9096af7010609fd8890c76bc3918873
Repository branch: HEAD
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description: Debian GNU/Linux 10 (buster)




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

Previous Next


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