From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Politz Newsgroups: gmane.emacs.help Subject: Re: Enabling Flyspell mode gave an error Date: Wed, 05 Nov 2008 23:52:41 +0100 Organization: FH-Trier Message-ID: <1225925638.499380@arno.fh-trier.de> References: <35e6f833-265d-4e3d-9bea-152f3e5cf976@d42g2000prb.googlegroups.com> <1225907284.763404@arno.fh-trier.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1225928495 20582 80.91.229.12 (5 Nov 2008 23:41:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2008 23:41:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 06 00:42:37 2008 connect(): Connection refused 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 1Kxs18-0005w7-GC for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Nov 2008 00:42:30 +0100 Original-Received: from localhost ([127.0.0.1]:35666 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kxs01-0003ue-EK for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Nov 2008 18:41:21 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!kanaga.switch.ch!switch.ch!news.belwue.de!news.uni-kl.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 78 Original-NNTP-Posting-Host: 143-93-54-11.arno.fh-trier.de Original-X-Trace: news.uni-kl.de 1225925669 761 143.93.54.11 (5 Nov 2008 22:54:29 GMT) Original-X-Complaints-To: usenet@news.uni-kl.de Original-NNTP-Posting-Date: Wed, 5 Nov 2008 22:54:29 +0000 (UTC) User-Agent: Mozilla-Thunderbird 2.0.0.17 (X11/20081018) In-Reply-To: Cache-Post-Path: arno.fh-trier.de!unknown@dslb-084-059-195-183.pools.arcor-ip.net X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) Original-Xref: news.stanford.edu gnu.emacs.help:164153 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:59487 Archived-At: jeep wrote: > On Nov 5, 9:46 am, Andreas Politz wrote: >> jeep wrote: >>> On Nov 4, 10:37 am, jeep wrote: >>>> I am trying to enable flyspell mode and I'm having a problem. I'm >>>> using GNU Emacs 22.3.1 on Windows XP and aspell. When I try to "M-x >>>> flyspell-mode" in a buffer, I get the error message: >>>> Enabling Flyspell mode gave an error >>>> (I've tried it in many different major modes including text, >>>> Fundamental, Lisp...) >>>> I don't see any other indication of what the problem could be. I can >>>> us all the ispell commands (eg. I can M-$ to check the spelling of a >>>> particular word). I originally thought that it might be a conflict >>>> with all the configurations I've done, so I removed my _emacs file and >>>> tried it from a base install and I eval'd this: >>>> (setq-default ispell-program-name "aspell") >>>> Then I can M-$ to check the word, but I still cannot enable flyspell- >>>> mode and it gives me the same error. > > >> Enable debug-on-error via 'M-x toggle-debug-on-error', then start flyspell-mode >> again and examine the error. >> If that does not work, try edebug. Open the file where flyspell-mode is >> defined. Reeval the function with 'C-u C-M-x' and again, start flyspell-mode. >> Now you are in edebug-mode. Hit Space till you get the error. Press 'i' to >> enable debugging of the called function after point. > > Thanks for helping me work through this: > Okay, here's what I've done and the results: > Enable debug-on-error, then start flyspell-mode > -- The *Messages* buffer shows: > Loading flyspell...done > Enabling Flyspell mode gave an error The flyspell-mode function catches all errors and gives this generic error message. You could try to enable debug-on-error and eval this in the scratch buffer : (flyspell-mode-on) > > edebug: > I opened .../lisp/textmodes/flyspell.el, hit C-u C-M-x, then M-x > flyspell-mode The cursor has to be inside the flyspell-mode function for this to work. (C-M-x evals the current function , with prefix it also installs the debug routines.) Alternatively this should enable edebug on all forms in the current buffer: M-x edebug-all-defs M-x eval-buffer -ap > -- The *Messages* buffer shows: > Edebug: edebug-anon0 > Enabling Flyspell mode gave an error > Then I hit space (point is at: (require 'ispell) and this displays in > mini-buffer and *Messages*: > Result: ispell > Then I hit space again and point moves to the middle of the comments > in the header of flyspell.el. > Space again inserts a space > > When I run emacs --Q, the behavior above is identical. (Which makes > sense to me since I've renamed my _emacs file... I'm glad to know > about the -Q switch, though.) > > I don't know if this helps or hurts, but I downloaded a copy of > Version 23, took the same steps as my original e-mail outlined and it > works like a charm. Then I reverted back to 22.1 and it works, too. It > is beginning to look like I'm fighting a bug in 22.3. (I would have > tried 22.2, but didn't want to download it.) I even tried copying > flyspell.el from 22.1 to 22.3 and deleting the elc file. It didn't > work either. :( > > I'd like to stick to a stable version... any suggestions about where > to go from here? > > Thanks, > -JEEP