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: Sat, 24 Dec 2011 18:32:47 +0200	[thread overview]
Message-ID: <8339cax74g.fsf@gnu.org> (raw)
In-Reply-To: <877h1m56ob.fsf@gmail.com>

> From: Antoine Levitt <antoine.levitt@gmail.com>
> Cc: riccardi.thomas@gmail.com,  9246@debbugs.gnu.org
> Date: Sat, 24 Dec 2011 16:29:56 +0100
> 
> > Can you copy-paste the exact text you type into the ERC window to
> > reproduce this bug, starting with the connection, and everything you
> > do afterwards?
> 
> Alright. So emacs -Q -nw (the -nw is important). M-x erc RET RET RET
> RET, connect to freenode, you get to the server window. Type
> 
> /join #somethingtest RET, you get to the channel window.
> 
> M-: (setq word-wrap t) RET
> M-x erc-scrolltobottom-enable RET
> 
> http://wowthisislongveryveryveryveryveryveryveryveryveryveryveryveryveryveryverylong.com RET
> a RET
> a RET
> ... etc until end of buffer. Then point goes to top, and the scrolling
> doesn't work anymore.
> 
> I verified with latest trunk, I still see this.

Yes, I see it as well, but it's a bug in erc.  "(elisp)Window Hooks"
says:

 -- Variable: window-scroll-functions
     [...]
     *Warning:* don't use this feature to alter the way the window is
     scrolled.  It's not designed for that, and such use probably won't
     work.

But erc does precisely that which the manual says not to do.  It
shouldn't.

Incidentally, all this trickery is no longer needed with Emacs 24:
just setting scroll-conservatively to a value larger than 100 will do
the job nicely and without any problems.





  reply	other threads:[~2011-12-24 16:32 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 [this message]
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
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=8339cax74g.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.