From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philippe Vaucher Newsgroups: gmane.emacs.bugs Subject: bug#21618: Warning (bytecomp): misplaced interactive spec Date: Mon, 5 Oct 2015 15:34:11 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b5d424052d23b05215b9324 X-Trace: ger.gmane.org 1444052190 11152 80.91.229.3 (5 Oct 2015 13:36:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Oct 2015 13:36:30 +0000 (UTC) To: 21618@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 05 15:36:18 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zj5w8-0005Hc-M9 for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Oct 2015 15:36:16 +0200 Original-Received: from localhost ([::1]:45811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj5w8-0005bO-4k for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Oct 2015 09:36:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj5w2-0005Xg-Np for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 09:36:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zj5vw-0008Uq-Qa for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 09:36:10 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37735) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj5vw-0008US-Ne for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 09:36:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zj5vv-0007Sl-Ol for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 09:36:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philippe Vaucher Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Oct 2015 13:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21618 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144405210328612 (code B ref -1); Mon, 05 Oct 2015 13:36:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Oct 2015 13:35:03 +0000 Original-Received: from localhost ([127.0.0.1]:54939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zj5uw-0007RP-EC for submit@debbugs.gnu.org; Mon, 05 Oct 2015 09:35:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38148) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zj5ur-0007R3-7C for submit@debbugs.gnu.org; Mon, 05 Oct 2015 09:34:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zj5ui-0007K4-9Q for submit@debbugs.gnu.org; Mon, 05 Oct 2015 09:34:57 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj5ui-0007K0-6O for submit@debbugs.gnu.org; Mon, 05 Oct 2015 09:34:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj5ug-0004Fd-SA for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 09:34:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zj5uc-0007Ja-4D for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 09:34:46 -0400 Original-Received: from mail-ob0-x232.google.com ([2607:f8b0:4003:c01::232]:35358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj5ub-0007JU-UW for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 09:34:42 -0400 Original-Received: by obbzf10 with SMTP id zf10so128346073obb.2 for ; Mon, 05 Oct 2015 06:34:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=XLDAdSoOBhYt0KOHTjNlp96cfQpAC/wOBMHKVHoODcE=; b=QB/mcSsrw44UfyQT8OVd5IMOccamcv9PPxDvnB5c8Inc69bHrQCKkXo38oL6aOKNje 5MqFVTlE8n4JlOHHzkob2to+uLvUNEvuiSDz4B+EL9N520BRI7u9MMzG5PXHPAWJQnpG AZkxXNZ34DqmUX5nHuYXZruq9y1/puIGDtGmQpTpQoeS/CRTJZ1UgttnmAOiixlG/2Cf +lBsYDLoiAd+sG8pGZpxeRKmA58HN+mpYSjq32GRfxZUuoBe1/CUQgFapqG0/qk5p9BX Ov85d0bWQ+uIUMwOhy4K8ZTOmrHXbYUuti5oxc5i5ps0gbmg+5VMB6MKAiz7tPO5bFhd x1lg== X-Received: by 10.60.123.2 with SMTP id lw2mr18103550oeb.2.1444052080970; Mon, 05 Oct 2015 06:34:40 -0700 (PDT) Original-Received: by 10.202.209.201 with HTTP; Mon, 5 Oct 2015 06:34:11 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107317 Archived-At: --047d7b5d424052d23b05215b9324 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, I'm using Emacs snapshot from https://launchpad.net/~ubuntu-elisp/+archive/ubuntu/ppa on ubuntu 15.04, which at the moment is "GNU Emacs 25.0.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.14.13) of 2015-10-05." Whenever I start emacs I get the following warning: Warning (bytecomp): misplaced interactive spec: =E2=80=98(interactive (let = ((args (find-tag-interactive "[PCRE] Find tag regexp: " t))) (list (rxt-pcre-to-elisp (nth 0 args)) (nth 1 args) (nth 2 args))))=E2=80=99 The function it refers to looks well defined: (defadvice find-tag-regexp (before pcre-mode first (regexp &optional next-p other-window) disable) "Read regexp using PCRE syntax and convert to Elisp equivalent." "Perform `find-tag-regexp' using emulated PCRE regexp syntax." (interactive (let ((args (find-tag-interactive "[PCRE] Find tag regexp: " t))) (list (rxt-pcre-to-elisp (nth 0 args)) (nth 1 args) (nth 2 args))))) The code I'm refering to is https://github.com/joddie/pcre2el/blob/master/pcre2el.el#L967 What is funny is that there is another `defadvice' that follows almost exactly the same pattern right before this one and the other one doesn't trigger the warning. This made me do some research and basically I think the problem is in `find-tag-regexp': (defun find-tag-regexp (regexp &optional next-p other-window) "(snip doc)" (declare (obsolete xref-find-apropos "25.1")) (interactive (find-tag-interactive "Find tag regexp: " t)) ;; We go through find-tag-other-window to do all the display hair there. (funcall (if other-window 'find-tag-other-window 'find-tag) regexp next-p t)) As you can see, it starts with a `declare' form instead of the `interactive' form, and I think it confuses the `defadvice'. Tell me if you need more information. Thanks in advance, Philippe --047d7b5d424052d23b05215b9324 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

I'm using Emacs snapshot fro= m=C2=A0= https://launchpad.net/~ubuntu-elisp/+archive/ubuntu/ppa on ubuntu 15.04= , which at the moment is "GNU Emacs 25.0.50.2 (x86_64-pc-linux-gnu, GT= K+ Version 3.14.13) of 2015-10-05."

Whenever I = start emacs I get the following warning:

Warn= ing (bytecomp): misplaced interactive spec: =E2=80=98(interactive (let ((ar= gs (find-tag-interactive "[PCRE] Find tag regexp: " t))) (list (r= xt-pcre-to-elisp (nth 0 args)) (nth 1 args) (nth 2 args))))=E2=80=99
<= /div>

The function it refers to looks well defined= :

(defadvice find-tag-regexp
=C2=A0= (before pcre-mode first (regexp &optional next-p other-window) disable= )
=C2=A0 "Read regexp using PCRE syntax and convert to Elisp= equivalent."
=C2=A0 "Perform `find-tag-regexp' usi= ng emulated PCRE regexp syntax."
=C2=A0 (interactive
=C2=A0 =C2=A0(let ((args (find-tag-interactive "[PCRE] Find tag reg= exp: " t)))
=C2=A0 =C2=A0 =C2=A0(list (rxt-pcre-to-elisp (nt= h 0 args))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(nth 1 args) = (nth 2 args)))))

The code I'm refering t= o is=C2=A0https://github.com/joddie/pcre2el/blob/master/pcre2el.el#L967<= /div>

What is funny is that there is another `defadvice&= #39; that follows almost exactly the same pattern right before this one and= the other one doesn't trigger the warning.

Th= is made me do some research and basically I think the problem is in `find-t= ag-regexp':

(defun find-tag-regexp (regex= p &optional next-p other-window)
=C2=A0 "(snip doc)"= ;
=C2=A0 (declare (obsolete xref-find-apropos "25.1"))<= /div>
=C2=A0 (interactive (find-tag-interactive "Find tag regexp: = " t))
=C2=A0 ;; We go through find-tag-other-window to do al= l the display hair there.
=C2=A0 (funcall (if other-window 'f= ind-tag-other-window 'find-tag)
=C2=A0 regexp next-p t))

<= div>
As you can see, it starts with a `declare' form inst= ead of the `interactive' form, and I think it confuses the `defadvice&#= 39;.

Tell me if you need more information.

Thanks in advance,
Philippe

--047d7b5d424052d23b05215b9324--