all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Antoine Levitt <antoine.levitt@gmail.com>
Cc: 9246@debbugs.gnu.org, riccardi.thomas@gmail.com
Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw
Date: Fri, 30 Dec 2011 17:45:00 +0200	[thread overview]
Message-ID: <83hb0it66b.fsf@gnu.org> (raw)
In-Reply-To: <87mxaaupjd.fsf@gmail.com>

> From: Antoine Levitt <antoine.levitt@gmail.com>
> Cc: riccardi.thomas@gmail.com,  9246@debbugs.gnu.org
> Date: Fri, 30 Dec 2011 15:01:26 +0100
> 
> Here's two patches. The first adds the warning from the info file into
> the variable definition. The second fixes erc-scrollbottom by using
> post-command-hook instead of window-scroll-functions.
> 
> Can you merge them?

Will do, thanks.

> >   go to window-end
> >   call posn-at-point
> >   compare the row returned by posn-at-point with window-height
> 
> That works pretty well! (when hooked into post-command-hook) Except that
> sometimes posn-at-point is nil, presumably because redisplay hasn't
> taken place yet.

If posn-at-point returns nil, it means point is outside of the
displayed portion, which in itself is something you may want to know,
I think.

> I couldn't find a post-redisplay-hook, which might be more
> appropriate. Is there one?

There's redisplay-end-trigger-functions, but it's deprecated.  Stefan
expressed the desire to have a hook you want many times in the past,
but no one stepped forward to do the job yet.





  reply	other threads:[~2011-12-30 15:45 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-06  0:12 bug#9246: Scrolling bug with word-wrap in emacs -nw Antoine Levitt
2011-08-06  7:08 ` Eli Zaretskii
2011-08-06  9:32   ` Antoine Levitt
2011-08-08 21:42 ` Thomas Riccardi
2011-12-24 11:46   ` Eli Zaretskii
2011-12-24 13:57     ` Antoine Levitt
2011-12-24 14:47       ` Eli Zaretskii
2011-12-24 15:29         ` Antoine Levitt
2011-12-24 16:32           ` Eli Zaretskii
2011-12-24 17:04             ` Antoine Levitt
2011-12-24 17:22               ` Eli Zaretskii
2011-12-29 22:45                 ` Antoine Levitt
2011-12-30  9:34                   ` Eli Zaretskii
2011-12-30 14:01                     ` Antoine Levitt
2011-12-30 15:45                       ` Eli Zaretskii [this message]
2011-12-30 17:10                         ` Antoine Levitt
2011-12-30 18:13                           ` Eli Zaretskii
2011-12-31 10:33                         ` Stefan Monnier
2012-01-01  2:59                           ` Richard Stallman
2011-12-31  8:29                       ` Eli Zaretskii
2011-12-31 11:28                         ` Antoine Levitt
2011-12-31 11:44                           ` Eli Zaretskii

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

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

  git send-email \
    --in-reply-to=83hb0it66b.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=9246@debbugs.gnu.org \
    --cc=antoine.levitt@gmail.com \
    --cc=riccardi.thomas@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.