all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Agustin Martin <agustin.martin@hispalinux.es>
Subject: Re: [chris@mightyreason.com: recent CVS has aspell error]
Date: Thu, 26 Jan 2006 12:36:04 +0100	[thread overview]
Message-ID: <20060126113604.GA3534@agmartin.aq.upm.es> (raw)
In-Reply-To: <E1F1bNX-0005xN-5e@fencepost.gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1084 bytes --]

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 <chris at mightyreason.com>
> 
> /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

[-- Attachment #2: ispell.el.safe-aspell-default-dict.diff --]
[-- Type: text/plain, Size: 512 bytes --]

--- 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)))
 

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

  reply	other threads:[~2006-01-26 11:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-25  3:31 [chris@mightyreason.com: recent CVS has aspell error] Richard M. Stallman
2006-01-26 11:36 ` Agustin Martin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-01-25 20:51 Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060126113604.GA3534@agmartin.aq.upm.es \
    --to=agustin.martin@hispalinux.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.