GNU bug report logs - #6539
ispell-complete-word looks for wrong file (at least on w32)

Previous Next

Package: emacs;

Reported by: Lennart Borgman <lennart.borgman <at> gmail.com>

Date: Wed, 30 Jun 2010 09:19:01 UTC

Severity: minor

Tags: wontfix

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.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 6539 in the body.
You can then email your comments to 6539 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, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Wed, 30 Jun 2010 09:19:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lennart Borgman <lennart.borgman <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 30 Jun 2010 09:19:01 GMT) Full text and rfc822 format available.

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

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Emacs Bugs <bug-gnu-emacs <at> gnu.org>
Subject: ispell-complete-word looks for wrong file (at least on w32)
Date: Wed, 30 Jun 2010 11:18:17 +0200
Calling ispell-complete-word on w32 gives the error

  grep error: grep: /usr/dict/words: No such file or directory

This is wrong for w32.

I am using aspell. It also seems like the function above does not know
about aspell.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Wed, 30 Jun 2010 10:39:02 GMT) Full text and rfc822 format available.

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

From: Agustin Martin <agustin6martin <at> gmail.com>
To: Lennart Borgman <lennart.borgman <at> gmail.com>, 6539 <at> debbugs.gnu.org
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least
	on w32)
Date: Wed, 30 Jun 2010 12:38:26 +0200
On Wed, Jun 30, 2010 at 11:18:17AM +0200, Lennart Borgman wrote:
> Calling ispell-complete-word on w32 gives the error
> 
>   grep error: grep: /usr/dict/words: No such file or directory
> 
> This is wrong for w32.
> 
> I am using aspell. It also seems like the function above does not know
> about aspell.

Hi, Lennart, 

`ispell-complete-word' does not use spellchecking dictionaries but
plain wordlists to guess completions, so it does not depend on spellchecking
engines. Plain wordlist to use can be customized by means of 
`ispell-alternate-dictionary' variable. 

Do you have a plain wordlist installed? It has been considered a nearly 
standard part of any UNIX-like system (at least a minimal american wordlist)
whose default location is currently /usr/share/dict/words (or previously  
/usr/dict/words). While this does not apply to w32, any plain wordlist at
any of the locations tried in `ispell-alternate-dictionary' should work, as
well as in any other location as long as `ispell-alternate-dictionary' is
modified.

See `lookup-words' along with `ispell-complete-word' for more info.
`ispell-alternate-dictionary' docstring speaks about 'dictionary' instead 
of word-list dictionary as `lookup-words' does. Cannot commit now but will
try to put this more clear soon.

I think that this bug report can be closed or renamed to something like 
'Improve `ispell-alternate-dictionary' docstring'.

Cheers,

-- 
Agustin




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Wed, 30 Jun 2010 11:47:01 GMT) Full text and rfc822 format available.

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

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Agustin Martin <agustin6martin <at> gmail.com>
Cc: 6539 <at> debbugs.gnu.org
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least on 
	w32)
Date: Wed, 30 Jun 2010 13:45:56 +0200
On Wed, Jun 30, 2010 at 12:38 PM, Agustin Martin
<agustin6martin <at> gmail.com> wrote:
> On Wed, Jun 30, 2010 at 11:18:17AM +0200, Lennart Borgman wrote:
>> Calling ispell-complete-word on w32 gives the error
>>
>>   grep error: grep: /usr/dict/words: No such file or directory
>>
>> This is wrong for w32.
>>
>> I am using aspell. It also seems like the function above does not know
>> about aspell.
>
> Hi, Lennart,

Hi Agustin, thanks for replying.

> `ispell-complete-word' does not use spellchecking dictionaries but
> plain wordlists to guess completions, so it does not depend on spellchecking
> engines. Plain wordlist to use can be customized by means of
> `ispell-alternate-dictionary' variable.

OK, thanks. The default for ispell-alternate-dictionary is not a full
path on w32 so that is a bug.

> Do you have a plain wordlist installed? It has been considered a nearly
> standard part of any UNIX-like system (at least a minimal american wordlist)
> whose default location is currently /usr/share/dict/words (or previously
> /usr/dict/words).

Does not such plain wordlists come with ispell or aspell?

> I think that this bug report can be closed or renamed to something like
> 'Improve `ispell-alternate-dictionary' docstring'.

I think the default for ispell-alternate-dictionary should be changed on w32.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Wed, 30 Jun 2010 12:28:02 GMT) Full text and rfc822 format available.

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

From: Agustin Martin <agustin.martin <at> hispalinux.es>
To: Lennart Borgman <lennart.borgman <at> gmail.com>, 6539 <at> debbugs.gnu.org
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least
	on w32)
Date: Wed, 30 Jun 2010 14:27:47 +0200
> On Wed, Jun 30, 2010 at 01:45:56PM +0200, Lennart Borgman wrote:
> 
> Does not such plain wordlists come with ispell or aspell?

Hi,

No, both ispell and aspell use hashed tables derived from affix rules and
affix-compressed word lists and usually only that hash and affix files are
shipped. Since hashes are endianess-dependent, sometimes (e.g. Debian) 
compressed affix-compressed wordlists are shipped along with the affix 
file and the hash is built on the fly on installation, but full expanded
wordlist is not shipped.  

myspell/hunspell use plain affix-compressed word lists together with the 
associated affix rules file. In a limit case, myspell and hunspell could 
use plain wordlists along with an affix rules file with no affix rules, 
but that means huge wordlists and reduced efficiency, thus affix 
compression is generally used.

> > I think that this bug report can be closed or renamed to something like
> > 'Improve `ispell-alternate-dictionary' docstring'.
> 
> I think the default for ispell-alternate-dictionary should be changed on w32.

Or, more globally, find a good and not confusing name for default personal 
plain wordlist that can be used in every system, be it w32 or not, so it is 
tried first in `ispell-alternate-dictionary', something like

(expand-file-name "~/.personal.words")

Not sure if that syntax works well in w32. Suggestions are welcome.

Cheers,

-- 
Agustin




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Wed, 30 Jun 2010 17:30:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lennart Borgman <lennart.borgman <at> gmail.com>
Cc: 6539 <at> debbugs.gnu.org, agustin6martin <at> gmail.com
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least
	on	w32)
Date: Wed, 30 Jun 2010 20:31:40 +0300
> From: Lennart Borgman <lennart.borgman <at> gmail.com>
> Date: Wed, 30 Jun 2010 13:45:56 +0200
> Cc: 6539 <at> debbugs.gnu.org
> 
> OK, thanks. The default for ispell-alternate-dictionary is not a full
> path on w32 so that is a bug.

How would you suggest to fix this "bug"?  I see only 2 possibilities
(besides leaving this as they are and letting w32 users customize the
value, as I did): either (a) signal an error, or (b) search the entire
hard disk storage for a file named `words'.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Wed, 30 Jun 2010 17:34:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Agustin Martin <agustin.martin <at> hispalinux.es>
Cc: lennart.borgman <at> gmail.com, 6539 <at> debbugs.gnu.org
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least
	on	w32)
Date: Wed, 30 Jun 2010 20:35:35 +0300
> Date: Wed, 30 Jun 2010 14:27:47 +0200
> From: Agustin Martin <agustin.martin <at> hispalinux.es>
> Cc: 
> 
> > > I think that this bug report can be closed or renamed to something like
> > > 'Improve `ispell-alternate-dictionary' docstring'.
> > 
> > I think the default for ispell-alternate-dictionary should be changed on w32.
> 
> Or, more globally, find a good and not confusing name for default personal 
> plain wordlist that can be used in every system, be it w32 or not, so it is 
> tried first in `ispell-alternate-dictionary', something like
> 
> (expand-file-name "~/.personal.words")

How will that help, exactly?  /usr/dict/words exists on almost every
Posix system, which is why ispell.el has that as the default.  But
there's no comparable functionality on Windows, so the only way of
getting this work on Windows is to find or download such a file from
somewhere, and manually install it in some arbitrary directory.  How
is Emacs supposed to know whether such a file exists, and where?




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Wed, 30 Jun 2010 18:08:01 GMT) Full text and rfc822 format available.

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

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Agustin Martin <agustin.martin <at> hispalinux.es>
Cc: 6539 <at> debbugs.gnu.org
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least on 
	w32)
Date: Wed, 30 Jun 2010 20:07:27 +0200
On Wed, Jun 30, 2010 at 2:27 PM, Agustin Martin
<agustin.martin <at> hispalinux.es> wrote:
>> On Wed, Jun 30, 2010 at 01:45:56PM +0200, Lennart Borgman wrote:
>>
>> Does not such plain wordlists come with ispell or aspell?
>
> Hi,
>
> No, both ispell and aspell use hashed tables derived from affix rules and ...


Thanks for the explanations.

Perhaps it would be possible to rewrite ispell-complete-word to use
those tables instead?


>> I think the default for ispell-alternate-dictionary should be changed on w32.
>
> Or, more globally, find a good and not confusing name for default personal
> plain wordlist that can be used in every system, be it w32 or not, so it is
> tried first in `ispell-alternate-dictionary', something like
>
> (expand-file-name "~/.personal.words")
>
> Not sure if that syntax works well in w32. Suggestions are welcome.


It works well on w32. The location seems good too, but maybe it should
be in ~/.emacs.d/.

Maybe the name should remind more about ispell though?




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Wed, 30 Jun 2010 18:20:02 GMT) Full text and rfc822 format available.

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

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 6539 <at> debbugs.gnu.org, agustin6martin <at> gmail.com
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least on 
	w32)
Date: Wed, 30 Jun 2010 20:13:42 +0200
On Wed, Jun 30, 2010 at 7:31 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Lennart Borgman <lennart.borgman <at> gmail.com>
>> Date: Wed, 30 Jun 2010 13:45:56 +0200
>> Cc: 6539 <at> debbugs.gnu.org
>>
>> OK, thanks. The default for ispell-alternate-dictionary is not a full
>> path on w32 so that is a bug.
>
> How would you suggest to fix this "bug"?  I see only 2 possibilities
> (besides leaving this as they are and letting w32 users customize the
> value, as I did): either (a) signal an error, or (b) search the entire
> hard disk storage for a file named `words'.

I would perhaps suggest leaving it as nil on w32. That would make it
more clear that this is not a left over from unix systems, but rather
something a user must setup on w32 systems to make it work.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Wed, 30 Jun 2010 20:55:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lennart Borgman <lennart.borgman <at> gmail.com>
Cc: 6539 <at> debbugs.gnu.org, agustin6martin <at> gmail.com
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least
	on	w32)
Date: Wed, 30 Jun 2010 23:55:00 +0300
> From: Lennart Borgman <lennart.borgman <at> gmail.com>
> Date: Wed, 30 Jun 2010 20:13:42 +0200
> Cc: agustin6martin <at> gmail.com, 6539 <at> debbugs.gnu.org
> 
> On Wed, Jun 30, 2010 at 7:31 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> >> From: Lennart Borgman <lennart.borgman <at> gmail.com>
> >> Date: Wed, 30 Jun 2010 13:45:56 +0200
> >> Cc: 6539 <at> debbugs.gnu.org
> >>
> >> OK, thanks. The default for ispell-alternate-dictionary is not a full
> >> path on w32 so that is a bug.
> >
> > How would you suggest to fix this "bug"?  I see only 2 possibilities
> > (besides leaving this as they are and letting w32 users customize the
> > value, as I did): either (a) signal an error, or (b) search the entire
> > hard disk storage for a file named `words'.
> 
> I would perhaps suggest leaving it as nil on w32. That would make it
> more clear that this is not a left over from unix systems, but rather
> something a user must setup on w32 systems to make it work.

Then you'd see

   Debugger entered--Lisp error: (wrong-type-argument stringp nil)

Is that really better?





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Wed, 30 Jun 2010 21:05:02 GMT) Full text and rfc822 format available.

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

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 6539 <at> debbugs.gnu.org, agustin6martin <at> gmail.com
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least on 
	w32)
Date: Wed, 30 Jun 2010 23:04:11 +0200
On Wed, Jun 30, 2010 at 10:55 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Lennart Borgman <lennart.borgman <at> gmail.com>
>> Date: Wed, 30 Jun 2010 20:13:42 +0200
>> Cc: agustin6martin <at> gmail.com, 6539 <at> debbugs.gnu.org
>>
>> On Wed, Jun 30, 2010 at 7:31 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> >> From: Lennart Borgman <lennart.borgman <at> gmail.com>
>> >> Date: Wed, 30 Jun 2010 13:45:56 +0200
>> >> Cc: 6539 <at> debbugs.gnu.org
>> >>
>> >> OK, thanks. The default for ispell-alternate-dictionary is not a full
>> >> path on w32 so that is a bug.
>> >
>> > How would you suggest to fix this "bug"?  I see only 2 possibilities
>> > (besides leaving this as they are and letting w32 users customize the
>> > value, as I did): either (a) signal an error, or (b) search the entire
>> > hard disk storage for a file named `words'.
>>
>> I would perhaps suggest leaving it as nil on w32. That would make it
>> more clear that this is not a left over from unix systems, but rather
>> something a user must setup on w32 systems to make it work.
>
> Then you'd see
>
>   Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>
> Is that really better?

Hm, maybe not. Then perhaps a suitable file name for w32 is better?

An accompanying explanatory message would of course be even better.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Thu, 01 Jul 2010 01:52:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Agustin Martin <agustin6martin <at> gmail.com>
Cc: Lennart Borgman <lennart.borgman <at> gmail.com>, 6539 <at> debbugs.gnu.org
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least on
	w32)
Date: Thu, 01 Jul 2010 03:34:53 +0200
> `ispell-complete-word' does not use spellchecking dictionaries but
> plain wordlists to guess completions, so it does not depend on spellchecking
> engines. Plain wordlist to use can be customized by means of 
> `ispell-alternate-dictionary' variable. 

FWIW, I find it really confusing that ispell-complete-word does not
use ispell.  It should probably be moved out of ispell.el (unless we
can somehow make it use some ispell/aspell/hunspell functionality).


        Stefan




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Thu, 01 Jul 2010 03:16:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lennart Borgman <lennart.borgman <at> gmail.com>
Cc: 6539 <at> debbugs.gnu.org, agustin6martin <at> gmail.com
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least
	on	w32)
Date: Thu, 01 Jul 2010 06:16:59 +0300
> From: Lennart Borgman <lennart.borgman <at> gmail.com>
> Date: Wed, 30 Jun 2010 23:04:11 +0200
> Cc: agustin6martin <at> gmail.com, 6539 <at> debbugs.gnu.org
> 
> > Then you'd see
> >
> >   Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> >
> > Is that really better?
> 
> Hm, maybe not. Then perhaps a suitable file name for w32 is better?

Then you'd have the same error message as we do now, just with a w32
formatted absolute file name.  How is this better than the current
state of affairs?





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Thu, 01 Jul 2010 03:16:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 6539 <at> debbugs.gnu.org, agustin6martin <at> gmail.com
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least
	on	w32)
Date: Thu, 01 Jul 2010 06:17:41 +0300
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Date: Thu, 01 Jul 2010 03:34:53 +0200
> Cc: 6539 <at> debbugs.gnu.org
> 
> FWIW, I find it really confusing that ispell-complete-word does not
> use ispell.  It should probably be moved out of ispell.el (unless we
> can somehow make it use some ispell/aspell/hunspell functionality).

It's there because it's an Ispell feature, present also in the
stand-alone version of the speller.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Thu, 01 Jul 2010 09:47:01 GMT) Full text and rfc822 format available.

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

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 6539 <at> debbugs.gnu.org, agustin6martin <at> gmail.com
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least on 
	w32)
Date: Thu, 1 Jul 2010 11:45:51 +0200
On Thu, Jul 1, 2010 at 5:16 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Lennart Borgman <lennart.borgman <at> gmail.com>
>> Date: Wed, 30 Jun 2010 23:04:11 +0200
>> Cc: agustin6martin <at> gmail.com, 6539 <at> debbugs.gnu.org
>>
>> > Then you'd see
>> >
>> >   Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>> >
>> > Is that really better?
>>
>> Hm, maybe not. Then perhaps a suitable file name for w32 is better?
>
> Then you'd have the same error message as we do now, just with a w32
> formatted absolute file name.  How is this better than the current
> state of affairs?

As I said earlier it would be less confusing. Then the user will know
that this is not just something that no one has cared about on w32.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Thu, 01 Jul 2010 16:53:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lennart Borgman <lennart.borgman <at> gmail.com>
Cc: 6539 <at> debbugs.gnu.org, agustin6martin <at> gmail.com
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least
	on	w32)
Date: Thu, 01 Jul 2010 19:54:57 +0300
> From: Lennart Borgman <lennart.borgman <at> gmail.com>
> Date: Thu, 1 Jul 2010 11:45:51 +0200
> Cc: agustin6martin <at> gmail.com, 6539 <at> debbugs.gnu.org
> 
> On Thu, Jul 1, 2010 at 5:16 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> >> From: Lennart Borgman <lennart.borgman <at> gmail.com>
> >> Date: Wed, 30 Jun 2010 23:04:11 +0200
> >> Cc: agustin6martin <at> gmail.com, 6539 <at> debbugs.gnu.org
> >>
> >> > Then you'd see
> >> >
> >> >   Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> >> >
> >> > Is that really better?
> >>
> >> Hm, maybe not. Then perhaps a suitable file name for w32 is better?
> >
> > Then you'd have the same error message as we do now, just with a w32
> > formatted absolute file name.  How is this better than the current
> > state of affairs?
> 
> As I said earlier it would be less confusing.

I don't see how.





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Thu, 01 Jul 2010 17:09:02 GMT) Full text and rfc822 format available.

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

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 6539 <at> debbugs.gnu.org, agustin6martin <at> gmail.com
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least on 
	w32)
Date: Thu, 1 Jul 2010 19:01:45 +0200
On Thu, Jul 1, 2010 at 6:54 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Lennart Borgman <lennart.borgman <at> gmail.com>
>> Date: Thu, 1 Jul 2010 11:45:51 +0200
>> Cc: agustin6martin <at> gmail.com, 6539 <at> debbugs.gnu.org
>>
>> On Thu, Jul 1, 2010 at 5:16 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> >> From: Lennart Borgman <lennart.borgman <at> gmail.com>
>> >> Date: Wed, 30 Jun 2010 23:04:11 +0200
>> >> Cc: agustin6martin <at> gmail.com, 6539 <at> debbugs.gnu.org
>> >>
>> >> > Then you'd see
>> >> >
>> >> >   Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>> >> >
>> >> > Is that really better?
>> >>
>> >> Hm, maybe not. Then perhaps a suitable file name for w32 is better?
>> >
>> > Then you'd have the same error message as we do now, just with a w32
>> > formatted absolute file name.  How is this better than the current
>> > state of affairs?
>>
>> As I said earlier it would be less confusing.
>
> I don't see how.


If Emacs says that it can not find a file with a path that is clearly
not a w32 path, but a unix style path, is not that more confusing to
you? Don't you get the impression that this is not yet working on w32
because no has fixed the file name? And in such a case don't you get
the impression that there might be more things involved that are not
OS independent?

After seeing many such cases at least I get that impression.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Mon, 05 Jul 2010 11:31:02 GMT) Full text and rfc822 format available.

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

From: Agustin Martin <agustin.martin <at> hispalinux.es>
To: 6539 <at> debbugs.gnu.org
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least
	on	w32)
Date: Mon, 5 Jul 2010 13:30:10 +0200
On Wed, Jun 30, 2010 at 08:35:35PM +0300, Eli Zaretskii wrote:
> > Date: Wed, 30 Jun 2010 14:27:47 +0200
> > From: Agustin Martin <agustin.martin <at> hispalinux.es>
> > Cc: 
> > 
> > > > I think that this bug report can be closed or renamed to something like
> > > > 'Improve `ispell-alternate-dictionary' docstring'.
> > > 
> > > I think the default for ispell-alternate-dictionary should be changed on w32.
> > 
> > Or, more globally, find a good and not confusing name for default personal 
> > plain wordlist that can be used in every system, be it w32 or not, so it is 
> > tried first in `ispell-alternate-dictionary', something like
> > 
> > (expand-file-name "~/.personal.words")
> 
> How will that help, exactly?  /usr/dict/words exists on almost every
> Posix system, which is why ispell.el has that as the default.  But
> there's no comparable functionality on Windows, so the only way of
> getting this work on Windows is to find or download such a file from
> somewhere, and manually install it in some arbitrary directory.  How
> is Emacs supposed to know whether such a file exists, and where?

My initial intention was to provide an out-of-the box default for personal
wordlist, useful for both w32 and *X systems. However, as you point out in
another message, since this is originally an Ispell feature, I think I
should not add an Emacs specific difference. Customizing
`ispell-alternate-dictionary' (or `ispell-complete-word-dict') seems the 
way to go.

However, docstrings and error handling for this complete-word stuff needs 
to be improved, so it provides useful and accurate information. I am 
currently trying something like attached patch where 
`ispell-alternate-dictionary' is set to nil if no default is found and 
checked before use. I find error message too long, but better that before.
As usually, suggestions are welcome.

It also changes `file-exists-p' to `file-readable-p' in
`ispell-alternate-dictionary' definition.

I have also noticed that ispell.el uses `ispell-alternate-dictionary' and
`ispell-complete-word-dict' in a way that seems to be interchangeable, but
confusing. The former was probably used at some time as a real alternate
dictionary for spellchecking, but current use seems to be for completion.
Have to think a bit more about this.

Cheers,

-- 
Agustin




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Mon, 05 Jul 2010 11:53:01 GMT) Full text and rfc822 format available.

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

From: Agustin Martin <agustin.martin <at> hispalinux.es>
To: 6539 <at> debbugs.gnu.org
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least
	on	w32)
Date: Mon, 5 Jul 2010 13:52:22 +0200
[Message part 1 (text/plain, inline)]
On Wed, Jun 30, 2010 at 08:35:35PM +0300, Eli Zaretskii wrote:
> > Date: Wed, 30 Jun 2010 14:27:47 +0200
> > From: Agustin Martin <agustin.martin <at> hispalinux.es>
> > Cc: 
> > 
> > > > I think that this bug report can be closed or renamed to something like
> > > > 'Improve `ispell-alternate-dictionary' docstring'.
> > > 
> > > I think the default for ispell-alternate-dictionary should be changed on w32.
> > 
> > Or, more globally, find a good and not confusing name for default personal 
> > plain wordlist that can be used in every system, be it w32 or not, so it is 
> > tried first in `ispell-alternate-dictionary', something like
> > 
> > (expand-file-name "~/.personal.words")
> 
> How will that help, exactly?  /usr/dict/words exists on almost every
> Posix system, which is why ispell.el has that as the default.  But
> there's no comparable functionality on Windows, so the only way of
> getting this work on Windows is to find or download such a file from
> somewhere, and manually install it in some arbitrary directory.  How
> is Emacs supposed to know whether such a file exists, and where?

[Really attaching diff]

My initial intention was to provide an out-of-the box default for personal
wordlist, useful for both w32 and *X systems. However, as you point out in
another message, since this is originally an Ispell feature, I think I
should not add an Emacs specific difference. Customizing
`ispell-alternate-dictionary' (or `ispell-complete-word-dict') seems the 
way to go.

However, docstrings and error handling for this complete-word stuff needs 
to be improved, so it provides useful and accurate information. I am 
currently trying something like attached patch where 
`ispell-alternate-dictionary' is set to nil if no default is found and 
checked before use. I find error message too long, but better that before.
As usually, suggestions are welcome.

It also changes `file-exists-p' to `file-readable-p' in
`ispell-alternate-dictionary' definition.

I have also noticed that ispell.el uses `ispell-alternate-dictionary' and
`ispell-complete-word-dict' in a way that seems to be interchangeable, but
confusing. The former was probably used at some time as a real alternate
dictionary for spellchecking, but current use seems to be for completion.
Have to think a bit more about this.

Cheers,

-- 
Agustin
[ispell.el_complete-word-2.diff (text/x-diff, attachment)]

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Mon, 05 Jul 2010 12:29:02 GMT) Full text and rfc822 format available.

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

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Agustin Martin <agustin.martin <at> hispalinux.es>
Cc: 6539 <at> debbugs.gnu.org
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least on 
	w32)
Date: Mon, 5 Jul 2010 14:27:50 +0200
On Mon, Jul 5, 2010 at 1:52 PM, Agustin Martin
<agustin.martin <at> hispalinux.es> wrote:
>> >
>> > Or, more globally, find a good and not confusing name for default personal
>> > plain wordlist that can be used in every system, be it w32 or not, so it is
>> > tried first in `ispell-alternate-dictionary', something like
>> >
>> > (expand-file-name "~/.personal.words")
>>
>> How will that help, exactly?  /usr/dict/words exists on almost every
>> Posix system, which is why ispell.el has that as the default.  But
>> there's no comparable functionality on Windows, so the only way of
>> getting this work on Windows is to find or download such a file from
>> somewhere, and manually install it in some arbitrary directory.  How
>> is Emacs supposed to know whether such a file exists, and where?
>
> [Really attaching diff]
>
> My initial intention was to provide an out-of-the box default for personal
> wordlist, useful for both w32 and *X systems. However, as you point out in
> another message, since this is originally an Ispell feature, I think I
> should not add an Emacs specific difference. Customizing
> `ispell-alternate-dictionary' (or `ispell-complete-word-dict') seems the
> way to go.
>
> However, docstrings and error handling for this complete-word stuff needs
> to be improved, so it provides useful and accurate information. I am
> currently trying something like attached patch where
> `ispell-alternate-dictionary' is set to nil if no default is found and
> checked before use. I find error message too long, but better that before.
> As usually, suggestions are welcome.
>
> It also changes `file-exists-p' to `file-readable-p' in
> `ispell-alternate-dictionary' definition.
>
> I have also noticed that ispell.el uses `ispell-alternate-dictionary' and
> `ispell-complete-word-dict' in a way that seems to be interchangeable, but
> confusing. The former was probably used at some time as a real alternate
> dictionary for spellchecking, but current use seems to be for completion.
> Have to think a bit more about this.


Thanks Agustin, but I still think it is a very bad idea to have
unix-style file names as default for other systems.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Mon, 05 Jul 2010 17:26:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Agustin Martin <agustin.martin <at> hispalinux.es>
Cc: 6539 <at> debbugs.gnu.org
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at
	least	on	w32)
Date: Mon, 05 Jul 2010 20:23:49 +0300
> Date: Mon, 5 Jul 2010 13:52:22 +0200
> From: Agustin Martin <agustin.martin <at> hispalinux.es>
> Cc: 
> 
> However, docstrings and error handling for this complete-word stuff needs 
> to be improved, so it provides useful and accurate information. I am 
> currently trying something like attached patch where 
> `ispell-alternate-dictionary' is set to nil if no default is found and 
> checked before use. I find error message too long, but better that before.
> As usually, suggestions are welcome.

For the error message, just put 2 spaces between the sentences, as we
do everywhere in Emacs.

For the rest, the patch looks fine, but why not test /usr/dict/words
with file-readable-p as well?  Then, if it does not exist, the
defcustom will evaluate to nil, and the error message will be even
more to the point.

Thanks.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Mon, 05 Jul 2010 17:33:02 GMT) Full text and rfc822 format available.

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

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Agustin Martin <agustin.martin <at> hispalinux.es>, 6539 <at> debbugs.gnu.org
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least on 
	w32)
Date: Mon, 5 Jul 2010 19:32:33 +0200
On Mon, Jul 5, 2010 at 7:23 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> Date: Mon, 5 Jul 2010 13:52:22 +0200
>> From: Agustin Martin <agustin.martin <at> hispalinux.es>
>> Cc:
>>
>> However, docstrings and error handling for this complete-word stuff needs
>> to be improved, so it provides useful and accurate information. I am
>> currently trying something like attached patch where
>> `ispell-alternate-dictionary' is set to nil if no default is found and
>> checked before use. I find error message too long, but better that before.
>> As usually, suggestions are welcome.
>
> For the error message, just put 2 spaces between the sentences, as we
> do everywhere in Emacs.
>
> For the rest, the patch looks fine, but why not test /usr/dict/words
> with file-readable-p as well?  Then, if it does not exist, the
> defcustom will evaluate to nil, and the error message will be even
> more to the point.


Such a test will make things even worse with unix style file names on
w32 since they with these paths Emacs will look on the current drive.
That does not have to be the same drive next time the library is
loaded.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Mon, 05 Jul 2010 17:43:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lennart Borgman <lennart.borgman <at> gmail.com>
Cc: agustin.martin <at> hispalinux.es, 6539 <at> debbugs.gnu.org
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least
	on	w32)
Date: Mon, 05 Jul 2010 20:39:59 +0300
> From: Lennart Borgman <lennart.borgman <at> gmail.com>
> Date: Mon, 5 Jul 2010 19:32:33 +0200
> Cc: Agustin Martin <agustin.martin <at> hispalinux.es>, 6539 <at> debbugs.gnu.org
> 
> > For the rest, the patch looks fine, but why not test /usr/dict/words
> > with file-readable-p as well?  Then, if it does not exist, the
> > defcustom will evaluate to nil, and the error message will be even
> > more to the point.
> 
> 
> Such a test will make things even worse with unix style file names on
> w32 since they with these paths Emacs will look on the current drive.
> That does not have to be the same drive next time the library is
> loaded.

Why does it matter which file names are tried, if the net result will
be the same: to fail?

Read my lips: the _ONLY_ way to make this feature work on Windows is
to customize the value of ispell-complete-word-dict or that of
ispell-alternate-dictionary.  Unless you do that, this feature will
_ALWAYS_ fail on Windows; the only thing we can do is make the error
message more helpful.  And if the option _is_ customized, I trust the
user to include the drive letter in the value.





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Mon, 05 Jul 2010 17:56:01 GMT) Full text and rfc822 format available.

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

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: agustin.martin <at> hispalinux.es, 6539 <at> debbugs.gnu.org
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least on 
	w32)
Date: Mon, 5 Jul 2010 19:55:28 +0200
On Mon, Jul 5, 2010 at 7:39 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Lennart Borgman <lennart.borgman <at> gmail.com>
>> Date: Mon, 5 Jul 2010 19:32:33 +0200
>> Cc: Agustin Martin <agustin.martin <at> hispalinux.es>, 6539 <at> debbugs.gnu.org
>>
>> > For the rest, the patch looks fine, but why not test /usr/dict/words
>> > with file-readable-p as well?  Then, if it does not exist, the
>> > defcustom will evaluate to nil, and the error message will be even
>> > more to the point.
>>
>>
>> Such a test will make things even worse with unix style file names on
>> w32 since they with these paths Emacs will look on the current drive.
>> That does not have to be the same drive next time the library is
>> loaded.
>
> Why does it matter which file names are tried, if the net result will
> be the same: to fail?

I thought I did explain that above. The unix style file names can
happen to work on the current default drive if the user did place the
required files there. What is unclear?

> Read my lips: the _ONLY_ way to make this feature work on Windows is
> to customize the value of ispell-complete-word-dict or that of
> ispell-alternate-dictionary.  Unless you do that, this feature will
> _ALWAYS_ fail on Windows; the only thing we can do is make the error
> message more helpful.  And if the option _is_ customized, I trust the
> user to include the drive letter in the value.
>




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Mon, 05 Jul 2010 18:26:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lennart Borgman <lennart.borgman <at> gmail.com>
Cc: agustin.martin <at> hispalinux.es, 6539 <at> debbugs.gnu.org
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least
	on	w32)
Date: Mon, 05 Jul 2010 21:23:20 +0300
> From: Lennart Borgman <lennart.borgman <at> gmail.com>
> Date: Mon, 5 Jul 2010 19:55:28 +0200
> Cc: agustin.martin <at> hispalinux.es, 6539 <at> debbugs.gnu.org
> 
> > Why does it matter which file names are tried, if the net result will
> > be the same: to fail?
> 
> I thought I did explain that above. The unix style file names can
> happen to work on the current default drive if the user did place the
> required files there.

The chances of the user accidentally putting the file in the same
directory where Ispell looks for it, which doesn't exist on Windows
and needs to be created, are slim.  The chances of doing that without
looking at ispell.el and discovering the defcustom and its default
value are even more slim.

So I think your fears are entirely imaginary, and the problem you
describe does not exist in practice.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Mon, 05 Jul 2010 19:52:02 GMT) Full text and rfc822 format available.

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

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: agustin.martin <at> hispalinux.es, 6539 <at> debbugs.gnu.org
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least on 
	w32)
Date: Mon, 5 Jul 2010 21:50:35 +0200
On Mon, Jul 5, 2010 at 8:23 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Lennart Borgman <lennart.borgman <at> gmail.com>
>> Date: Mon, 5 Jul 2010 19:55:28 +0200
>> Cc: agustin.martin <at> hispalinux.es, 6539 <at> debbugs.gnu.org
>>
>> > Why does it matter which file names are tried, if the net result will
>> > be the same: to fail?
>>
>> I thought I did explain that above. The unix style file names can
>> happen to work on the current default drive if the user did place the
>> required files there.
>
> The chances of the user accidentally putting the file in the same
> directory where Ispell looks for it, which doesn't exist on Windows
> and needs to be created, are slim.  The chances of doing that without
> looking at ispell.el and discovering the defcustom and its default
> value are even more slim.

This can rather easily happen. Just imagine a user getting the error
message and then putting the files there on the current drive.

> So I think your fears are entirely imaginary, and the problem you
> describe does not exist in practice.

It is less imaginary than a matter of imagination and logic.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Tue, 06 Jul 2010 13:49:02 GMT) Full text and rfc822 format available.

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

From: Agustin Martin <agustin.martin <at> hispalinux.es>
To: 6539 <at> debbugs.gnu.org
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least
	on w32)
Date: Tue, 6 Jul 2010 15:48:07 +0200
On Mon, Jul 05, 2010 at 09:50:35PM +0200, Lennart Borgman wrote:
> On Mon, Jul 5, 2010 at 8:23 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> >> From: Lennart Borgman <lennart.borgman <at> gmail.com>
> >> Date: Mon, 5 Jul 2010 19:55:28 +0200
> >> Cc: agustin.martin <at> hispalinux.es, 6539 <at> debbugs.gnu.org
> >>
> >> > Why does it matter which file names are tried, if the net result will
> >> > be the same: to fail?
> >>
> >> I thought I did explain that above. The unix style file names can
> >> happen to work on the current default drive if the user did place the
> >> required files there.
> >
> > The chances of the user accidentally putting the file in the same
> > directory where Ispell looks for it, which doesn't exist on Windows
> > and needs to be created, are slim.  The chances of doing that without
> > looking at ispell.el and discovering the defcustom and its default
> > value are even more slim.
> 
> This can rather easily happen. Just imagine a user getting the error
> message and then putting the files there on the current drive.

Note that proposed new error message does not point to an specific
location (just uses 'standard default locations'), but to customize
`ispell-alternate-dictionary'.

-- 
Agustin




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Tue, 06 Jul 2010 15:13:02 GMT) Full text and rfc822 format available.

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

From: Agustin Martin <agustin.martin <at> hispalinux.es>
To: 6539 <at> debbugs.gnu.org
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least
	on	w32)
Date: Tue, 6 Jul 2010 17:12:45 +0200
[Message part 1 (text/plain, inline)]
On Mon, Jul 05, 2010 at 08:23:49PM +0300, Eli Zaretskii wrote:
> > Date: Mon, 5 Jul 2010 13:52:22 +0200
> > From: Agustin Martin <agustin.martin <at> hispalinux.es>
> > Cc: 
> > 
> > However, docstrings and error handling for this complete-word stuff needs 
> > to be improved, so it provides useful and accurate information. I am 
> > currently trying something like attached patch where 
> > `ispell-alternate-dictionary' is set to nil if no default is found and 
> > checked before use. I find error message too long, but better that before.
> > As usually, suggestions are welcome.
> 
> For the error message, just put 2 spaces between the sentences, as we
> do everywhere in Emacs.

Thanks, that is the kind of things casual contributors like me usually
forget.

> For the rest, the patch looks fine, but why not test /usr/dict/words
> with file-readable-p as well?  Then, if it does not exist, the
> defcustom will evaluate to nil, and the error message will be even
> more to the point.

Seems already checked. Last /usr/dict/words was originally the return value
when nothing is found and has been removed.

Regarding the `ispell-alternate-dictionary'/`ispell-complete-word-dict'
duality I am modifying `ispell-complete-word-dict' default value to nil and
using 

  (or ispell-complete-word-dict
      ispell-alternate-dictionary))

for previous standalone calls of any of both variables. That way
`ispell-complete-word-dict' is only used if explicitly set and
`ispell-alternate-dictionary' is used otherwise. If they are ever used 
for something different this should not disturb and leave things ready.

For those curious, I am attaching a diff with my current changes. Will check
a bit more and if no further problems are found will commit to trunk
tomorrow to allow for wider checking of changes.

-- 
Agustin
[ispell.el_complete-word-3.diff (text/x-diff, attachment)]

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Tue, 06 Jul 2010 18:29:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Agustin Martin <agustin.martin <at> hispalinux.es>
Cc: 6539 <at> debbugs.gnu.org
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at
	least	on	w32)
Date: Tue, 06 Jul 2010 21:26:47 +0300
> Date: Tue, 6 Jul 2010 17:12:45 +0200
> From: Agustin Martin <agustin.martin <at> hispalinux.es>
> Cc: 
> 
> > For the rest, the patch looks fine, but why not test /usr/dict/words
> > with file-readable-p as well?  Then, if it does not exist, the
> > defcustom will evaluate to nil, and the error message will be even
> > more to the point.
> 
> Seems already checked. Last /usr/dict/words was originally the return value
> when nothing is found and has been removed.

You are right, I've misread the diffs.  Sorry.

> For those curious, I am attaching a diff with my current changes. Will check
> a bit more and if no further problems are found will commit to trunk
> tomorrow to allow for wider checking of changes.

Looks okay to me, thanks.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Fri, 23 Jul 2010 15:33:01 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 6539 <at> debbugs.gnu.org, agustin6martin <at> gmail.com
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least
	on	w32)
Date: Fri, 23 Jul 2010 17:32:09 +0200
>> FWIW, I find it really confusing that ispell-complete-word does not
>> use ispell.  It should probably be moved out of ispell.el (unless we
>> can somehow make it use some ispell/aspell/hunspell functionality).

> It's there because it's an Ispell feature, present also in the
> stand-alone version of the speller.

I must be missing something:
Does ispell-complete-word use Ispell?  If not, then it shouldn't be in
ispell.el (even if it provides a feature which Ispell also provides).


        Stefan




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Fri, 23 Jul 2010 16:49:02 GMT) Full text and rfc822 format available.

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

From: Agustin Martin <agustin.martin <at> hispalinux.es>
To: 6539 <at> debbugs.gnu.org
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least
	on	w32)
Date: Fri, 23 Jul 2010 18:47:57 +0200
On Fri, Jul 23, 2010 at 05:32:09PM +0200, Stefan Monnier wrote:
> >> FWIW, I find it really confusing that ispell-complete-word does not
> >> use ispell.  It should probably be moved out of ispell.el (unless we
> >> can somehow make it use some ispell/aspell/hunspell functionality).
> 
> > It's there because it's an Ispell feature, present also in the
> > stand-alone version of the speller.
> 
> I must be missing something:
> Does ispell-complete-word use Ispell?  If not, then it shouldn't be in
> ispell.el (even if it provides a feature which Ispell also provides).

I see it as related to spell-checking (word-completion is often useful
for that), so ispell.el is not at all a bad place. I guess that is this 
relation to spell-checking what makes this feature be provided by Ispell.

Cheers,

-- 
Agustin




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Fri, 23 Jul 2010 18:02:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: 6539 <at> debbugs.gnu.org, agustin6martin <at> gmail.com
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least
	on	w32)
Date: Fri, 23 Jul 2010 21:01:08 +0300
> From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
> Cc: agustin6martin <at> gmail.com, 6539 <at> debbugs.gnu.org
> Date: Fri, 23 Jul 2010 17:32:09 +0200
> 
> >> FWIW, I find it really confusing that ispell-complete-word does not
> >> use ispell.  It should probably be moved out of ispell.el (unless we
> >> can somehow make it use some ispell/aspell/hunspell functionality).
> 
> > It's there because it's an Ispell feature, present also in the
> > stand-alone version of the speller.
> 
> I must be missing something:
> Does ispell-complete-word use Ispell?

No.

> If not, then it shouldn't be in ispell.el (even if it provides a
> feature which Ispell also provides).

It was there to begin with, and it saves words into the same personal
dictionary that the rest of ispell.el uses.  So I see no point to
remove it from ispell.el, even though it doesn't run Ispell the
program.




Added tag(s) wontfix. Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 13 Jul 2011 23:44:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 6539 <at> debbugs.gnu.org and Lennart Borgman <lennart.borgman <at> gmail.com> Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 13 Jul 2011 23:44:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6539; Package emacs. (Wed, 13 Jul 2011 23:52:03 GMT) Full text and rfc822 format available.

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

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Lennart Borgman <lennart.borgman <at> gmail.com>, 6539 <at> debbugs.gnu.org,
	agustin6martin <at> gmail.com
Subject: Re: bug#6539: ispell-complete-word looks for wrong file (at least
	on	w32)
Date: Thu, 14 Jul 2011 01:42:45 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> > Then you'd have the same error message as we do now, just with a w32
>> > formatted absolute file name.  How is this better than the current
>> > state of affairs?
>> 
>> As I said earlier it would be less confusing.
>
> I don't see how.

Me neither, so I think the current state of the default here is as good
as we're going to get.  I'm closing this report.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 11 Aug 2011 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 322 days ago.

Previous Next


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