From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jreeseue Newsgroups: gmane.emacs.help Subject: Re: Emacs 24.0.94.1 slow to load on OS X Date: Sat, 3 Mar 2012 11:41:25 -0800 (PST) Message-ID: <33435621.post@talk.nabble.com> References: <33435127.post@talk.nabble.com> <20120303183109.C88D71FDB6@saturn.ch.ristopher.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1330803697 27203 80.91.229.3 (3 Mar 2012 19:41:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 3 Mar 2012 19:41:37 +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:41:37 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 1S3upk-0002lx-6h for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Mar 2012 20:41:36 +0100 Original-Received: from localhost ([::1]:43542 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3upj-0002wL-8J for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Mar 2012 14:41:35 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3upd-0002w2-9q for Help-gnu-emacs@gnu.org; Sat, 03 Mar 2012 14:41:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S3upb-0007Rd-AD for Help-gnu-emacs@gnu.org; Sat, 03 Mar 2012 14:41:28 -0500 Original-Received: from sam.nabble.com ([216.139.236.26]:45164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3upb-0007RX-5D for Help-gnu-emacs@gnu.org; Sat, 03 Mar 2012 14:41:27 -0500 Original-Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1S3upZ-0007Hf-FC for Help-gnu-emacs@gnu.org; Sat, 03 Mar 2012 11:41:25 -0800 In-Reply-To: <20120303183109.C88D71FDB6@saturn.ch.ristopher.com> X-Nabble-From: jreeseue@gmail.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 216.139.236.26 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:83921 Archived-At: Thanks for the reply. Yes that line in the configuration file didn't make sense. I've changed it to: (add-hook 'text-mode-hook 'flyspell-mode t) I did a test similar to yours to demonstrate the issue: 19:37@legolas:Variable.java -f "save-buffers-kill-terminal" real 0m4.518s user 0m0.138s sys 0m0.028s Christopher Schmidt-6 wrote: > > 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 > > > -- View this message in context: http://old.nabble.com/Emacs-24.0.94.1-slow-to-load-on-OS-X-tp33435127p33435621.html Sent from the Emacs - Help mailing list archive at Nabble.com.