Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 6F29E6DE0188 for ; Thu, 12 May 2016 09:10:48 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.006 X-Spam-Level: X-Spam-Status: No, score=-0.006 tagged_above=-999 required=5 tests=[AWL=0.005, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M2jZw5nIHJnj for ; Thu, 12 May 2016 09:10:39 -0700 (PDT) Received: from EXCAS03.olin.edu (smtp.olin.edu [208.91.53.40]) by arlo.cworth.org (Postfix) with ESMTPS id A89436DE00D3 for ; Thu, 12 May 2016 09:10:39 -0700 (PDT) Received: from insight.mit.edu (108.20.254.101) by EX04.olin.edu (10.1.15.12) with Microsoft SMTP Server (TLS) id 15.0.1104.5; Thu, 12 May 2016 12:10:38 -0400 Received: from sanjoy by insight.mit.edu with local (Exim 4.87) (envelope-from ) id 1b0tC9-00072A-40; Thu, 12 May 2016 12:10:37 -0400 From: Sanjoy Mahajan To: David Bremner , Subject: Re: slight workaround needed to use gnus-alias In-Reply-To: <87zirv2rvc.fsf@zancas.localnet> References: <87lh3f1fb8.fsf@insight.mit.edu> <87zirv2rvc.fsf@zancas.localnet> User-Agent: Notmuch/0.22 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Thu, 12 May 2016 12:10:37 -0400 Message-ID: <87inyj1cle.fsf@insight.mit.edu> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [108.20.254.101] X-ClientProxiedBy: EXCAS03.olin.edu (10.1.15.15) To EX04.olin.edu (10.1.15.12) X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2016 16:10:48 -0000 On 2016-05-12 11:55, David Bremner wrote: >> (defun gnus-alias-ensure-message-mode () >> "Assert that the current buffer is a message buffer." >> (when (not (derived-mode-p 'notmuch-message-mode)) >> (gnus-alias-error "Must be in `message-mode' or mode derived from it. "))) >> (add-hook 'message-setup-hook 'gnus-alias-determine-identity) > > Maybe upstream Emacs would accept something like that if it says > "(derived-mode-p 'message-mode)". Agreed! That's what I meant to write (a yank bug somewhere along the line). I am happy to ask upstream on the emacs list, unless you think it would be more likely to be accepted if coming from notmuch developers. -Sanjoy