From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Agustin Martin Newsgroups: gmane.emacs.devel Subject: Re: [chris@mightyreason.com: recent CVS has aspell error] Date: Thu, 26 Jan 2006 12:36:04 +0100 Message-ID: <20060126113604.GA3534@agmartin.aq.upm.es> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="4Ckj6UjgE2iN1+kY" X-Trace: sea.gmane.org 1138282025 10843 80.91.229.2 (26 Jan 2006 13:27:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 Jan 2006 13:27:05 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 26 14:27:01 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F279C-0003Ev-8P for ged-emacs-devel@m.gmane.org; Thu, 26 Jan 2006 14:26:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F26Y8-0006cq-Hn for ged-emacs-devel@m.gmane.org; Thu, 26 Jan 2006 07:48:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F25bT-000647-45 for emacs-devel@gnu.org; Thu, 26 Jan 2006 06:47:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F25ZK-0005nU-HQ for emacs-devel@gnu.org; Thu, 26 Jan 2006 06:46:17 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F25WN-0005Mo-R1 for emacs-devel@gnu.org; Thu, 26 Jan 2006 06:42:36 -0500 Original-Received: from [138.100.4.49] (helo=edison.ccupm.upm.es) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F25Tw-0005nK-83 for emacs-devel@gnu.org; Thu, 26 Jan 2006 06:40:04 -0500 Original-Received: from mala.aq.upm.es (Agmartin.aq.upm.es [138.100.41.131]) by edison.ccupm.upm.es (8.12.10/8.12.10) with ESMTP id k0QBdeLK012824; Thu, 26 Jan 2006 12:39:40 +0100 Original-Received: by mala.aq.upm.es (Postfix, from userid 1000) id B50555015; Thu, 26 Jan 2006 12:36:04 +0100 (CET) Original-To: emacs-devel@gnu.org Mail-Followup-To: emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:49576 Archived-At: --4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jan 24, 2006 at 10:31:27PM -0500, Richard M. Stallman wrote: > Would someone please DTRT about this, and ack? > > ------- Start of forwarded message ------- > From: Chris Kuklewicz > > /usr/local/bin/aspell -v > @(#) International Ispell Version 3.1.20 (but really Aspell 0.60.2) > > The error occurs when Emacs tries to start "ispell". The *Messages* > buffer shows this when I call "ispell-buffer" > > Loading ispell...done > Starting new Ispell process... > Spell checking *scratch* using aspell with default dictionary... > Spell-checking using aspell with default dictionary done > ispell-get-line: Wrong type argument: stringp, nil This seems the same problem described by Stefan Monnier in the "Problems with ispell/flyspell" thread when no english aspell dict is available, http://lists.gnu.org/archive/html/emacs-devel/2005-12/msg01343.html where he proposed making sure a sane default is available by using first entry of ispell-dictionary-alist-1 when nothing else works. Attached patch seems to take care of that, -- Agustin --4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ispell.el.safe-aspell-default-dict.diff" --- ispell.el.orig0 2005-12-20 15:06:29.000000000 +0100 +++ ispell.el 2006-01-12 19:40:32.000000000 +0100 @@ -913,7 +913,9 @@ (ispell-aspell-add-aliases) ;; Add a default entry (let* ((english-dict (assoc "en" ispell-dictionary-alist)) - (default-dict (cons nil (cdr english-dict)))) + (default-dict + (cons nil (or (cdr english-dict) + (cdr (car ispell-dictionary-alist-1)))))) (push default-dict ispell-dictionary-alist)) (setq ispell-have-aspell-dictionaries t))) --4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --4Ckj6UjgE2iN1+kY--