From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Vernaza Newsgroups: gmane.emacs.bugs Subject: bug#8235: 23.2; slow scrolling w/ multiple frames visiting same file Date: Sat, 12 Mar 2011 16:11:48 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082.1) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299966852 1637 80.91.229.12 (12 Mar 2011 21:54:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Mar 2011 21:54:12 +0000 (UTC) To: 8235@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 12 22:54:08 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 1PyWlC-00077V-8e for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Mar 2011 22:54:06 +0100 Original-Received: from localhost ([127.0.0.1]:36209 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PyWlB-0004w7-P2 for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Mar 2011 16:54:05 -0500 Original-Received: from [140.186.70.92] (port=57960 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PyWUd-0006lg-02 for bug-gnu-emacs@gnu.org; Sat, 12 Mar 2011 16:37:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PyWUb-0004OS-Ij for bug-gnu-emacs@gnu.org; Sat, 12 Mar 2011 16:36:58 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PyWUb-0004OO-Fq for bug-gnu-emacs@gnu.org; Sat, 12 Mar 2011 16:36:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PyWEF-0004xm-Vn; Sat, 12 Mar 2011 16:20:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Vernaza Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Mar 2011 21:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8235 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.129996474519004 (code B ref -1); Sat, 12 Mar 2011 21:20:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Mar 2011 21:19:05 +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 1PyWDI-0004wS-A3 for submit@debbugs.gnu.org; Sat, 12 Mar 2011 16:19:05 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PyW6S-0004mP-5F for submit@debbugs.gnu.org; Sat, 12 Mar 2011 16:12:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PyW6L-0007dh-Rq for submit@debbugs.gnu.org; Sat, 12 Mar 2011 16:11:54 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:39813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PyW6L-0007db-MS for submit@debbugs.gnu.org; Sat, 12 Mar 2011 16:11:53 -0500 Original-Received: from [140.186.70.92] (port=35599 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PyW6I-00037Y-PR for bug-gnu-emacs@gnu.org; Sat, 12 Mar 2011 16:11:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PyW6H-0007c9-Cx for bug-gnu-emacs@gnu.org; Sat, 12 Mar 2011 16:11:50 -0500 Original-Received: from singularity.stwing.upenn.edu ([165.123.132.64]:43312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PyW6H-0007bn-AL for bug-gnu-emacs@gnu.org; Sat, 12 Mar 2011 16:11:49 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by singularity.stwing.upenn.edu (Postfix) with ESMTP id 930861C01C for ; Sat, 12 Mar 2011 16:11:34 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at singularity.stwing.upenn.edu Original-Received: from seas118.wlan.seas.upenn.edu (SEAS118.wlan.seas.upenn.edu [158.130.104.119]) by singularity.stwing.upenn.edu (Postfix) with ESMTPSA id 72CAA1C01B for ; Sat, 12 Mar 2011 16:11:34 -0500 (EST) X-Mailer: Apple Mail (2.1082.1) 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-Mailman-Approved-At: Sat, 12 Mar 2011 16:19:02 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 12 Mar 2011 16:20:03 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Sat, 12 Mar 2011 16:54:02 -0500 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:44950 Archived-At: Steps to reproduce: At an OS X terminal, run "open -a Emacs --args -Q". Open a large text file with C-x C-f. Open two new frames visiting the same buffer with C-x 5 2 C-x 5 2. Switch back to the original frame. Scroll down by holding C-n. Detailed description: In the OS X Cocoa version of Emacs, if multiple frames are visiting the same buffer, some of the frames visiting this buffer exhibit very slow=20= scrolling, while others scroll normally. Scrolling is slow in the sense that the display updates infrequently while scrolling (say, up to a second between updates). CPU usage appears to be near normal, maybe at most slightly elevated while these symptoms are exhibited (possible concurrency issue?). Problem is consistent across major modes I've tested (fundamental, text, = lisp, ocaml). The problem seems to be specific to the Cocoa version of Emacs--the X11 version (23.3) compiled on the same platform does not = have the issue. Although I'm reporting this from the Macports-compiled version, I have verified that the bug occurs compiling 23.3 with Cocoa on the same platform. Profiling with Shark shows abnormally high time spent in the redisplay_windows function (~50%) while slow scrolling is occurring. While scrolling normally, profiling shows an insignificant amount of=20 time spent in this function (< 1%). =20 In GNU Emacs 23.2.1 (x86_64-apple-darwin10.4.0, NS apple-appkit-1038.32) of 2010-06-30 on seasnet-10-13.grasp.upenn.edu Windowing system distributor `Apple', version 10.3.1038 configured using `configure '--prefix=3D/opt/local' '--with-ns' = '--without-x' '--without-dbus' 'CC=3D/usr/bin/gcc-4.2' 'CFLAGS=3D-O2 = -arch x86_64' 'LDFLAGS=3D-L/opt/local/lib' = 'CPPFLAGS=3D-I/opt/local/include'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: UTF-8 value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Text Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-f f o o C-h =20 ~ / e r =20 / f o o . t x t C-n C-n C-n C-n=20 C-n C-n C-n C-n C-n C-x C-f C-g C-x 5 2 C-x 5 2 C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n s-` C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-n C-n s-` C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-n C-n s-x ` x =20 x r e p o r t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Quit kill-region: The mark is not set now, so there is no region Making completion list... Load-path shadows: None found. Features: (shadow sort mail-extr message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug help-mode view tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu 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 ns multi-tty emacs)