From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_LOW autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20885 invoked from network); 25 Sep 2020 16:32:03 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with ESMTPUTF8; 25 Sep 2020 16:32:03 -0000 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1kLqda-00GMA9-CX; Fri, 25 Sep 2020 11:31:58 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kLqdW-00GM8D-Nf for ding@lists.math.uh.edu; Fri, 25 Sep 2020 11:31:54 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kLqdV-009Mbw-1D for ding@lists.math.uh.edu; Fri, 25 Sep 2020 11:31:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=XG+WARsS4ofEZlWSJHCga4pMqgRhXuq3OBJpxLtjBZs=; b=UiugA9qrWz/KYJCey/wxFpgf/1 nxq1LNAvE4huF7C5dWCb2BpjNCLJqL8OEyg6JM9qBvml0PDV9mPcgrRocA2v13kNKAGPDXad3gJNH kk4aUYpSjZ/Xa7xIx1h+0uL6W2xtPS68hNqStkoOtA8SHpSXOH8v9I548mXxjT/HGwhs=; Received: from ericabrahamsen.net ([52.70.2.18] helo=mail.ericabrahamsen.net) by quimby with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kLqdO-0004Ds-70 for ding@gnus.org; Fri, 25 Sep 2020 18:31:48 +0200 Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 68BDEFCE60; Fri, 25 Sep 2020 16:31:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1601051503; bh=XG+WARsS4ofEZlWSJHCga4pMqgRhXuq3OBJpxLtjBZs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=S7Tu48+DaRXOEC5NjJXM3rkBViovakEOZqFSlU0cIuZQOqHB3EUyJjAbabCBwOylG ekO4712UDbuv+WKtP6DuqZjtJ5b/tcTnxBlB/ZDf+bnp96RPePV1DwatDvVO5mnAHT 5zPUEMdQvCAKEXy42qWP92WcGsZEAWA8mf4xK2n0= From: Eric Abrahamsen To: Pankaj Jangid Cc: Adam =?utf-8?Q?Sj=C3=B8gren?= , ding@gnus.org Subject: Re: Does Gnus automatically run 'notmuch new' if configured? References: <875z83njo0.fsf@tullinup.koldfront.dk> <87o8luz39v.fsf@ucl.ac.uk> <87o8lukxsm.fsf@tullinup.koldfront.dk> Date: Fri, 25 Sep 2020 09:31:40 -0700 In-Reply-To: (Pankaj Jangid's message of "Fri, 25 Sep 2020 20:14:55 +0530") Message-ID: <873635akcz.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-ID: Precedence: bulk Pankaj Jangid writes: [...] > Now that I have put a lambda function to invoke `async-shell-command`, > it opens up *Async Shell Command* buffer in another window whenever I > press `g`. I want the messages in *Async Shell Command* buffer. But I > don't want it to open up on every call to `gnus-group-get-new-news`. Ahem, I may have led you astray with `async-shell-command', which is mostly meant to be called interactively -- in which case you usually want to see the output. In lisp code that runs in the background, you're better off using `start-process', where you can tell it not to keep the output: (start-process "unnecessary label" nil "/path/to/notmuch" '("new")) This returns a process object that you're supposed to continue interacting with, but in your case you can just disregard it. Sorry about that! Wasn't thinking clearly. Eric