From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Owens Newsgroups: gmane.emacs.devel Subject: bibtex-mode and "format region" incredibly slow Date: Sat, 10 Apr 2004 21:54:06 -0700 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <16504.53102.905929.74629@samba2.ece.ucdavis.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1081659410 7112 80.91.224.253 (11 Apr 2004 04:56:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Apr 2004 04:56:50 +0000 (UTC) Cc: John Owens Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Apr 11 06:56:42 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BCX1O-0006CK-00 for ; Sun, 11 Apr 2004 06:56:42 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BCX1O-0000yM-00 for ; Sun, 11 Apr 2004 06:56:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BCX0N-00023t-Fi for emacs-devel@quimby.gnus.org; Sun, 11 Apr 2004 00:55:39 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BCWzk-00021z-BD for emacs-devel@gnu.org; Sun, 11 Apr 2004 00:55:00 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BCWzC-0001QK-8y for emacs-devel@gnu.org; Sun, 11 Apr 2004 00:54:58 -0400 Original-Received: from [169.237.32.23] (helo=samba2.ece.ucdavis.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1BCWz6-0001EL-UP for emacs-devel@gnu.org; Sun, 11 Apr 2004 00:54:21 -0400 Original-Received: from samba2.ece.ucdavis.edu (localhost.localdomain [127.0.0.1]) by samba2.ece.ucdavis.edu (8.12.10/8.12.8) with ESMTP id i3B4sAc9027852; Sat, 10 Apr 2004 21:54:10 -0700 Original-Received: (from jowens@localhost) by samba2.ece.ucdavis.edu (8.12.10/8.12.10/Submit) id i3B4s7Z0027845; Sat, 10 Apr 2004 21:54:07 -0700 Original-To: emacs-devel@gnu.org X-Mailer: VM 7.18 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:21471 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21471 I use BibTeX mode for my bibliographies. I use it on both NT emacs (the 21.3 release) and the CVS build for OS X. I have ~150 entries in a BibTeX file and want to format and sort them. Calling "format region" on the whole file via the BibTeX menu is *incredibly* slow on OS X emacs, but very quick on NT emacs. I would estimate on NT it's a few seconds and works fine. I've never actually waited for a OS X "format region" to finish on the Mac but it's at least several minutes. Nothing else I do on OS X emacs is even close to this discrepancy in performance. In addition, emacs is accounting for ~70% of my CPU utilization while it attemps to format the region. When I hit C-g, it leaves my BibTeX buffer with thousands of blank lines in it (and on this test, crashed immediately afterwards). It appears that I'm using straight bibtex mode (locate-library bibtex returns /usr/local/share/emacs/21.3.50/lisp/textmodes/bibtex.elc). Ideas? JDO