From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Evgeny Zajcev Newsgroups: gmane.emacs.devel Subject: Re: Scrolling up at the end of buffer Date: Fri, 4 Dec 2020 15:40:31 +0300 Message-ID: References: <83im9hep1x.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000dac5a105b5a2c801" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11021"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 04 13:41:35 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1klAP0-0002mb-SH for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Dec 2020 13:41:34 +0100 Original-Received: from localhost ([::1]:54044 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klAOz-00023q-Q4 for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Dec 2020 07:41:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klAOF-0001bp-Fx for emacs-devel@gnu.org; Fri, 04 Dec 2020 07:40:47 -0500 Original-Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]:33759) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klAOD-00029L-Ls; Fri, 04 Dec 2020 07:40:47 -0500 Original-Received: by mail-lf1-x134.google.com with SMTP id l11so7477583lfg.0; Fri, 04 Dec 2020 04:40:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tZXgiSv09DgnYa3tnx1Z4PYmuBI9DZm3SfUYMWKCdfQ=; b=nHOnHOnixYpFKjiU7zlJV88pDICKX3ibJI1S7UX2Kph2z1CO27y0x26RDW4tPlr6mD hnQm4nC6I0QgLNpC8wq4n+BPc7c1gp5TOYoSSTcs58qKiqnp9jxOimq85hpTrgLxxMKn 2y2836eluBySnAXk0Zig4vJZKO4sIE3ZvBgKFR3mA0Y9mIX747DVrcTgRiBWgW6uCB7r 5GBzlTm4DGZw2/WXnBckEQw8PZIqbS9ZFdW6VUVv681tBS7pR7s/nMQ74yfqRw0ScXOz kJMckSrUFonMXkTEpCSagKYt7+ll1VBtP3v4f/17B9I0QWV7ma2JRxwKds16FKCEiSSQ q4Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tZXgiSv09DgnYa3tnx1Z4PYmuBI9DZm3SfUYMWKCdfQ=; b=LBL5FB8sFdvRsFfq4DWwapirQxJRPgleSBQP2Ig7HwtKZMSAPfnQdV5S+GgsT8g/SG BZXClKuzIo0kwJmVqxJ0ANi2gLi3AjSzk2dIuoweL3z6ZAPTGpQ3ZfA4IJTaJXhiwaRF l84Tx4B1vYfdv0n85lbdtHgH1WxiXdK/iEYET3ERJlNKSG6L3hV64zLY2kDSKecXHpHT Y8oiXdZd2XjbH+wRXlUuvemZrRUdec3p+53yAVWvf87TAWiSF0hl2gZTrREdXouxKPrz S2v6bp3WZBsWZp4YBmiIK58ZuqUOfrF9CNtAzfjR3nq+9sExlLrSJw7tcMXb0YxO7wf2 bQvA== X-Gm-Message-State: AOAM533ZLsvi+5PqyXH3dQ90xmL4fqcFrsIH781P+0ct04xbTbZmNe7q /8IN4WRHceP/z1KshRSuiYjWJ9hggL6iqaMtYur21sHp X-Google-Smtp-Source: ABdhPJxOL8Nu8TsUrWxelF8UKV3S/cY3wqlcnirK+ZeKY24+2CwMODiTvfjQs7JVQLxDLpLjzAkox30bEAQTo9dl85I= X-Received: by 2002:a05:6512:3054:: with SMTP id b20mr3118059lfb.45.1607085642662; Fri, 04 Dec 2020 04:40:42 -0800 (PST) In-Reply-To: <83im9hep1x.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=lg.zevlg@gmail.com; helo=mail-lf1-x134.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:260290 Archived-At: --000000000000dac5a105b5a2c801 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =D0=BF=D1=82, 4 =D0=B4=D0=B5=D0=BA. 2020 =D0=B3. =D0=B2 15:25, Eli Zaretski= i : > > From: Evgeny Zajcev > > Date: Fri, 4 Dec 2020 14:57:23 +0300 > > > > I've got nasty unexpected thing. Consider scenario in "emacs -q": > > 1) Open file that does not fit into Emacs window (C-x C-f /etc/services > RET) > > 2) Goto bottom with M-> > > 3) Show maximum content with C- - C-l (-1 arg to C-l) > > 4) At this moment point is at the `eobp`, nothing to be shown below the > point, now press C-v > > > > I was expecting C-v to signal "End of buffer" error, however got ugly > scrolling resulting in showing a single > > line at the top. > > > > Second C-v triggers "End of buffer" > > > > If I recenter with -2 argument to C-l, then C-v triggers "End of buffer= " > as expected. > > > > Is there something in Emacs I can set to stop behaving like this? > > Set next-screen-context-lines to 1 or less? > > Thanks! setting it to 0 does what I want (FWIW, I don't see this behavior as unexpected or "nasty".) > It was unexpected default behaviour, because why scrolling if there is nothing to show more? --=20 lg --000000000000dac5a105b5a2c801 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=D0=BF=D1=82, 4 =D0=B4=D0=B5=D0= =BA. 2020 =D0=B3. =D0=B2 15:25, Eli Zaretskii <eliz@gnu.org>:
> From: Evgeny Zajcev <lg.zevlg@gmail.com>
> Date: Fri, 4 Dec 2020 14:57:23 +0300
>
> I've got nasty unexpected thing.=C2=A0 Consider scenario in "= emacs -q":
> 1) Open file that does not fit into Emacs window (C-x C-f /etc/service= s RET)
> 2) Goto bottom with M->
> 3) Show maximum content with C- - C-l (-1 arg to C-l)
> 4) At this moment point is at the `eobp`, nothing to be shown below th= e point, now press C-v
>
> I was expecting C-v to signal "End of buffer" error, however= got ugly scrolling resulting in showing a single
> line at the top.
>
> Second C-v triggers "End of buffer"
>
> If I recenter with -2 argument to C-l, then C-v triggers "End of = buffer" as expected.
>
> Is there something in Emacs I can set to stop behaving like this?

Set next-screen-context-lines to 1 or less?


Thanks! setting it to 0 does what I wa= nt

(FWIW, I don't see this behavior as unexpected or "nasty".)

It was unexpected default b= ehaviour, because why scrolling if there is nothing to show more?

--
lg
<= /div>
--000000000000dac5a105b5a2c801--