From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: scrolling in shell buffer Date: Fri, 23 Dec 2016 18:27:56 +0200 Message-ID: <83k2aqzk37.fsf@gnu.org> References: <83shpl5jnz.fsf@gnu.org> <83y3zb51eq.fsf@gnu.org> <83fulg0w07.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1482510529 8466 195.159.176.226 (23 Dec 2016 16:28:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 23 Dec 2016 16:28:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 23 17:28:42 2016 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 1cKShv-0000Vw-JX for ged-emacs-devel@m.gmane.org; Fri, 23 Dec 2016 17:28:35 +0100 Original-Received: from localhost ([::1]:39836 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cKShy-00070Y-Hb for ged-emacs-devel@m.gmane.org; Fri, 23 Dec 2016 11:28:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cKShp-0006ys-Jj for emacs-devel@gnu.org; Fri, 23 Dec 2016 11:28:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cKShl-0004fB-Jp for emacs-devel@gnu.org; Fri, 23 Dec 2016 11:28:29 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cKShl-0004f2-H9 for emacs-devel@gnu.org; Fri, 23 Dec 2016 11:28:25 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2375 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cKShe-00051T-Fv; Fri, 23 Dec 2016 11:28:18 -0500 In-reply-to: (message from Richard Stallman on Fri, 23 Dec 2016 11:11:49 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:210756 Archived-At: > From: Richard Stallman > CC: emacs-devel@gnu.org > Date: Fri, 23 Dec 2016 11:11:49 -0500 > > So I think we are all agreed that the change I proposed would be good. > Would someone like to implement it? > > It would be sufficient to add a feature, enabled by some global > variable, to scroll the buffer (to put point on the last line if it's > at the end of the buffer) when the buffer is redisplayed for the first > time after being put in any given window with set-window-buffer. > > set-window-buffer could set a flag in the window so that the next > redisplay of that window will do this scrolling if the buffer requests > it. If you set scroll-conservatively to a number larger than 100, locally in the shell buffer, don't you get the behavior you want? If you do, then all we need is to provide such a local binding in shell buffers.