From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christopher Schmidt Newsgroups: gmane.emacs.help Subject: Re: Emacs 24.0.94.1 slow to load on OS X Date: Sat, 03 Mar 2012 19:31:07 +0100 Message-ID: <20120303183109.C88D71FDB6@saturn.ch.ristopher.com> References: <33435127.post@talk.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1330802948 22014 80.91.229.3 (3 Mar 2012 19:29:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 3 Mar 2012 19:29:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 03 20:29:08 2012 Return-path: Envelope-to: geh-help-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 1S3ude-0007Hv-Gj for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Mar 2012 20:29:06 +0100 Original-Received: from localhost ([::1]:38275 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3udd-0000BC-KZ for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Mar 2012 14:29:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3tjh-0008Va-9l for help-gnu-emacs@gnu.org; Sat, 03 Mar 2012 13:31:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S3tjf-0004Ph-99 for help-gnu-emacs@gnu.org; Sat, 03 Mar 2012 13:31:16 -0500 Original-Received: from ristopher.com ([146.185.21.93]:59007 helo=saturn.ch.ristopher.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3tje-0004PU-SK for help-gnu-emacs@gnu.org; Sat, 03 Mar 2012 13:31:15 -0500 Original-Received: by saturn.ch.ristopher.com (Postfix, from userid 0) id C88D71FDB6; Sat, 3 Mar 2012 18:31:09 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ch.ristopher.com; s=mail; t=1330799469; bh=k1g4iuGX8XlUkJd+sguAF5z6bYn7hsfUtplkTMnFaIg=; h=From:To:Subject:In-Reply-To:References:Date:MIME-Version: Content-Type:Message-Id; b=vEBOqeuChEoRkBePrmvEAQOMn5aKSkgdj+PislqN0EfA0tncaYlOeQGGP7FpmoJmO iangagje48x4uMh+mgcgDzdGP3+HeN+EDEV0xlOrUZ/wqXQMmDy/8yDMJV1K15nK/W YRMGwe09toy5Z1Ngh6cQv5M5ge4py2OxYp2c4iuQ= In-Reply-To: <33435127.post@talk.nabble.com> (jreeseue@gmail.com's message of "Sat, 3 Mar 2012 09:36:12 -0800 (PST)") Mail-Followup-To: help-gnu-emacs@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 146.185.21.93 X-Mailman-Approved-At: Sat, 03 Mar 2012 14:29:01 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83919 Archived-At: jreeseue writes: > Hello, I am running OS X 10.7.3 with Emacs 24.0.94.1 and am experiencing a > fairly long time for emacs to load. My .emacs file looks like > > (push "/usr/local/Cellar/emacs/HEAD/share/emacs/24.0.94/lisp" load-path) > > > (add-hook 'c-mode-hook 'turn-on-font-lock) > (show-paren-mode) > (setq make-backup-files nil) ;; do not make backup files > ;;keyboard navigation > (define-key global-map (kbd "RET") 'newline-and-indent) > (global-set-key "\C-n"(lambda () (interactive) (next-line 5))) > (global-set-key "\C-p" (lambda () (interactive) (next-line -5))) > (global-set-key "\C-u" (lambda () (interactive) (next-line -1))) > (global-set-key "\C-o" (lambda () (interactive) (next-line 1))) > > (setq auto-mode-alist (cons '("\\.tex$" . latex-mode) auto-mode-alist)) > > (setq tex-mode-hook > '(lambda ()(auto-fill-mode 1))) > > (defun count-words-region (start end) > (interactive "r") > (save-excursion > (let ((n 0)) > (goto-char start) > (while (< (point) end) > (if (forward-word 1) > (setq n (1+ n)))) > (message "Region has %d words" n) > n))) > > ; hooks for text & latex modes > (add-hook 'text-mode-hook 'turn-on-auto-fill) > (add-hook (and 'tex-mode-hook 'text-mode-hook) 'flyspell-mode t I cannot reproduce your problem with GNU Emacs 24.0.94.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.9) of 2012-03-01. ~$ time emacs -q -nw -f "save-buffers-kill-terminal" real 0m0.053s user 0m0.032s sys 0m0.020s ~$ time emacs -q -nw -l /tmp/jreeseue.el -f "save-buffers-kill-terminal" real 0m0.058s user 0m0.040s sys 0m0.016s BTW. add-hook is a regular function and (and 'tex-mode-hook 'text-mode-hook) evaluates to 'text-mode-hook! Christopher