From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: cl-defgeneric vs random funcall in project.el Date: Thu, 30 Jul 2015 17:26:41 -0400 Message-ID: References: <86oaiwa57v.fsf@stephe-leake.org> <55B79B3F.1060200@yandex.ru> <55B81B74.5080507@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1438291645 1740 80.91.229.3 (30 Jul 2015 21:27:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jul 2015 21:27:25 +0000 (UTC) Cc: Stephen Leake , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 30 23:27:14 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZKvMA-0008T7-9w for ged-emacs-devel@m.gmane.org; Thu, 30 Jul 2015 23:27:14 +0200 Original-Received: from localhost ([::1]:42032 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKvM9-0006JZ-CB for ged-emacs-devel@m.gmane.org; Thu, 30 Jul 2015 17:27:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKvLs-0006GQ-NH for emacs-devel@gnu.org; Thu, 30 Jul 2015 17:26:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKvLp-0007uW-II for emacs-devel@gnu.org; Thu, 30 Jul 2015 17:26:56 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:41901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKvLp-0007uN-Ct for emacs-devel@gnu.org; Thu, 30 Jul 2015 17:26:53 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.DIT.UMontreal.CA (8.14.1/8.14.1) with ESMTP id t6ULQqmP030867; Thu, 30 Jul 2015 17:26:53 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id CDAF8AE09C; Thu, 30 Jul 2015 17:26:41 -0400 (EDT) In-Reply-To: <55B81B74.5080507@yandex.ru> (Dmitry Gutov's message of "Wed, 29 Jul 2015 03:16:52 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5383=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5383> : inlines <3499> : streams <1480393> : uri <2000345> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:188208 Archived-At: >> FWIW, this sucks because this method won't be used in modes derived from >> emacs-lisp-mode. > If we *really* wanted to use the same mechanism, though, I think > implementing &context (derived-p emacs-lisp-mode) is not impossible. I think the syntax "&context (derived-p emacs-lisp-mode)" is impossible, but indeed, something that behaves correctly is possible, maybe with a syntax like "&context ((parent-modes) (includes emacs-lisp-mode))" or "&context (major-mode (derived-mode-of emacs-lisp-mode))". Stefan