From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Barzilay Newsgroups: gmane.emacs.bugs Subject: bug#8476: 23.2; One-line scrolling & jit-lock (or font-lock) Date: Mon, 11 Apr 2011 09:59:43 -0400 Message-ID: <19875.2383.876530.364315@winooski.ccs.neu.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1302530956 17537 80.91.229.12 (11 Apr 2011 14:09:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Apr 2011 14:09:16 +0000 (UTC) To: 8476@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 11 16:09:12 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9Hnh-0002in-J3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Apr 2011 16:09:11 +0200 Original-Received: from localhost ([127.0.0.1]:58196 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q9Hnf-0007py-Oe for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Apr 2011 10:09:07 -0400 Original-Received: from [140.186.70.92] (port=40992 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q9Hm2-00073w-Pl for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 10:07:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9Hlx-00025E-Pw for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 10:07:23 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57993) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9Hlx-00025A-NC for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 10:07:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q9Hfq-0007ug-Ig; Mon, 11 Apr 2011 10:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Barzilay Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Apr 2011 14:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8476 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.130253043730379 (code B ref -1); Mon, 11 Apr 2011 14:01:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Apr 2011 14:00:37 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9HfQ-0007tw-2u for submit@debbugs.gnu.org; Mon, 11 Apr 2011 10:00:36 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9HfM-0007ti-59 for submit@debbugs.gnu.org; Mon, 11 Apr 2011 10:00:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9HfF-0000Kt-JM for submit@debbugs.gnu.org; Mon, 11 Apr 2011 10:00:27 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:33099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9HfC-00078b-JF for submit@debbugs.gnu.org; Mon, 11 Apr 2011 10:00:25 -0400 Original-Received: from [140.186.70.92] (port=53708 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q9Hep-0003ml-Ss for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 10:00:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9Hek-00005u-E6 for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 09:59:56 -0400 Original-Received: from winooski.ccs.neu.edu ([129.10.115.117]:46286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9Hek-0008Pq-CD for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 09:59:54 -0400 Original-Received: from winooski.ccs.neu.edu (localhost.localdomain [127.0.0.1]) by winooski.ccs.neu.edu (8.14.4/8.14.4) with ESMTP id p3BDxinP010323 for ; Mon, 11 Apr 2011 09:59:44 -0400 Original-Received: (from eli@localhost) by winooski.ccs.neu.edu (8.14.4/8.14.4/Submit) id p3BDxi39010319; Mon, 11 Apr 2011 09:59:44 -0400 X-Mailer: VM 8.1.93a under 23.2.1 (x86_64-redhat-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 11 Apr 2011 10:01:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45757 Archived-At: Like many others, I've been trying to get Emacs to scroll the display by one line when the cursor goes out of the displayed area. In my settings I have scroll-step 1 scroll-conservatively 10000 scroll-margin 0 I know that in theory only the second is needed, but I still got the recentering behavior. However, this is not consistent -- sometimes it does work, but a buffer that presents the bad behavior usually persists in doing so. I just tried disabling `jit-lock-mode', and to my surprise that made the problem go away, but it also disabled highlighting new text. But if I go through the whole buffer (so it gets the highlights) and then disable it, scrolling works fine. There are some guesses around that its bold font that makes thing too slow, but that doesn't look like the problem given what I see. In GNU Emacs 23.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.21.4) of 2010-07-08 on x86-10.phx2.fedoraproject.org Windowing system distributor `Fedora Project', version 11.0.10904000 configured using `configure '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=gene ric -fno-optimize-sibling-calls'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: POSIX value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US value of $XMODIFIERS: @im=none locale-coding-system: iso-latin-1-unix default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: whitespace-mode: t desktop-save-mode: t cua-mode: t display-time-mode: t minibuffer-electric-default-mode: t tooltip-mode: t mouse-wheel-mode: t global-font-lock-mode: t font-lock-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Features: (shadow mailalias vm-reply vm-rfaddons vm-menu vm-window vm-toolbar vm-folder vm-mime vm-undo vm-virtual vm-summary-faces vm-summary vm-mouse vm-page vm-motion vm-minibuf vm-message vm-misc vm-macro vm-autoloads vm-version vm-vars vm emacsbug debug apropos find-func jka-compr w32-vars cal-menu calendar cal-loaddefs gnus-score score-mode gnus-async nntp gnus-sum nnoo gnus-group gnus-undo nnmail mail-source format-spec gnus-start gnus-spec gnus-int gnus-range message idna byte-opt sendmail ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev gmm-utils mailheader canlock sha1 sha1-el hex-util hashcash gnus-win gnus gnus-ems nnheader gnus-util netrc time-date mail-utils mm-util mail-prsvr completion complete cus-edit cus-start cus-load wid-edit longlines mode-compile-kill mode-compile cl cl-19 bytecomp byte-compile compile comint ring pp help-mode easymenu view multi-isearch vc-git whitespace regexp-opt desktop filladapt scroll-in-place cua-base time minibuf-eldef paren mic-paren uniquify advice help-fns advice-preload disp-table tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life!