From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.devel Subject: Re: Recenter automatically the window showing output buffer Date: Sun, 8 Jul 2018 22:22:26 +0900 (JST) Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Trace: blaine.gmane.org 1531056081 12379 195.159.176.226 (8 Jul 2018 13:21:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Jul 2018 13:21:21 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: Tino Calancha To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 08 15:21:16 2018 Return-path: Envelope-to: ged-emacs-devel@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 1fc9cp-00036U-F4 for ged-emacs-devel@m.gmane.org; Sun, 08 Jul 2018 15:21:15 +0200 Original-Received: from localhost ([::1]:37039 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fc9ew-0002Dr-JY for ged-emacs-devel@m.gmane.org; Sun, 08 Jul 2018 09:23:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fc9eH-0002Dk-SD for emacs-devel@gnu.org; Sun, 08 Jul 2018 09:22:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fc9eC-0003wu-TY for emacs-devel@gnu.org; Sun, 08 Jul 2018 09:22:45 -0400 Original-Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]:43065) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fc9eC-0003wV-Md for emacs-devel@gnu.org; Sun, 08 Jul 2018 09:22:40 -0400 Original-Received: by mail-pf0-x234.google.com with SMTP id y8-v6so11769519pfm.10 for ; Sun, 08 Jul 2018 06:22:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=LDNzFxIp6DOXpXRNikojkulcZmTs5RnDC+zWzu/7VwI=; b=T3HkJHcWkigO7b7/O2fsn9atgiXHCHZvww1RQjnY/BqWqs1oqnw+0zp06achy8Yg48 FL+pmKajGIdjFxgUWLr/oG9dn5MQhHqHiBVQVWG+cFwo1UaqV9VieYvH8u2jXMF1Z2ZF UyQn/imprQGIYKgg5UwL6VSEwxWMg1gW5I2prmeQ64hUWx/ZOCu6WbuK+cKLHE95zXtD M2fcM5/JsJ0OzVNrjEd4iywm0Og48AHuk0KLtEPo1FObH+FoOqXwTNOCOiDg/uIueEr2 CRDy9ZBw25A+h0fkj5wFLdirNDciX18sCwf/NQuTh/7XwZC0e0f1Hy5Bjlly/oE25fpP yX7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=LDNzFxIp6DOXpXRNikojkulcZmTs5RnDC+zWzu/7VwI=; b=BvPaFbiv7Vq5xFfwZ/pPvt5a6xz75CeXelt5FBzq17yfXBmP9z62A4s5gyXKr4pG9s muSJotRaj7K3E4GeZCmSwxlNqXxCbaNytvpwBvvGOFffv9u5vm6nmXKyLsAECg7ZLcrY QmMQoZSDanFmKYRk1rsIFwLqb2f2HUmOnQvchloANrJNc93BQnn7r/VVmskLaU0Bi4R7 2LDgreZUtluKeVz6yQ/7nyKRqDMjvA5bitTKFCRN4aKsAYdjCMiQmuvMVI/u4maFYzlv ryTRiMAiqcvrEQ6AZ4uh75L/2Q4kxwu5+pRoQejuwT41u7qfa8d9vEbr2KSJaFmpaPHe i6WA== X-Gm-Message-State: APt69E3I7Rg1nvCzr5GfiRNRAsiY9S/uBC9lblZ/XRKDhDXprfmVYgr8 iTwhh+Ud/Y0A0oj5rzs036NQTA== X-Google-Smtp-Source: AAOMgpdWN4djTj/nBqhSDS19VlQDEWy5T2W4O2vLQgcv9oeQzBjjkSZMZTS6WZgSvi7ZzBpDWLcsUQ== X-Received: by 2002:a63:6949:: with SMTP id e70-v6mr15961743pgc.119.1531056159394; Sun, 08 Jul 2018 06:22:39 -0700 (PDT) Original-Received: from calancha-pc.dy.bbexcite.jp (102.92.100.220.dy.bbexcite.jp. [220.100.92.102]) by smtp.gmail.com with ESMTPSA id s8-v6sm28040405pfi.154.2018.07.08.06.22.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Jul 2018 06:22:38 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc.dy.bbexcite.jp In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:227098 Archived-At: On Sun, 8 Jul 2018, Tino Calancha wrote: > I am trying to do something apparently simple, but I cannot make it > work consistenly. > > * Start a shell process which print out the string 'Hello!\n'. > * Set a simple sentinel to prevent the buffer from showing > 'Process *shell* finished'. > > The output buffer consists of just 2 lines (second is empty). > The window doesn't display 'Hello!': it shows the output buffer from line 2. I realized I just need to call `recenter' inside the sentinel; that ensures `recenter' is called after the output have arrived.