GNU bug report logs - #13265
24.2.91; REGRESSION? Warning: misplaced interactive spec

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Mon, 24 Dec 2012 13:06:02 UTC

Severity: important

Found in version 24.2.91

Fixed in version 24.2.92

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13265 in the body.
You can then email your comments to 13265 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#13265; Package emacs. (Mon, 24 Dec 2012 13:06:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo <sdl.web <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 24 Dec 2012 13:06:02 GMT) Full text and rfc822 format available.

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

From: Leo <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2.91; REGRESSION? Warning: misplaced interactive spec
Date: Mon, 24 Dec 2012 20:59:26 +0800
Try compile a file with the following contents:

;;; ---- FILE BEGINS ----
(eval-when-compile (require 'cl))

(defun test ()
  (interactive)
  (declare (special url-http-end-of-headers)))
;;; ---- FILE ENDS ----

I am getting:

  Warning: misplaced interactive spec: `(interactive)'




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13265; Package emacs. (Wed, 26 Dec 2012 19:43:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Leo <sdl.web <at> gmail.com>
Cc: 13265 <at> debbugs.gnu.org
Subject: Re: bug#13265: 24.2.91;
	REGRESSION? Warning: misplaced interactive spec
Date: Wed, 26 Dec 2012 14:41:53 -0500
Leo wrote:

>   Warning: misplaced interactive spec: `(interactive)'

This is a bug in the "yuck" section of the defun macro.

*** lisp/emacs-lisp/byte-run.el	2012-11-19 20:57:36 +0000
--- lisp/emacs-lisp/byte-run.el	2012-12-26 19:32:22 +0000
***************
*** 188,194 ****
                           (memq (car x)  ;C.f. cl-do-proclaim.
                                 '(special inline notinline optimize warn)))
                      (push (list 'declare x)
!                           (if (stringp docstring) (cdr body) body))
                      nil)
                     (t (message "Warning: Unknown defun property `%S' in %S"
                                 (car x) name)))))
--- 188,200 ----
                           (memq (car x)  ;C.f. cl-do-proclaim.
                                 '(special inline notinline optimize warn)))
                      (push (list 'declare x)
!                           (if (stringp docstring)
!                               (if (eq (car-safe (cadr body)) 'interactive)
!                                   (cddr body)
!                                 (cdr body))
!                             (if (eq (car-safe (car body)) 'interactive)
!                                 (cdr body)
!                               body)))
                      nil)
                     (t (message "Warning: Unknown defun property `%S' in %S"
                                 (car x) name)))))





Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Thu, 03 Jan 2013 00:46:01 GMT) Full text and rfc822 format available.

Notification sent to Leo <sdl.web <at> gmail.com>:
bug acknowledged by developer. (Thu, 03 Jan 2013 00:46:02 GMT) Full text and rfc822 format available.

Message #13 received at 13265-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 13265-done <at> debbugs.gnu.org
Subject: Re: bug#13265: 24.2.91;
	REGRESSION? Warning: misplaced interactive spec
Date: Wed, 02 Jan 2013 19:44:22 -0500
Version: 24.2.92

In the absence of comments, patch installed.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 31 Jan 2013 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 94 days ago.

Previous Next


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