From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: cl-defgeneric vs random funcall in project.el Date: Tue, 28 Jul 2015 06:31:32 -0500 Message-ID: <86oaiwa57v.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1438083139 15703 80.91.229.3 (28 Jul 2015 11:32:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jul 2015 11:32:19 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 28 13:32:08 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 1ZK378-0007Rb-Im for ged-emacs-devel@m.gmane.org; Tue, 28 Jul 2015 13:32:06 +0200 Original-Received: from localhost ([::1]:58106 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZK377-0007gm-8U for ged-emacs-devel@m.gmane.org; Tue, 28 Jul 2015 07:32:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZK36r-0007fs-9p for emacs-devel@gnu.org; Tue, 28 Jul 2015 07:31:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZK36n-0007MW-HT for emacs-devel@gnu.org; Tue, 28 Jul 2015 07:31:49 -0400 Original-Received: from gproxy1-pub.mail.unifiedlayer.com ([69.89.25.95]:49981) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ZK36n-0007M8-A8 for emacs-devel@gnu.org; Tue, 28 Jul 2015 07:31:45 -0400 Original-Received: (qmail 14801 invoked by uid 0); 28 Jul 2015 11:31:40 -0000 Original-Received: from unknown (HELO cmgw2) (10.0.90.83) by gproxy1.mail.unifiedlayer.com with SMTP; 28 Jul 2015 11:31:40 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by cmgw2 with id xnXb1q0042UdiVW01nXets; Tue, 28 Jul 2015 05:31:38 -0600 X-Authority-Analysis: v=2.1 cv=O9qq4nNW c=1 sm=1 tr=0 a=CQdxDb2CKd3SRg4I0/XZPQ==:117 a=CQdxDb2CKd3SRg4I0/XZPQ==:17 a=DsvgjBjRAAAA:8 a=f5113yIGAAAA:8 a=9i_RQKNPAAAA:8 a=y7kgw_RnJtkA:10 a=hEr_IkYJT6EA:10 a=x_XPkuGwIRMA:10 a=zOBTXjUuO1YA:10 a=GLUDXGIKrtFHkuBbQUgA:9 Original-Received: from [76.218.37.33] (port=57053 helo=TAKVER2) by host114.hostmonster.com with esmtpa (Exim 4.84) (envelope-from ) id 1ZK36e-0000R1-MW for emacs-devel@gnu.org; Tue, 28 Jul 2015 05:31:36 -0600 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) X-Identified-User: {2442:host114.hostmonster.com:stephele:stephe-leake.org} {sentby:smtp auth 76.218.37.33 authed with stephen_leake@stephe-leake.org} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 69.89.25.95 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:188119 Archived-At: What is the rationale for having both cl-defgeneric and random funcall in project.el? For example, 'project-search-path' is a cl-defgeneric, which means the various backends (elisp, etags, eventually Ada mode) can override it with cl-defmethod. But the default method uses 'project-search-path-function', which elisp-mode sets to `elisp-search-function'; elisp.el does not use cl-defmethod to override project-search-path. Why do we need both dispatching methods? I suggest this rationale be documented in the Commentary section of the project.el header comment. -- -- Stephe