unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Deniz Dogan <deniz@dogan.se>
To: emacs-devel@gnu.org
Subject: Re: Emacs scrolling past the end of buffer
Date: Thu, 09 Feb 2012 13:01:55 +0100	[thread overview]
Message-ID: <4F33B5B3.7080508@dogan.se> (raw)
In-Reply-To: <87wr7we2xp.fsf_-_@gmail.com>

Antoine Levitt skrev 2012-02-09 11:06:
> 09/02/12 00:32, Deniz Dogan
>> A good compromise, in my opinion, would be to basically _not_ "scroll
>> to bottom" on every single character insertion.  With the addition of
>> the post-display hook, when the user hits RET, the message will be
>> sent, ERC will display that message, the new hook will run, and it
>> will be recentered to the bottom again.  This method is something I've
>> personally used in rcirc for quite some time and I'm very happy with
>> it.
>
> But then it sometimes happen that you see past the end of the buffer
> when scrolling (the horror!). I'd rather have excessive CPU consumption.
>

Fair enough!  This makes me wonder, though, whether there is any other 
useful hook we can use in combination with my suggestion, to properly 
recenter whenever point goes outside of the currently viewed part of the 
buffer.



  reply	other threads:[~2012-02-09 12:01 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-08 21:21 New hook for ERC Deniz Dogan
2012-02-08 22:23 ` Antoine Levitt
2012-02-08 23:32   ` Deniz Dogan
2012-02-09 10:06     ` Emacs scrolling past the end of buffer (was: New hook for ERC) Antoine Levitt
2012-02-09 12:01       ` Deniz Dogan [this message]
2012-02-12 16:37       ` Emacs scrolling past the end of buffer Deniz Dogan
2012-02-12 16:45         ` Eli Zaretskii
2012-02-12 19:52           ` Deniz Dogan
2012-02-12 21:11             ` Eli Zaretskii
2012-02-09 21:29     ` New hook for ERC Lars Ingebrigtsen
2012-02-09 22:41       ` Antoine Levitt
2012-02-08 23:53 ` Johan Bockgård
2012-02-08 23:56   ` Deniz Dogan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F33B5B3.7080508@dogan.se \
    --to=deniz@dogan.se \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).