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 19:34:05 +0300 Message-ID: <831t0l6s1u.fsf@gnu.org> References: <57D9ACBB.8020908@yahoo.com> <837fad6w2e.fsf@gnu.org> <57DAC4B6.9040204@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 1473957329 30495 195.159.176.226 (15 Sep 2016 16:35:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Sep 2016 16:35:29 +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 18:35:25 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 1bkZdB-00075f-Qz for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Sep 2016 18:35:21 +0200 Original-Received: from localhost ([::1]:36226 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkZd9-0002wV-Uo for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Sep 2016 12:35:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkZcw-0002sW-SH for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 12:35:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkZcr-0004Mh-TW for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 12:35:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34755) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkZcr-0004Mb-QX for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 12:35:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bkZcr-00021p-Jr for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 12:35: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 16:35: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.14739572527734 (code B ref 24439); Thu, 15 Sep 2016 16:35:01 +0000 Original-Received: (at 24439) by debbugs.gnu.org; 15 Sep 2016 16:34:12 +0000 Original-Received: from localhost ([127.0.0.1]:60700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkZc4-00020g-Az for submit@debbugs.gnu.org; Thu, 15 Sep 2016 12:34:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37030) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkZc2-00020S-Qg for 24439@debbugs.gnu.org; Thu, 15 Sep 2016 12:34:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkZbs-0003fl-Ng for 24439@debbugs.gnu.org; Thu, 15 Sep 2016 12:34:05 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38623) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkZbs-0003ff-L7; Thu, 15 Sep 2016 12:34:00 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1836 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bkZbr-0007KT-DI; Thu, 15 Sep 2016 12:34:00 -0400 In-reply-to: <57DAC4B6.9040204@yahoo.com> (message from Laimonas =?UTF-8?Q?V=C4=97bra?= on Thu, 15 Sep 2016 18:56:38 +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:123348 Archived-At: > Cc: 24439@debbugs.gnu.org > From: Laimonas VÄ—bra > Date: Thu, 15 Sep 2016 18:56:38 +0300 > > > 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? > > I do understand, that it's internal variable, though it it useful (and i > would say crucial) for customization. How am i suppose to customize > `ispell-local-dictionary-alist'? It's a defcustom, so using Customize is the preferred way. Of course, you can also set it from Lisp. 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. 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? > AFAICS dictionaries, that are added > there, are not visible to `ispell-change-dictionary', because > `ispell-library-directory' points to a wrong directory 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.