From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry OReilly Newsgroups: gmane.emacs.help Subject: Re: How to achieve desired automatic scrolling behavior Date: Wed, 29 May 2013 19:02:09 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1369868550 29996 80.91.229.3 (29 May 2013 23:02:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 May 2013 23:02:30 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 30 01:02:30 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UhpO1-00079m-Sa for geh-help-gnu-emacs@m.gmane.org; Thu, 30 May 2013 01:02:29 +0200 Original-Received: from localhost ([::1]:40882 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhpO1-0001sz-GK for geh-help-gnu-emacs@m.gmane.org; Wed, 29 May 2013 19:02:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhpNm-0001sf-NT for help-gnu-emacs@gnu.org; Wed, 29 May 2013 19:02:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhpNi-0003uH-55 for help-gnu-emacs@gnu.org; Wed, 29 May 2013 19:02:14 -0400 Original-Received: from mail-ob0-x22c.google.com ([2607:f8b0:4003:c01::22c]:36939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhpNh-0003uD-Vr for help-gnu-emacs@gnu.org; Wed, 29 May 2013 19:02:10 -0400 Original-Received: by mail-ob0-f172.google.com with SMTP id wo10so1368903obc.3 for ; Wed, 29 May 2013 16:02:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=0jVT7lIlDUFea2RPKaFvrQhaJbfgZfcfP7hWVT8XpmM=; b=SWlWQFUUvtLpjmTf3FJ8C4s/cWDzwcW2NtqK3IHoTLgJG5L771pcPJhFqCqdsfb/vV JWF0VkA5YUkhqVH2vtgCVFK8COYroYKtnJUoO5fZdktVjWmU7LUT44AQjoRhsv7W8o2h ck6DRvrMtjOTkYiMhF2g77jNFzhukO9VpJk21KHleeBGWOkSR/RcGaBpUiXDMXG+60Fn NW2BP2Y3O2aZea4Qp0AxAVK2o2Y7nBQHoHEcfFQW/jWHZj6tDk0zb/5/VIhjjeFFHqwp 9sqIZLCbXivzDkG5sdZgGunfAz4t1b84ZlDulyDIJki8rPSa+EJXRbHWIXoAySNTUMk0 1ZUQ== X-Received: by 10.182.24.131 with SMTP id u3mr3055052obf.29.1369868529292; Wed, 29 May 2013 16:02:09 -0700 (PDT) Original-Received: by 10.76.69.234 with HTTP; Wed, 29 May 2013 16:02:09 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::22c X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91149 Archived-At: > By default, Evil's "j" command moves by "physical" lines, not be screen > lines even if visual-line-mode is enabled. Please use "gj" instead (or > rebind "j", e.g. (define-key evil-motion-mode-map "j" "gj")). Thanks, that improves the behavior of scroll-conservatively quite a bit. > I just tried what I think you are doing, when lines are wrapped, and > didn't have any recentering. How about a recipe to reproduce this > starting from "emacs -Q"? After Frank's fix, there's still an issue with recentering during line by line scrolling with scroll-conservatively==1, so I submitted a bug report. > Customize scroll-conservatively to 0 > Advise line-move: > (defadvice line-move (around my-advice-line-move activate) > (let ((scroll-conservatively 101)) > ad-do-it)) Why does the let bound scroll-conservatively not seem to take effect for the around advice?