GNU bug report logs - #24439
ispell.el; cutom setting `ispell-library-directory'; patch

Previous Next

Package: emacs;

Reported by: Laimonas Vėbra <laimonas.vebra <at> yahoo.com>

Date: Wed, 14 Sep 2016 20:04:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Laimonas Vėbra <laimonas.vebra <at> yahoo.com>
Cc: 24439 <at> debbugs.gnu.org
Subject: bug#24439: ispell.el; cutom setting `ispell-library-directory'; patch
Date: Thu, 15 Sep 2016 18:07:21 +0300
> From: Laimonas Vėbra <laimonas.vebra <at> yahoo.com>
> Date: Wed, 14 Sep 2016 23:02:03 +0300
> 
> On Windows if one uses cygwin ispell, then one should fix ispell LIBDIR 
> (which is not correct absolute path) relative to cygwin root by setting 
> `ispell-library-directory'. Or one also might wish to use custom 
> location of dictionaries.

ispell-library-directory is not supposed to be customized by users,
it's an internal variable set and used by ispell.el.  To change the
location of dictionaries, users are supposed to customize
ispell-local-dictionary-alist.  Why can't you do that instead?

> Currently ispell.el breaks this possibiliity, because it resets
> `ispell-library-directory' to possibly incorrect or unwanted ispell 
> LIBDIR on every ispell call.

That's not what I see.  What I see is that ispell-library-directory is
set once whenever the ispell process is created, which happens only
once in a session, or when you change your ispell dictionary.  So I
think this is completely justified, because the user could install
additional dictionaries before restarting ispell.

> Could someone familiar with ispell.el overview and comment on this tiny 
> patch?

I would prefer not to mess with the internal workings of ispell.el, if
possible.

If the suggestions above don't solve your problems, perhaps you could
write a batch file or a script which reported the library directory in
the format that ispell.el expects in a native Windows build of Emacs.
Or maybe you could switch to Hunspell or Aspell, which don't need
ispell-library-directory at all.  A native Windows port of Hunspell is
available (and works very well for me).

Thanks.




This bug report was last modified 8 years and 228 days ago.

Previous Next


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