From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pat Rondon Newsgroups: gmane.emacs.bugs Subject: bug#12127: 24.1.50; ispell slow under Emacs.app Date: Thu, 02 Aug 2012 16:18:25 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1343950235 23377 80.91.229.3 (2 Aug 2012 23:30:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Aug 2012 23:30:35 +0000 (UTC) To: 12127@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 03 01:30:35 2012 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 1Sx4qg-0004zs-Gf for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Aug 2012 01:30:34 +0200 Original-Received: from localhost ([::1]:50601 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sx4qf-00053z-Ru for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Aug 2012 19:30:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sx4qd-00053k-FF for bug-gnu-emacs@gnu.org; Thu, 02 Aug 2012 19:30:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sx4qc-0007HK-BG for bug-gnu-emacs@gnu.org; Thu, 02 Aug 2012 19:30:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48170) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sx4qc-0007HG-7u for bug-gnu-emacs@gnu.org; Thu, 02 Aug 2012 19:30:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Sx4xu-00030N-JP for bug-gnu-emacs@gnu.org; Thu, 02 Aug 2012 19:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pat Rondon Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Aug 2012 23:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12127 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.134395063611494 (code B ref -1); Thu, 02 Aug 2012 23:38:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Aug 2012 23:37:16 +0000 Original-Received: from localhost ([127.0.0.1]:57716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sx4xA-0002zL-2N for submit@debbugs.gnu.org; Thu, 02 Aug 2012 19:37:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44069) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sx4mN-0001sk-CN for submit@debbugs.gnu.org; Thu, 02 Aug 2012 19:26:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sx4f3-0003jS-6y for submit@debbugs.gnu.org; Thu, 02 Aug 2012 19:18:34 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:58606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sx4f3-0003jJ-4b for submit@debbugs.gnu.org; Thu, 02 Aug 2012 19:18:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sx4f2-00035b-6p for bug-gnu-emacs@gnu.org; Thu, 02 Aug 2012 19:18:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sx4f0-0003ii-RH for bug-gnu-emacs@gnu.org; Thu, 02 Aug 2012 19:18:32 -0400 Original-Received: from iport-c2-out.ucsd.edu ([132.239.0.174]:35634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sx4f0-0003i4-Ll for bug-gnu-emacs@gnu.org; Thu, 02 Aug 2012 19:18:30 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnwGAB4KG1CE7/kU/2dsb2JhbABFqCoBkHCBB4MQAUs0AWAeh2+bYJhuiQSLZINOgxwDiE2SQopFgn+BPw X-IronPort-AV: E=Sophos;i="4.77,704,1336374000"; d="scan'208";a="815766793" Original-Received: from smtp-tpcs.ucsd.edu ([132.239.249.20]) by iport-c2-out.ucsd.edu with ESMTP; 02 Aug 2012 16:18:28 -0700 Original-Received: from manzanita (e0-f8-47-21-f3-9a.dynamic.ucsd.edu [128.54.43.212]) by smtp-tpcs.ucsd.edu (Postfix) with ESMTP id 6967E7FCDF for ; Thu, 2 Aug 2012 16:18:26 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Thu, 02 Aug 2012 19:37:14 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:62772 Archived-At: Run "open Emacs.app --args -Q" Open a large file M-x ispell-buffer The spell checking process will take a very long time. This problem seems to have to do with the long polling interval (.1 second) used in ns_select in src/nsterm.m. Setting the polling interval to a shorter period helps a lot: *** old.nsterm.m 2012-08-02 16:04:22.000000000 -0700 --- nsterm.m 2012-08-02 16:01:52.000000000 -0700 *************** ns_select (int nfds, fd_set *readfds, fd *** 3545,3551 **** retain]; /* set a periodic task to try the pselect () again */ ! fd_entry = [[NSTimer scheduledTimerWithTimeInterval: 0.1 target: NSApp selector: @selector (fd_handler:) userInfo: 0 --- 3545,3551 ---- retain]; /* set a periodic task to try the pselect () again */ ! fd_entry = [[NSTimer scheduledTimerWithTimeInterval: 0.001 target: NSApp selector: @selector (fd_handler:) userInfo: 0 Corresponding ChangeLog entry: 2012-08-02 Pat Rondon * nsterm.m (ns_select): Shorten ns_select polling interval. In GNU Emacs 24.1.50.2 (x86_64-apple-darwin11.4.0, NS apple-appkit-1138.47) of 2012-08-02 on manzanita Bzr revision: 109405 eggert@cs.ucla.edu-20120802205949-ej38mo43ymsf8nb3 Windowing system distributor `Apple', version 10.3.1138 Configured using: `configure '--prefix=/Users/pmr/' '--with-ns'' Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode easymenu time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar 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 minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs)