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: call-process and incremental display of output Date: Wed, 17 Oct 2018 10:59:28 -0400 Message-ID: References: <87y3ay2fcy.fsf@oldenburg.str.redhat.com> <87ftx5x9bv.fsf@oldenburg.str.redhat.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1539788295 4462 195.159.176.226 (17 Oct 2018 14:58:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Oct 2018 14:58:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) 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 16:58:11 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 1gCnH1-00013R-6n for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Oct 2018 16:58:11 +0200 Original-Received: from localhost ([::1]:37186 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCnJ7-000514-SD for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Oct 2018 11:00:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCnIQ-0004zf-GR for help-gnu-emacs@gnu.org; Wed, 17 Oct 2018 10:59:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCnIM-00084Q-JE for help-gnu-emacs@gnu.org; Wed, 17 Oct 2018 10:59:38 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:50184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCnIL-0007yV-6E for help-gnu-emacs@gnu.org; Wed, 17 Oct 2018 10:59:34 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w9HExSCl004773; Wed, 17 Oct 2018 10:59:28 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 7A54FAE145; Wed, 17 Oct 2018 10:59:28 -0400 (EDT) In-Reply-To: <87ftx5x9bv.fsf@oldenburg.str.redhat.com> (Florian Weimer's message of "Wed, 17 Oct 2018 10:32:04 +0200") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6397=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6397> : inlines <6935> : streams <1801579> : uri <2732421> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:118304 Archived-At: > I see. Further questions: How can I restore the window configuration > after the process terminates? Is there something similar to > save-excursion? Depends if you care about whether the buffer might be displayed in another frame (as would typically be the case in my config). If you don't care about other people's configs and you only use a single frame, there's save-window-excursion (but for configs like mine, every use of save-window-excursion is generally a source of problems). A simpler solution to "undo" a pop-to-buffer is to (bury-buffer). > How can I make the displayed buffer to scroll to the end? You might like to (setq-local window-point-insertion-type t) in your buffer (make sure you do it before the buffer is displayed in a window). Stefan