From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: petermonsson@yahoo.dk Newsgroups: gmane.emacs.help Subject: Flyspell loading first time buries buffer and inhibits mode hooks (Win32) Date: Mon, 19 May 2008 12:25:53 -0700 (PDT) Organization: http://groups.google.com Message-ID: <59ed0796-dd07-4c1a-8dd8-190b7106e727@w7g2000hsa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1211251001 31477 80.91.229.12 (20 May 2008 02:36:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 May 2008 02:36:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 20 04:37:17 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JyHio-0000V8-RN for geh-help-gnu-emacs@m.gmane.org; Tue, 20 May 2008 04:37:03 +0200 Original-Received: from localhost ([127.0.0.1]:47211 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JyHi4-0004cu-Od for geh-help-gnu-emacs@m.gmane.org; Mon, 19 May 2008 22:36:16 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!w7g2000hsa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 Original-NNTP-Posting-Host: 212.242.197.46 Original-X-Trace: posting.google.com 1211225153 12880 127.0.0.1 (19 May 2008 19:25:53 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 19 May 2008 19:25:53 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w7g2000hsa.googlegroups.com; posting-host=212.242.197.46; posting-account=N1YbiAkAAACg7sVjhGDTDTBashE-IRQ2 User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.25 (Windows NT 5.1; U; da),gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:158774 X-Mailman-Approved-At: Mon, 19 May 2008 22:32:37 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54147 Archived-At: Hi All, I'm having a problem with flyspell on my Emacs 22.1.1 on Win32. When I find the first file flyspell will load and bury the file I'm opening in the buffer list. modes will not start such as ruby-mode or cc-mode. This only happens on the first file when flyspell thinks it should load which is also when I start Emacs with a file to open from Explorer. It literally pisses me off to the point where I'm thinking of ditching flyspell. Do you know any solution to my problem? I have extracted the relevant parts of my .emacs file (and removed the ranting) ;; Spelling (setq ispell-program-name "aspell") (add-hook 'text-mode-hook (lambda () (flyspell-mode 1))) (global-set-key "\C-csd" (lambda() (interactive) (ispell-change- dictionary "dansk" nil))) (global-set-key "\C-cse" (lambda() (interactive) (ispell-change- dictionary "english" nil))) (if (fboundp 'longlines-mode) (add-hook 'text-mode-hook '(lambda () (longlines-mode))) ;;better than auto-fill (add-hook 'text-mode-hook '(lambda nil (setq fill-column 79) (auto-fill-mode 1)))) ;; Ruby (autoload 'ruby-mode "ruby-mode" "Major mode for editing ruby scripts." t) (add-to-list 'auto-mode-alist '("\\.rb$" . ruby-mode)) (add-to-list 'interpreter-mode-alist '("ruby" . ruby-mode)) ;; For irb ;; irb in Emacs (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 () (font-lock-mode t) (inf-ruby-keys))) Thank you for your help in advance. Peter Monsson