From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Branham Newsgroups: gmane.emacs.bugs Subject: bug#33170: 27.0.50; interactive spec with cl-defgeneric/method Date: Fri, 26 Oct 2018 17:19:44 -0500 Message-ID: <87efccmjun.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1540592295 6554 195.159.176.226 (26 Oct 2018 22:18:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 26 Oct 2018 22:18:15 +0000 (UTC) User-Agent: mu4e 1.1.0; emacs 27.0.50 To: 33170@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 27 00:18:11 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGAQl-0001aT-6w for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Oct 2018 00:18:11 +0200 Original-Received: from localhost ([::1]:34341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGASr-0006wp-29 for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Oct 2018 18:20:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGASh-0006wj-Uv for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2018 18:20:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gGASd-0003ex-P9 for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2018 18:20:11 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40147) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gGASa-0003ed-7u for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2018 18:20:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gGASa-0006fE-08 for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2018 18:20:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Branham Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Oct 2018 22:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33170 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.154059240125602 (code B ref -1); Fri, 26 Oct 2018 22:20:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Oct 2018 22:20:01 +0000 Original-Received: from localhost ([127.0.0.1]:44405 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGASX-0006es-29 for submit@debbugs.gnu.org; Fri, 26 Oct 2018 18:20:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGASU-0006ef-VP for submit@debbugs.gnu.org; Fri, 26 Oct 2018 18:19:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gGASP-0003ba-0u for submit@debbugs.gnu.org; Fri, 26 Oct 2018 18:19:53 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43529) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gGASO-0003bW-TI for submit@debbugs.gnu.org; Fri, 26 Oct 2018 18:19:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGASO-0006uP-3e for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2018 18:19:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gGASL-0003aX-0d for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2018 18:19:52 -0400 Original-Received: from mail-oi1-x22c.google.com ([2607:f8b0:4864:20::22c]:39518) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gGASK-0003aC-QC for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2018 18:19:48 -0400 Original-Received: by mail-oi1-x22c.google.com with SMTP id e3-v6so2355782oiy.6 for ; Fri, 26 Oct 2018 15:19:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=4/Hhokwoll0cVVxXuWaToXAtJ7BA05vrVxlUU5GC2Gg=; b=GGo5flEE8J8JJWPEo9JR5uzPgFxiBbssLaaay8RKsB6nPY1t+Fmuz771p2lVWPsTO4 dQ4OfJ4efQoQ2b0DQgkSl9D0+cdARYqeDzD30AZVTyck1rgWq65d0ZDWRFn9eLEPAGE6 EnXphxC6u5aUGYzkgkhoX5LeQz0qf47OMvABJ2lCQ4R4KTizUNWDfiXhfTl7MBqtGgI1 zfJpdAF0gLbbnd2xGj+VUA+hO+ljPwbPChPkycVohpOB4aKv0sFFOuUelD2LLRNG+yVq oAHPjNP6gNZulM0IALmUkigzSYAatIWu8FDCMf1EBvD/XqX5d1UfvFxEDugkjpPZkLLt JZ/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=4/Hhokwoll0cVVxXuWaToXAtJ7BA05vrVxlUU5GC2Gg=; b=LzvDHHEdicVM9p28CzuvIpPM5jOYDcU90rSBSz+QgWdM8xB2DRKR0SP1itNH+UcZUm yVyz162K4znIrDdQIHlvQCJ9CU28q0I0UNQmiEg7AVVffFQUv14HL/09z+sBKOXtsa62 pViLIVRigSVtqblIR+uYP/Ih82rnt3bT/WezDqEche3anX8hrI0qFrYRGyWvzNAy0Ubd UjgkRvFUDRLhHxcvXKT+05P8RtHHHWJjoyHE1l00/bBwZPY+LdMpsTn/V7xsMzmUhIcD STDnVDEexvUUDGJThVxfjk7erpwTj5J/AzKd5zKnE8JnJAmElSTtZQaPKH/jb2CsMtof mkCA== X-Gm-Message-State: AGRZ1gKSnydKwd9kK4IWoaQ+fDV6hc8+7Vwz4swFfVcwdHHqhD2AFE0M +yWESG09KFInrys6m8Do6ciLPAYW X-Google-Smtp-Source: AJdET5eSOVYCvf+HMtuWGK5tKZg7Q97g/2b6LXdQYcTy8RWR0DUf1weM8s4gf/VCBtd0Ow37HRu3pQ== X-Received: by 2002:aca:dd08:: with SMTP id u8-v6mr3118727oig.94.1540592387342; Fri, 26 Oct 2018 15:19:47 -0700 (PDT) Original-Received: from earth (cpe-70-114-192-208.austin.res.rr.com. [70.114.192.208]) by smtp.gmail.com with ESMTPSA id a68-v6sm3266614oih.19.2018.10.26.15.19.46 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Oct 2018 15:19:46 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:151651 Archived-At: --=-=-= Content-Type: text/plain I'm struggling to understand how to make functions defined with cl-defgeneric interactive: (require 'cl-lib) (cl-defgeneric my/test () (interactive) (message "generic")) If you evaluate that you can do M-x my/test, as expected. However, as soon as you evaluate this: (cl-defgeneric my/test (&context (major-mode emacs-lisp-mode)) (interactive) (message "method")) M-x my/test no longer works. Is this a bug or am I misunderstanding how this works? Thanks, Alex --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEeEJ4XAMgliXNXicpHkInolPpmscFAlvTkwAACgkQHkInolPp msdtlggAwKc2BPHJnSdyz0+/f+ViUenweN0P1UVA1Um0EeuGmQdyYjOI3jmpqn4V KmSxHFrX8QaUd0T//6hI0xn2vzAx4LM4PWjwS5LSdR/QKK0J8zppGv8Epd5eDy81 iOSLIgh5Z6a1upKJxpsVCfwZoJ/5yD7/QRTSGKrCIQaKAdkgzdp91l1MuwZN6J6j upp4iIYaWMfvYdsHMCKl5xaFaKN0dyluzVSJIpivIiggOTreZjGHDJN1qAqve6HB S/WFH4tdXYOa2q4WN3dlttH7U6AmxzrJ42GdwbnAUUvrKiMEXuR/d56QO2Ozs8V9 nKAoPFitky8WNXnPx5n2+bIppH3a0A== =0D2b -----END PGP SIGNATURE----- --=-=-=--