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 20:20:46 +0300 Message-ID: <83y42t5bbl.fsf@gnu.org> References: <57D9ACBB.8020908@yahoo.com> <837fad6w2e.fsf@gnu.org> <57DAC4B6.9040204@yahoo.com> <831t0l6s1u.fsf@gnu.org> <57DAD199.2010102@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 1473960151 7442 195.159.176.226 (15 Sep 2016 17:22:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Sep 2016 17:22:31 +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 19:22:27 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 1bkaMc-0000OW-CJ for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Sep 2016 19:22:18 +0200 Original-Received: from localhost ([::1]:36487 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkaMa-0007JH-GB for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Sep 2016 13:22:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkaMS-0007Io-Fh for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 13:22:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkaMM-0008SF-Dx for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 13:22:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkaMM-0008SB-Ax for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 13:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bkaMM-0003JS-4D for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 13:22:02 -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 17:22:02 +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.147396006612666 (code B ref 24439); Thu, 15 Sep 2016 17:22:02 +0000 Original-Received: (at 24439) by debbugs.gnu.org; 15 Sep 2016 17:21:06 +0000 Original-Received: from localhost ([127.0.0.1]:60726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkaLS-0003IE-BO for submit@debbugs.gnu.org; Thu, 15 Sep 2016 13:21:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkaLP-0003HO-9E for 24439@debbugs.gnu.org; Thu, 15 Sep 2016 13:21:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkaLF-0008Bx-3a for 24439@debbugs.gnu.org; Thu, 15 Sep 2016 13:20:58 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkaLE-0008Bn-Vt; Thu, 15 Sep 2016 13:20:53 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2109 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bkaL9-0004YH-8s; Thu, 15 Sep 2016 13:20:52 -0400 In-reply-to: <57DAD199.2010102@yahoo.com> (message from Laimonas =?UTF-8?Q?V=C4=97bra?= on Thu, 15 Sep 2016 19:51:37 +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:123351 Archived-At: > Cc: 24439@debbugs.gnu.org > From: Laimonas VÄ—bra > Date: Thu, 15 Sep 2016 19:51:37 +0300 > > Eli Zaretskii wrote: > > > What I meant specifically is to use the -d switch to tell ispell where > > to look for the dictionaries. The -d switch accepts absolute file > > names, AFAIR, and will not try to look in ispell-library-directory for > > such absolute file names. > > -d doesn't work, because of this code: > > ;; Include if the dictionary is in the library, or dir not defined. > (if (and > name > ;; For Aspell, we already know which dictionaries exist. > (or ispell-really-aspell > ;; Include all dictionaries if lib directory not known. > ;; Same for Hunspell, where ispell-library-directory is nil. > (not ispell-library-directory) > (file-exists-p (concat ispell-library-directory > "/" dict-bname ".hash")) > (file-exists-p (concat ispell-library-directory > "/" dict-bname ".has")))) > (push name dict-list))) > > > > If that doesn't help, then maybe I don't understand what problem, > > exactly, are you trying to solve. What bad things happen if you don't > > change the value of ispell-library-directory from its default? > > Then it's not possible to add custom dictionaries (when using cygwin > ispell) or dictionaries from other directory, than > `ispell-library-directory', because they are ommited by > `ispell-valid-dictionary-alist'. > > > Even if the dictionaries that are arguments of the -d switch are given > > as absolute file names? If so, maybe that's the problem that needs > > fixing. > > Yes. OK, so adding a condition for dict-bname being an absolute file name in the above snippet would solve your problem?