GNU bug report logs - #7272
24.0.50; Enabling Flyspell mode gave an error

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Sat, 23 Oct 2010 20:19:02 UTC

Severity: normal

Tags: moreinfo, unreproducible

Merged with 5574

Found in version 24.0.50

Done: jidanni <at> jidanni.org

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7272 in the body.
You can then email your comments to 7272 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, rfrancoise <at> debian.org, bug-gnu-emacs <at> gnu.org:
bug#7272; Package emacs. (Sat, 23 Oct 2010 20:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to jidanni <at> jidanni.org:
New bug report received and forwarded. Copy sent to rfrancoise <at> debian.org, bug-gnu-emacs <at> gnu.org. (Sat, 23 Oct 2010 20:19:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; Enabling Flyspell mode gave an error
Date: Sun, 24 Oct 2010 04:21:47 +0800
$ emacs -Q /etc/motd -nw -f flyspell-mode
Enabling Flyspell mode gave an error

In GNU Emacs 24.0.50.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2010-10-16 on elegiac, modified by Debian
 (emacs-snapshot package, version 1:20101016-1)




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7272; Package emacs. (Sat, 23 Oct 2010 21:10:02 GMT) Full text and rfc822 format available.

Message #8 received at 7272 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: jidanni <at> jidanni.org
Cc: 7272 <at> debbugs.gnu.org, rfrancoise <at> debian.org
Subject: Re: bug#7272: 24.0.50; Enabling Flyspell mode gave an error
Date: Sat, 23 Oct 2010 23:13:42 +0200
> From: jidanni <at> jidanni.org
> Date: Sun, 24 Oct 2010 04:21:47 +0800
> Cc: rfrancoise <at> debian.org
> 
> $ emacs -Q /etc/motd -nw -f flyspell-mode
> Enabling Flyspell mode gave an error

How about showing that error message?  (No, I don't see any errors
with today's bzr.)




Merged 5574 5576 7272. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 23 Oct 2010 21:55:02 GMT) Full text and rfc822 format available.

Disconnected #5576 from all other report(s). Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 23 Oct 2010 21:57:01 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7272; Package emacs. (Sun, 24 Oct 2010 02:20:03 GMT) Full text and rfc822 format available.

Message #15 received at 7272 <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: eliz <at> gnu.org
Cc: 7272 <at> debbugs.gnu.org, rfrancoise <at> debian.org
Subject: Re: bug#7272: 24.0.50; Enabling Flyspell mode gave an error
Date: Sun, 24 Oct 2010 10:23:38 +0800
>>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: jidanni <at> jidanni.org
>> Date: Sun, 24 Oct 2010 04:21:47 +0800
>> Cc: rfrancoise <at> debian.org
>> 
>> $ emacs -Q /etc/motd -nw -f flyspell-mode
>> Enabling Flyspell mode gave an error

EZ> How about showing that error message?  (No, I don't see any errors
EZ> with today's bzr.)

One can see it in the minibuffer and with view-echo-area-messages C-h e:
("emacs" "/etc/motd" "-f" "flyspell-mode")
For information about GNU Emacs and the GNU system, type C-h C-a.
Note: file is write protected
Starting new Ispell process [default] ...
Enabling Flyspell mode gave an error

Maybe a Debian guy can confirm it.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7272; Package emacs. (Tue, 26 Oct 2010 10:43:01 GMT) Full text and rfc822 format available.

Message #18 received at 7272 <at> debbugs.gnu.org (full text, mbox):

From: Agustin Martin <agustin.martin <at> hispalinux.es>
To: jidanni <at> jidanni.org, 7272 <at> debbugs.gnu.org
Subject: Re: bug#7272: 24.0.50; Enabling Flyspell mode gave an error
Date: Tue, 26 Oct 2010 12:46:59 +0200
On Sun, Oct 24, 2010 at 10:23:38AM +0800, jidanni <at> jidanni.org wrote:
> >>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> writes:
> >> From: jidanni <at> jidanni.org
> >> Date: Sun, 24 Oct 2010 04:21:47 +0800
> >> Cc: rfrancoise <at> debian.org
> >> 
> >> $ emacs -Q /etc/motd -nw -f flyspell-mode
> >> Enabling Flyspell mode gave an error
> 
> EZ> How about showing that error message?  (No, I don't see any errors
> EZ> with today's bzr.)
> 
> One can see it in the minibuffer and with view-echo-area-messages C-h e:
> ("emacs" "/etc/motd" "-f" "flyspell-mode")
> For information about GNU Emacs and the GNU system, type C-h C-a.
> Note: file is write protected
> Starting new Ispell process [default] ...
> Enabling Flyspell mode gave an error

Cannot reproduce that here,

$ emacs -Q /etc/motd -nw -f flyspell-mode
("emacs" "/etc/motd" "-f" "flyspell-mode")
For information about GNU Emacs and the GNU system, type C-h C-a.
Note: file is write protected
Starting new Ispell process [default] ...

No errors. Same with the X variant,

$ emacs -Q /etc/motd -f flyspell-mode

Glenn Morris has committed a change to make flyspell show what is the error
when flyspell.el finds an error. That should already be included in last
emacs-snapshot Debian package prepared by Romain Francoise (emacs-snapshot
1:20101024-1). Can you try with that newer emacs-snapshot, so we have more 
info about the problem?

> Maybe a Debian guy can confirm it.

Note that Debian emacs-snapshot package uses pristine spellchecking files 
from FSF Emacs bzr repo, no Debian specific changes are applied.

Thanks for your feedback,

-- 
Agustin




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7272; Package emacs. (Tue, 26 Oct 2010 12:00:04 GMT) Full text and rfc822 format available.

Message #21 received at 7272 <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: agustin.martin <at> hispalinux.es
Cc: 7272 <at> debbugs.gnu.org
Subject: Re: bug#7272: 24.0.50; Enabling Flyspell mode gave an error
Date: Tue, 26 Oct 2010 20:03:19 +0800
>>>>> "AM" == Agustin Martin <agustin.martin <at> hispalinux.es> writes:
AM> 1:20101024-1). Can you try with that newer emacs-snapshot, so we have more 
AM> info about the problem?
Bingo,
Error enabling Flyspell mode:
(Error: No word lists can be found for the language "zh_TW".)
So at least we now know what is going on.
However, how might I suppress this message without changing my ENV
variables or touch(1)ing empty files etc.?




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7272; Package emacs. (Tue, 26 Oct 2010 13:42:01 GMT) Full text and rfc822 format available.

Message #24 received at 7272 <at> debbugs.gnu.org (full text, mbox):

From: Agustin Martin <agustin.martin <at> hispalinux.es>
To: jidanni <at> jidanni.org, 7272 <at> debbugs.gnu.org
Subject: Re: bug#7272: 24.0.50; Enabling Flyspell mode gave an error
Date: Tue, 26 Oct 2010 15:45:59 +0200
On Tue, Oct 26, 2010 at 08:03:19PM +0800, jidanni <at> jidanni.org wrote:
> >>>>> "AM" == Agustin Martin <agustin.martin <at> hispalinux.es> writes:
> AM> 1:20101024-1). Can you try with that newer emacs-snapshot, so we have more 
> AM> info about the problem?
> Bingo,
> Error enabling Flyspell mode:
> (Error: No word lists can be found for the language "zh_TW".)
> So at least we now know what is going on.
> However, how might I suppress this message without changing my ENV
> variables or touch(1)ing empty files etc.?

I guess you are using aspell (emacs-snapshot defaults to aspell if 
present), your LANG envar points to zh_TW, and there is no zh_TW aspell
dictionary present. Note that, unless an explicit dict is given, aspell 
will try to get its default dictionary after variables LANG or 
LC_MESSAGES. 

If so, the error you get is exactly what is expected, you tell flyspell 
to start spellchecking and since no specific dictionary is selected it 
tries to use one after LANG variable. Since the dict is not found 
aspell fails and flyspell catches the error.

Error should be similar when you just try spellchecking a test file
in the same ENV without an explicit dict option,

$ aspell check test.txt

If you want to avoid that error for emacs without touching your .emacs 
file (that  is, avoiding the error even when using the -Q option) or
for all aspell uses, you need to explicitly tell aspell about your 
desired dict, either in your aspell personal configuration file 
(~/.aspell.conf) or in the global one if you want to set that for all 
users.

An entry in aspell configuration file with something like

lang de_CH

pointing to your desired language should do the work. See 'man aspell' for
details.

I am probably guessing too much, but there is a good chance that this is
indeed the problem. If so, please close this bug report.

Hope this helps,

-- 
Agustin




Reply sent to jidanni <at> jidanni.org:
You have taken responsibility. (Wed, 27 Oct 2010 04:38:02 GMT) Full text and rfc822 format available.

Notification sent to jidanni <at> jidanni.org:
bug acknowledged by developer. (Wed, 27 Oct 2010 04:38:02 GMT) Full text and rfc822 format available.

Message #29 received at 7272-done <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: Agustin Martin <agustin.martin <at> hispalinux.es>
Cc: 7272-done <at> debbugs.gnu.org
Subject: Re: bug#7272: 24.0.50; Enabling Flyspell mode gave an error
Date: Wed, 27 Oct 2010 12:41:25 +0800
On Tue, Oct 26, 2010 at 03:45:59PM +0200, Agustin Martin wrote:
> An entry in aspell configuration file with something like
> 
> lang de_CH
> 
> pointing to your desired language should do the work. See 'man aspell' for
> details.
I was just wondering if there was a way to say that in .emacs, so I don't have to maintain a second file.




Reply sent to jidanni <at> jidanni.org:
You have taken responsibility. (Wed, 27 Oct 2010 04:38:02 GMT) Full text and rfc822 format available.

Notification sent to jidanni <at> jidanni2.jidanni.org:
bug acknowledged by developer. (Wed, 27 Oct 2010 04:38:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7272; Package emacs. (Wed, 27 Oct 2010 09:58:01 GMT) Full text and rfc822 format available.

Message #37 received at 7272 <at> debbugs.gnu.org (full text, mbox):

From: Agustin Martin <agustin.martin <at> hispalinux.es>
To: jidanni <at> jidanni.org, 7272 <at> debbugs.gnu.org
Subject: Re: bug#7272: 24.0.50; Enabling Flyspell mode gave an error
Date: Wed, 27 Oct 2010 12:01:37 +0200
On Wed, Oct 27, 2010 at 12:41:25PM +0800, jidanni <at> jidanni.org wrote:
> On Tue, Oct 26, 2010 at 03:45:59PM +0200, Agustin Martin wrote:
> > An entry in aspell configuration file with something like
> > 
> > lang de_CH
> > 
> > pointing to your desired language should do the work. See 'man aspell' for
> > details.
> I was just wondering if there was a way to say that in .emacs, so I don't have to maintain a second file.

Not it you call emacs with -Q option, which will make ~/.emacs be 
ignored. If init file is read (no -Q or -q), just setting 
`ispell-dictionary' variable in ~/.emacs to an available dictionary 
should work.

IIRC you have a valid default dict entry in your .emacs file, so this
problem should not appear in normal use. If it appeared, it is a 
problem.

Was this error already present before you tried with 

  $ emacs -Q /etc/motd -f flyspell-mode

for the bug report?

-- 
Agustin





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 24 Nov 2010 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 213 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.