* bug#13265: 24.2.91; REGRESSION? Warning: misplaced interactive spec
@ 2012-12-24 12:59 Leo
2012-12-26 19:41 ` Glenn Morris
0 siblings, 1 reply; 3+ messages in thread
From: Leo @ 2012-12-24 12:59 UTC (permalink / raw)
To: 13265
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)'
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#13265: 24.2.91; REGRESSION? Warning: misplaced interactive spec
2012-12-24 12:59 bug#13265: 24.2.91; REGRESSION? Warning: misplaced interactive spec Leo
@ 2012-12-26 19:41 ` Glenn Morris
2013-01-03 0:44 ` Glenn Morris
0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2012-12-26 19:41 UTC (permalink / raw)
To: Leo; +Cc: 13265
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)))))
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#13265: 24.2.91; REGRESSION? Warning: misplaced interactive spec
2012-12-26 19:41 ` Glenn Morris
@ 2013-01-03 0:44 ` Glenn Morris
0 siblings, 0 replies; 3+ messages in thread
From: Glenn Morris @ 2013-01-03 0:44 UTC (permalink / raw)
To: 13265-done
Version: 24.2.92
In the absence of comments, patch installed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-01-03 0:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-24 12:59 bug#13265: 24.2.91; REGRESSION? Warning: misplaced interactive spec Leo
2012-12-26 19:41 ` Glenn Morris
2013-01-03 0:44 ` Glenn Morris
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).