From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24439: ispell.el; cutom setting `ispell-library-directory'; patch Date: Thu, 15 Sep 2016 18:07:21 +0300 Message-ID: <837fad6w2e.fsf@gnu.org> References: <57D9ACBB.8020908@yahoo.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1473953329 5106 195.159.176.226 (15 Sep 2016 15:28:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Sep 2016 15:28:49 +0000 (UTC) Cc: 24439@debbugs.gnu.org To: Laimonas =?UTF-8?Q?V=C4=97bra?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 15 17:28:43 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkYae-0000Hj-In for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Sep 2016 17:28:40 +0200 Original-Received: from localhost ([::1]:35505 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkYac-0002XZ-K5 for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Sep 2016 11:28:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkYGm-0002EA-P0 for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 11:08:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkYGg-0000Sm-90 for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 11:08:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkYGg-0000Se-61 for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 11:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bkYGf-0005mk-UH for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 11:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Sep 2016 15:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24439 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24439-submit@debbugs.gnu.org id=B24439.147395205622205 (code B ref 24439); Thu, 15 Sep 2016 15:08:01 +0000 Original-Received: (at 24439) by debbugs.gnu.org; 15 Sep 2016 15:07:36 +0000 Original-Received: from localhost ([127.0.0.1]:60616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkYGA-0005m0-UO for submit@debbugs.gnu.org; Thu, 15 Sep 2016 11:07:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkYG4-0005lh-Hj for 24439@debbugs.gnu.org; Thu, 15 Sep 2016 11:07:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkYFv-0000Fz-61 for 24439@debbugs.gnu.org; Thu, 15 Sep 2016 11:07:19 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37143) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkYFv-0000FT-2a; Thu, 15 Sep 2016 11:07:15 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1351 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bkYFt-0000si-2Y; Thu, 15 Sep 2016 11:07:13 -0400 In-reply-to: <57D9ACBB.8020908@yahoo.com> (message from Laimonas =?UTF-8?Q?V=C4=97bra?= on Wed, 14 Sep 2016 23:02:03 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:123340 Archived-At: > From: Laimonas VÄ—bra > 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.