From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.help Subject: Re: call-process and incremental display of output Date: Wed, 17 Oct 2018 11:40:44 +0200 Message-ID: <20181017094044.GG31501@tuxteam.de> References: <87y3ay2fcy.fsf@oldenburg.str.redhat.com> <87ftx5x9bv.fsf@oldenburg.str.redhat.com> <20181017092156.GE31501@tuxteam.de> <87in20x6g9.fsf@oldenburg.str.redhat.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hTiIB9CRvBOLTyqY" X-Trace: blaine.gmane.org 1539769149 9515 195.159.176.226 (17 Oct 2018 09:39:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Oct 2018 09:39:09 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) Cc: help-gnu-emacs@gnu.org To: Florian Weimer Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 17 11:39:05 2018 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 1gCiID-0002OK-EQ for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Oct 2018 11:39:05 +0200 Original-Received: from localhost ([::1]:34964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCiKJ-0001dJ-Ti for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Oct 2018 05:41:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCiJv-0001d7-Ib for help-gnu-emacs@gnu.org; Wed, 17 Oct 2018 05:40:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCiJq-0007ph-Ld for help-gnu-emacs@gnu.org; Wed, 17 Oct 2018 05:40:51 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:57948) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gCiJq-0007kw-BS for help-gnu-emacs@gnu.org; Wed, 17 Oct 2018 05:40:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=HOncWypdo9eW7GFzCa1eA+Z399KLcBScvMIbLxbSP5U=; b=gUCRPLRIewojTTwrxFOn4sGvg2mG1nu5hiBGHdxKd4+eRan5B/7alKvRNO49BeAGB66W1xrXAoU6V7ZvvKNFYkDb3UqhhfWn1lgl/6Mac339OXMXIYEbvwEoa0/lwCxZB3uQbzioGdNb9Xc1Dc2i5N45PNWbjRHglTNOFdFU33P9OrfsI1GGXAFvQaWJs1piEzo1HwOViPJ65jwmnEbewg1/speUFrxt+n/SosBnl6MM4qPK2U/Wc5vRHVtG0IQuvlgxVjJl94BXTrv+uQevvh5ygVUeZLS6eCo8qTTv4fLozHFis7f6EiEiclDA6N293Ha1jSEOY9yeSwtYgYY6HQ==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1gCiJo-0000Zq-D1; Wed, 17 Oct 2018 11:40:44 +0200 Content-Disposition: inline In-Reply-To: <87in20x6g9.fsf@oldenburg.str.redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 5.199.139.25 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:118299 Archived-At: --hTiIB9CRvBOLTyqY Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 17, 2018 at 11:34:14AM +0200, Florian Weimer wrote: > * > On Wed, Oct 17, 2018 at 10:32:04AM +0200, Florian Weimer wrote: > >> * Stefan Monnier: > >>=20 > >> >> (defun fw/get-new-mail () > > > > [...] > > > >> I see. Further questions: How can I restore the window configuration > >> after the process terminates? Is there something similar to > >> save-excursion? > > > > save-window-excursion >=20 > Oops, I could have found this myself. To be fair, Emacs is *huge*. I've always been fascinated by how difficult it is (sometimes) to find things in Emacs, a piece of software which really goes out of its way to aid discoverability. > It's not very Emacs-like, but at least I have something to watch while > mail is downloaded. Thanks! Thanks for the code snippet! Cheers -- tom=C3=A1s --hTiIB9CRvBOLTyqY Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlvHA5wACgkQBcgs9XrR2kZntgCdEHGIZDRo2BkPawRtZs1OQ4yc +3YAn3hM/8rdm8z7ilpRxCfCD0GArAsD =Chgn -----END PGP SIGNATURE----- --hTiIB9CRvBOLTyqY--