Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 08CC3431FD0 for ; Tue, 25 Oct 2011 00:39:53 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q+UvHMc73MTa for ; Tue, 25 Oct 2011 00:39:52 -0700 (PDT) Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222]) by olra.theworths.org (Postfix) with ESMTP id 45D02431FB6 for ; Tue, 25 Oct 2011 00:39:52 -0700 (PDT) Received: from thor.loria.fr (thor.loria.fr [152.81.12.250]) by ks3536.kimsufi.com (Postfix) with ESMTPSA id 733096A0005; Tue, 25 Oct 2011 09:39:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net; s=key-schnouki; t=1319528391; bh=HtnDo2WMsNNPPUrQD3/Pq+ClJwQv0CLMvTEOaW6nlKE=; h=From:To:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=fP1Pqjn2LoqxejWYbo3eP3ZIfOCbhKvsOddqvcyAAlu7QNUrJSXJmvybkXjTx16TB GiKxZuC9O/hj5FHMkmxMCzZRS6emTX3EphJI1Q2paj8c+SFtKDBx2Gycf5zobz6IHt 6WVFM2N4xMp0iZHIowCSkmDKUpHWhBxOXOZOgnYM= From: Thomas Jost To: Jameson Graef Rollins , notmuch@notmuchmail.org Subject: Re: [PATCH 2/4] emacs: Support a message-mode switch function in notmuch-mua In-Reply-To: <87pqhu2w87.fsf@servo.finestructure.net> References: <1317643438-31272-1-git-send-email-schnouki@schnouki.net> <1317643438-31272-3-git-send-email-schnouki@schnouki.net> <877h4cc0bn.fsf@washington.ligo-wa.caltech.edu> <8739eztijn.fsf@schnouki.net> <87pqhu2w87.fsf@servo.finestructure.net> User-Agent: Notmuch/0.9-39-ge84ff5d (http://notmuchmail.org) Emacs/24.0.90.1 (x86_64-unknown-linux-gnu) Date: Tue, 25 Oct 2011 09:39:47 +0200 Message-ID: <87pqhlh64c.fsf@thor.loria.fr> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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: Tue, 25 Oct 2011 07:39:53 -0000 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 18 Oct 2011 07:46:48 -0700, Jameson Graef Rollins wrote: > On Tue, 11 Oct 2011 21:49:48 +0200, Thomas Jost w= rote: > > > Another question about this feature: how do you make the window > > > (frame) go away after the email is sent? > >=20 > > I do this: > > (add-hook 'message-sent-hook 'delete-frame) >=20 > Hey, Thomas. Would it be possible to add this frame/window close > functionality directly into this new configuration? It would be really > nice if we could work it out such that if you have new mail buffers open > in a new window/frame that the window/frame is automatically closed once > the message is sent. Yes, it's possible using dedicated windows (for details: C-h f set-window-dedicated-p). But it's a little trickier to use: if you call it from a switch-function, it doesn't work when forwarding a message. There's probably something in message-forward that causes the dedicated flag to be reset to nil, but I could not find what. So instead I wrote a little workaround that may be easier to use. I'll send the commit as a reply. Regards, =2D-=20 Thomas/Schnouki --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJOpmfDAAoJEMPdciX+bh5Ipd0H/3gLOyEiT2ZfcDvEpjAYdl9r Oe10Vc64k+j5xtjx0IYbHgwI3t6pOHncvjKzrdJ7nbOW/J/pUCJdUT3/YVG3WDq8 xnt3C1kkXHAuJFvgN/sh001vkIoxTSsgvoCMBMmTx+eh2/L2EgMKqWJVxrGLQvUK dTTDOXQwvJmRmMksBfBcI77fKaSfCgfZNXiXk+Ly8xzPROMdP7guP8zVdBkEe9kS kceOefjGc29eTFHQtyQb7WjvKuHBmEUe+0gfBnEiELvnHmgqTOE0WUQBpROOYi8Z JaaIEvtWP5Ezgf12d8/dergIys15+Spa3ZqK0hdkAyHOr7uMhR4otO49eG4p624= =GuPR -----END PGP SIGNATURE----- --=-=-=--