From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: "fall-through" generic function args plus &context Date: Thu, 29 Dec 2016 09:42:41 -0500 Message-ID: References: <87r34u8m55.fsf@ericabrahamsen.net> <87d1gexq6v.fsf@ericabrahamsen.net> <87y3z1z3pg.fsf@ericabrahamsen.net> <8760m3a2lu.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1483032581 30087 195.159.176.226 (29 Dec 2016 17:29:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Dec 2016 17:29:41 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 29 18:29:32 2016 Return-path: Envelope-to: geh-help-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 1cMeW3-0005sZ-0P for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Dec 2016 18:29:23 +0100 Original-Received: from localhost ([::1]:36640 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMeW8-0004Nz-1s for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Dec 2016 12:29:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMbxN-0001iP-61 for help-gnu-emacs@gnu.org; Thu, 29 Dec 2016 09:45:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMbxK-0004L4-5L for help-gnu-emacs@gnu.org; Thu, 29 Dec 2016 09:45:25 -0500 Original-Received: from [195.159.176.226] (port=47461 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cMbxJ-0004Km-UB for help-gnu-emacs@gnu.org; Thu, 29 Dec 2016 09:45:22 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cMbx4-000374-02 for help-gnu-emacs@gnu.org; Thu, 29 Dec 2016 15:45:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 13 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:wximogkAifOJMfQUnZaTeTfDuD4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-Mailman-Approved-At: Thu, 29 Dec 2016 12:29:00 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112020 Archived-At: > Perhaps fundamental-mode should work, but I intuitively tried (&context > (major-mode nil)) and (&context (major-mode t)). By "should" I meant that it's a bug that neither works. > Also, so far as I can tell, the correct function signature for the > defgeneric should be (&context (major-mode t)), is that correct? > At least, that didn't raise any errors. cl-defgeneric doesn't actually pay attention to the signature you provide. Stefan