From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#15841: Display bugs with cache-long-lines non-nil Date: Sat, 09 Nov 2013 23:27:01 +0200 Message-ID: <83d2m9466y.fsf@gnu.org> References: <871u2xf9st.fsf@gmail.com> <9jiow9uhoa.fsf@fencepost.gnu.org> <87wqkopylw.fsf@gmail.com> <87bo20fh3h.fsf@web.de> <834n7q95d5.fsf@gnu.org> <87r4aqww3j.fsf@nbtrap.com> <83r4aq3s4r.fsf@gnu.org> <83ppqa3rim.fsf@gnu.org> <83k3gh4yd6.fsf@gnu.org> <83fvr54qs2.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1384032554 11547 80.91.229.3 (9 Nov 2013 21:29:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Nov 2013 21:29:14 +0000 (UTC) Cc: michael_heerdegen@web.de, 15841@debbugs.gnu.org To: nbtrap@nbtrap.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 09 22:29:18 2013 Return-path: Envelope-to: geb-bug-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 1VfG5k-0002tp-LU for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Nov 2013 22:29:16 +0100 Original-Received: from localhost ([::1]:58367 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfG5k-0002yP-5e for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Nov 2013 16:29:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfG5c-0002yJ-9m for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2013 16:29:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VfG5W-0003vc-Fn for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2013 16:29:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfG5W-0003vY-CS for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2013 16:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VfG5V-0003mD-Ue for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2013 16:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Nov 2013 21:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15841 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15841-submit@debbugs.gnu.org id=B15841.138403251014461 (code B ref 15841); Sat, 09 Nov 2013 21:29:01 +0000 Original-Received: (at 15841) by debbugs.gnu.org; 9 Nov 2013 21:28:30 +0000 Original-Received: from localhost ([127.0.0.1]:44691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VfG4z-0003lA-L6 for submit@debbugs.gnu.org; Sat, 09 Nov 2013 16:28:29 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:58349) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VfG4w-0003kv-Iu for 15841@debbugs.gnu.org; Sat, 09 Nov 2013 16:28:27 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MW000L00M685X00@a-mtaout21.012.net.il> for 15841@debbugs.gnu.org; Sat, 09 Nov 2013 23:27:11 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MW000LHTM9B5Z00@a-mtaout21.012.net.il>; Sat, 09 Nov 2013 23:27:11 +0200 (IST) In-reply-to: <83fvr54qs2.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:80186 Archived-At: > Date: Sat, 09 Nov 2013 16:02:21 +0200 > From: Eli Zaretskii > Cc: michael_heerdegen@web.de, 15841@debbugs.gnu.org > > > Date: Sat, 09 Nov 2013 13:18:29 +0200 > > From: Eli Zaretskii > > Cc: michael_heerdegen@web.de, 15841@debbugs.gnu.org > > > > emacs -Q --eval "(setq-default cache-long-scans nil)" > > C-x C-f src/xdisp.c > > M-: (setq cache-long-scans t) RET > > M-x linum-mode RET > > M-> > > > > Many line numbers near the end of the buffer are not shown in the > > margin. > > This seems to be related to font-lock: turning off > global-font-lock-mode makes the problems go away. Manually invoking > font-lock-fontify-buffer before turning on linum-mode also eliminates > the problems, so it looks like JIT Font Lock is the prime suspect. The problem was that while the "dumb loop" in find_newline was running, memory allocation in know_region_cache could have caused relocation of buffer text, so C pointers needed to be adjusted, but weren't. Fixed in trunk revision 115052.