From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Lewan Newsgroups: gmane.emacs.help Subject: RE: ielm freeze Date: Wed, 21 Mar 2012 18:12:37 +0000 Message-ID: <495248DFDEA08C469BBDED2D4AA6C6144099CB@DAKIYA1.pegasus.local> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1332353446 3334 80.91.229.3 (21 Mar 2012 18:10:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Mar 2012 18:10:46 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 21 19:10:46 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 1SAPzd-0002hZ-5l for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Mar 2012 19:10:41 +0100 Original-Received: from localhost ([::1]:48414 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAPzc-0000wY-En for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Mar 2012 14:10:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAPzQ-0000vz-Jr for help-gnu-emacs@gnu.org; Wed, 21 Mar 2012 14:10:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SAPzK-0008Q9-N6 for help-gnu-emacs@gnu.org; Wed, 21 Mar 2012 14:10:28 -0400 Original-Received: from mailhost.shubertorg.com ([207.246.209.200]:27649 helo=webmail.shubertorg.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAPzK-0008Pl-IU for help-gnu-emacs@gnu.org; Wed, 21 Mar 2012 14:10:22 -0400 Original-Received: from dakiya1.pegasus.local ([fe80::5ce2:4641:22cf:ff1f]) by DAKIYA1.pegasus.local ([::1]) with mapi id 14.01.0339.001; Wed, 21 Mar 2012 14:12:38 -0400 Thread-Topic: ielm freeze Thread-Index: AQHNB32Fx8GPiBhZ1UaGHLRUsh1XA5Z1C6Iw In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.21.202] X-detected-operating-system: by eggs.gnu.org: Windows XP/2000 (RFC1323+, w+, tstamp-) X-Received-From: 207.246.209.200 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:84074 Archived-At: This is probably a good opportunity for a binary search. Delete roughly the second half of your init file and see what happens. If that fixes the problem, then the culprit is in what you deleted -- put h= alf of it back and try again. If it doesn't, then the culprit is in what's left -- delete the second half= of it and try again. At 124 lines you should be able to find the bug in well under 7 steps like = that. ,Doug -----Original Message----- From: help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org [mailto:h= elp-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org] On Behalf Of Me= ntus Sarovar Sent: Wednesday, 2012 March 21 08:37 To: help-gnu-emacs@gnu.org Subject: ielm freeze Hi all My ielm-REPL freezes as soon as I press RETURN after I entered some expression to be evaluated. This does not happen if I don't have my init file loaded, so the culprit must be in my init file: (require 'cl) (defvar *emacs-load-start* (current-time)) ;; save emacs customizations in a separate file (setq custom-file "~/.emacs.d/custom.el") (load custom-file 'noerror) ;; slime (setq inferior-lisp-program "sbcl") (add-to-list 'load-path "~/../site-lisp/slime/") (require 'slime-autoloads) (eval-after-load "slime" '(progn (add-to-list 'load-path "~/../site-lisp/slime/contrib") (slime-setup '(slime-fancy slime-banner)) (slime-autodoc-mode) (add-hook 'lisp-mode-hook (lambda () (slime-mode t))) (define-key slime-repl-mode-map (kbd "$") 'paredit-newline) (show-paren-mode 1) ;; highlight parens (global-set-key [?\C-=A7] 'slime-selector) ;; keep fasls separate ;; (setq slime-compile-file-options '(:fasl-directory "/tmp/slime-fasl= s/")) ;; (make-directory "D:/temp/slime-fasls/" t) )) ;; Autocomplete (add-to-list 'load-path "~/../site-lisp/auto-complete/") (require 'auto-complete-config) (add-to-list 'ac-dictionary-directories "~/../site-lisp/auto-complete//ac-d= ict") (ac-config-default) ;; ac-slime (add-to-list 'load-path "~/../site-lisp/ac-slime/") (require 'ac-slime) (add-hook 'slime-mode-hook 'set-up-slime-ac) (add-hook 'slime-repl-mode-hook 'set-up-slime-ac) (eval-after-load "auto-complete" '(progn (add-to-list 'ac-modes 'slime-repl-mode) (add-to-list 'ac-modes 'lisp-mode))) ;; paredit (add-to-list 'load-path "~/../site-lisp/paredit/") ;; (require 'paredit) (autoload 'paredit-mode "paredit" "Minor mode for pseudo-structurally editing Lisp code." t) (dolist (elt '(emacs-lisp-mode-hook lisp-mode-hook ;; lisp-interaction-mode-hook scheme-mode-hook slime-repl-mode-hook)) (add-hook elt (lambda () (paredit-mode +1)))) ;; (add-hook 'emacs-lisp-mode-hook (lambda () (paredit-mode +1))) ;; (add-hook 'lisp-mode-hook (lambda () (paredit-mode +1))) ;; (add-hook 'lisp-interaction-mode-hook (lambda () (paredit-mode +1))) ;; (add-hook 'scheme-mode-hook (lambda () (paredit-mode +1))) ;; (add-hook 'slime-repl-mode-hook (lambda () (paredit-mode +1))) (eval-after-load "paredit" '(progn (define-key paredit-mode-map (kbd "RET") 'paredit-newline) (define-key paredit-mode-map (kbd "=F6") 'paredit-open-round) (define-key paredit-mode-map (kbd "=E4") 'paredit-close-round) (define-key paredit-mode-map (kbd "M-=E4") 'paredit-close-round-and-ne= wline) (define-key paredit-mode-map (kbd "M-=F6") 'paredit-wrap-round) (define-key paredit-mode-map (kbd "M-") 'paredit-backward) (define-key paredit-mode-map (kbd "M-") 'paredit-forward) (define-key paredit-mode-map (kbd "M-") 'paredit-backward-up) (define-key paredit-mode-map (kbd "M-") 'paredit-forward-down) (define-key paredit-mode-map (kbd "(") (lambda () (interactive) (insert "("))) (define-key paredit-mode-map (kbd ")") (lambda () (interactive) (insert ")"))))) ;; cedet ;; (load-file "~/../site-lisp/cedet/common/cedet.el") ;; (semantic-load-enable-minimum-features) ;; (require 'semantic-ia) ;; ecb ;; (add-to-list 'load-path "~/../site-lisp/ecb") ;; (require 'ecb-autoloads) ;; ruby (add-to-list 'load-path "~/../site-lisp/ruby/") (autoload 'ruby-mode "ruby-mode" "Mode for editing ruby source files") (add-to-list 'auto-mode-alist '("\\.rb$" . ruby-mode)) (add-to-list 'interpreter-mode-alist '("ruby" . ruby-mode)) (require 'inf-ruby) (autoload 'run-ruby "inf-ruby" "Run an inferior Ruby process") (autoload 'inf-ruby-keys "inf-ruby" "Set local key defs for inf-ruby in ruby-mode") (add-hook 'ruby-mode-hook '(lambda () (inf-ruby-keys))) (add-hook 'ruby-mode-hook '(lambda () (local-set-key "\r" 'newline-and-inde= nt))) (require 'ruby-electric) (add-hook 'ruby-mode-hook (lambda () (ruby-electric-mode t))) ;; disable echoing in ruby intrepreter (defun echo-false () (setq comint-process-echoes t)) (add-hook 'comint-mode-hook 'echo-false) ;; rsense (setq rsense-home (expand-file-name "~/../site-lisp/rsense/")) (add-to-list 'load-path (concat rsense-home "/etc")) (require 'rsense) (add-hook 'ruby-mode-hook (lambda () (add-to-list 'ac-sources 'ac-source-rsense-method) (add-to-list 'ac-sources 'ac-source-rsense-constant))) ;; color theme (add-to-list 'load-path "~/../site-lisp/color-theme/") (require 'color-theme) ;; (eval-after-load "color-theme" ;; '(progn ;; (color-theme-initialize) ;; (color-theme-hober))) ;; solarized theme (add-to-list 'load-path "~/../site-lisp/solarized-theme/") (require 'color-theme-solarized) (color-theme-solarized-light) ;; emacs macros (fset 'visit-init-file [?\C-x ?\C-f ?\C-a ?\C-k ?~ ?~ backspace ?/ ?. ?e ?m ?a ?c ?s return]) (fset 'load-init-file [?\M-x ?l ?o ?a ?d ?- ?f ?i ?l ?e return ?\C-a ?\C-k ?~ ?~ backspace ?/ ?. ?e ?m ?a ?c ?s return]) ;;-------------------------------------------------------------------------= ------------------------------------- (message "My .emacs loaded in %ds" (destructuring-bind (hi lo ms) (current-= time) (- (+ hi lo) (+ (first *emacs-load-start*) (second *emacs-load-start*))))) Does anyone of you know what the problem is or experienced a similar proble= m? My environment: Windows 7, Emacs 23.4 Thank you Matus