From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.help Subject: Re: Speck (Spell checker for Emacs) Date: Sat, 18 Apr 2015 22:22:58 +0200 Message-ID: References: <83mw2579ce.fsf@gnu.org> <83h9sd75vt.fsf@gnu.org> <83egnh75jo.fsf@gnu.org> <83bnil74tw.fsf@gnu.org> <83a8y5732q.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1429388595 31033 80.91.229.3 (18 Apr 2015 20:23:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Apr 2015 20:23:15 +0000 (UTC) Cc: help-gnu-emacs To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 18 22:23:14 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YjZGk-0001fY-BN for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Apr 2015 22:23:14 +0200 Original-Received: from localhost ([::1]:46764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjZGj-000134-DZ for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Apr 2015 16:23:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjZGY-00011O-92 for help-gnu-emacs@gnu.org; Sat, 18 Apr 2015 16:23:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YjZGX-0006E7-5B for help-gnu-emacs@gnu.org; Sat, 18 Apr 2015 16:23:02 -0400 Original-Received: from mail-la0-x22b.google.com ([2a00:1450:4010:c03::22b]:33521) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjZGV-0006DV-E1; Sat, 18 Apr 2015 16:22:59 -0400 Original-Received: by layy10 with SMTP id y10so102107288lay.0; Sat, 18 Apr 2015 13:22:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=SLMU0iV1gC1zMymB7jO25OxBze9GS/tlYiC+bp34Qjw=; b=WdzAsWaMCrUtrP5O6oNFaHvRp5pSgSAchActt7xvtjp/cfubrs+nhkyHeyvaEz6mX4 payWQahFw9FgdqA4Jsd9ES2pFyOd2FKUXanMcM9+uvGtMkFHpjTQmNz3pfuOcAtNZTmh ODw265qEOVxsO/oH/QvWEqiT5WAPWASsfuUZo15QgwRJtQROYppb4F4eh3PUIvGko94b Rl5dvvx1uuKCec72cpgKDcMy9iJQGX0l/UVU+0uJFARgIp6pmOno5xeRDU48Cw53GiIs +fivmZapncYeO4oUC74bfuikahFE7Arxb8ZedKEAAvFZIr2OBWd8mwGJzYDmeSqxo2fs qd7A== X-Received: by 10.112.204.135 with SMTP id ky7mr9553542lbc.65.1429388578501; Sat, 18 Apr 2015 13:22:58 -0700 (PDT) Original-Received: by 10.112.36.103 with HTTP; Sat, 18 Apr 2015 13:22:58 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22b X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103843 Archived-At: =E2=80=8BAlright, I think I've nailed it. The important bit was to (setq speck-hunspell-library-directory "") =E2=80=8B Quite unexpected, isn't it? The reason is that if you run manually hunspell -a -d "/share/hunspell/en_US-large" -B =E2=80=8Bit reports error: Can't open affix or dictionary files for dictionary named " > =E2=80=8B > /share/hunspell/en_US-large". > =E2=80=8B > =E2=80=8BThere are only 2 ways to supply the dictionary properly, either: =E2=80=8Bhunspell -a -d "en_US-large" -B=E2=80=8B or hunspell -a -d "../share/hunspell/en_US-large" -B I'm not sure whether this is related to MSYS2 Hunspell or applies in general, but anyway that means we should configure it as follows: (setq speck-hunspell-library-directory "") or (setq speck-hunspell-library-directory "../share/hunspell/") However, the 2nd variant will not work due to Setting current directory: permission denied, ../share/hunspell/ As a result, the only variant is (setq speck-hunspell-library-directory "") and as soon as I do it, it finally works just fine! Here is the complete configuration: (setq speck-engine 'Hunspell speck-hunspell-program (executable-find "hunspell") speck-hunspell-library-directory (if (eq system-type 'windows-nt) "" (expand-file-name "share/hunspell/" (file-name-directory (directory-file-name (file-name-directory speck-hunspell-program))))= ) speck-hunspell-default-dictionary-name "en" speck-hunspell-dictionary-alist '(("en" . "en_US-large")) speck-hunspell-language-options '(("en" utf-8 nil nil)) speck-hunspell-coding-system 'utf-8) Thanks to Tomas and especially Eli for assistance. Hope this helps somebody in future. Kind regards, Alexander