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: Mon, 29 Oct 2018 09:18:53 -0500 Message-ID: <877ei0n8du.fsf@gmail.com> References: <87efccmjun.fsf@gmail.com> <83lg6jop6b.fsf@gnu.org> <87k1m3lg0k.fsf@gmail.com> <83woq3mopc.fsf@gnu.org> <87d0rva1fx.fsf@gmail.com> <83r2gbmksh.fsf@gnu.org> 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 1540823010 15873 195.159.176.226 (29 Oct 2018 14:23:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 29 Oct 2018 14:23:30 +0000 (UTC) User-Agent: mu4e 1.1.0; emacs 27.0.50 Cc: 33170@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 29 15:23:25 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 1gH8Rv-0003yL-AK for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Oct 2018 15:23:23 +0100 Original-Received: from localhost ([::1]:45964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gH8U1-0006kJ-Jp for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Oct 2018 10:25:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gH8Ol-0005M9-N5 for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2018 10:20:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gH8Oh-0004mH-2f for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2018 10:20:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47749) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gH8Og-0004m1-Uv for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2018 10:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gH8Og-0007Nw-HU for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2018 10:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Branham Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Oct 2018 14:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33170 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33170-submit@debbugs.gnu.org id=B33170.154082274528305 (code B ref 33170); Mon, 29 Oct 2018 14:20:02 +0000 Original-Received: (at 33170) by debbugs.gnu.org; 29 Oct 2018 14:19:05 +0000 Original-Received: from localhost ([127.0.0.1]:52007 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gH8Nk-0007MT-LR for submit@debbugs.gnu.org; Mon, 29 Oct 2018 10:19:04 -0400 Original-Received: from mail-oi1-f178.google.com ([209.85.167.178]:46778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gH8Ni-0007Lu-OT for 33170@debbugs.gnu.org; Mon, 29 Oct 2018 10:19:03 -0400 Original-Received: by mail-oi1-f178.google.com with SMTP id k64-v6so7167414oia.13 for <33170@debbugs.gnu.org>; Mon, 29 Oct 2018 07:19:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=hkWlWsL1Gfoo/BaKmnFq+X3heIozOzTcRODRGex8yqc=; b=NByDvs5oWx/n8s6wziVWDDVlrHgmPSmgUmUUoy2h4qgIirXAcfW+kfkAAoqkxn2qMb mlzoXB0AOLBLzZ21Cq0xRmXwWrsNosJ/9vFOeAZQbf/EUuHAvpb42qHBtpBRy57F9Cyd iPwpvSNDcZmiAHzEoU6W2zXGzarq1MKgIFRRWV3fECyuXdqeH8NjXKlxLkX09d/Bp58U LUWTHE7Esalvl1tiIUid2Hdhe5AsDk3W6Rg1uEXoJzgLDkfNgJdCKXB0h8weAEFqAeLI w8lM/loWYlmvdC2aHpO6QAuBr3gWYuBo9FZg4QNIlnZI82Os6EU+1AqqrUfD9c/lE5nr I+VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=hkWlWsL1Gfoo/BaKmnFq+X3heIozOzTcRODRGex8yqc=; b=Jya0zVfdnHISOb/rVJPBsXK2WDOrtbg5NadtkQ8dAua85rlu5DdfBvh8x+t/ubiGmr itXlbKVhLUEYzL0wxCDvcVEGqrOb7VDRAgVf6aE3HpF8+oANmksnm/Cw1oxKEWDUmDGs N2MEFD2Ok+71WIRkPZ2tb7gSMngsX8IVq76GMUN7gPscKKSBhxnoL1IDk5m+3uTRCt+I dP0dgQc8WuMVbRpxGxRBRuSZUOrDa6gbsiVeoQYJ0XlM6uUIYCLboTwy1sJEvr4+xF/p bbl+tFTQXYGxCRgFoeT15HinNqaPwVkM9YAT2KGOEb2jwl5XUS1dsyS3gnQqyWeAVvrt 7r0A== X-Gm-Message-State: AGRZ1gIrwwjudFaBrQuMA7v53LYQ8rabZHR+vdfNtKiCDlZluMIPfJJc 7Pfg3cBbAaqjjk3Up57wtTcmY7Oa X-Google-Smtp-Source: AJdET5fKf1WYL8qk+wdSl15tHzMaglfNQqq/ZxN344GMfJJyC42krS3oc8QVcgWwuZNStvlzURvNOw== X-Received: by 2002:aca:fd12:: with SMTP id b18-v6mr9142093oii.337.1540822736682; Mon, 29 Oct 2018 07:18:56 -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 w17sm6955360oth.1.2018.10.29.07.18.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Oct 2018 07:18:55 -0700 (PDT) In-reply-to: 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:151776 Archived-At: --=-=-= Content-Type: text/plain On Sat 27 Oct 2018 at 16:49, Stefan Monnier wrote: > AFAIC it's a limitation. We could support interactive specs, but I'm > really not convinced it's worth the trouble. If using 2 functions (one > generic and one interactive, which calls the generic one) is really > annoying for some reason, I guess you could use > > (put ' 'interactive-form
) > > but I think this property should be deprecated, so don't tell anyone > (especially don't tell me) that I even mentioned it to you, Thanks for the response. Seems like the two-function solution is the way to go I guess. I do think this should be documented as a limitation somewhere though. Perhaps a note at the end of that section in the manual along the lines: Note that a current limitation of generic functions is that they may not be interactive. The recommended way of working around this is to define an interactive function that simply calls the generic function. That's not strictly true of course since (cl-defgeneric foo () (interactive) (message "foo")) works just fine. It's adding methods that seems to mess it up. Alex --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEeEJ4XAMgliXNXicpHkInolPpmscFAlvXFs0ACgkQHkInolPp msf6Agf/RvzHgNqFBU2s42OFDZtbxdpCMdHbtynZZheI/shA7kmEbg8MLoEncgXo /2oflVGq46fMD2BOeq/wQeGPnRcFFO9xVa2sFOQ/M+Hv9cKClLmbm24KROTXTSOL 7KkzVZuBOXk4e+AExPPXlfFppnW2oGFtl+DuR1C++7irtJ+dJTzMOhrv0GF5VBNR aByAJKmf2nKEf3+9t7ugnFMjgPv1DctsbRyJfAZFwq3e2lrHigPUNZv52S+15uyb aHaqMTYTxbUTxZBoj/uoBVIWOQPph4PNIW6EgBMrETIH9NE6iuyGswR4+9xCtqw1 rpsfXj+EBJTghR2XzM4/dxW1ETZl9Q== =Tvtx -----END PGP SIGNATURE----- --=-=-=--