From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Speck (Spell checker for Emacs) Date: Sat, 18 Apr 2015 20:34:37 +0300 Message-ID: <83a8y5732q.fsf@gnu.org> References: <83mw2579ce.fsf@gnu.org> <83h9sd75vt.fsf@gnu.org> <83egnh75jo.fsf@gnu.org> <83bnil74tw.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 1429378529 12235 80.91.229.3 (18 Apr 2015 17:35:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Apr 2015 17:35:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 18 19:35:21 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 1YjWeG-0001C2-E6 for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Apr 2015 19:35:20 +0200 Original-Received: from localhost ([::1]:46396 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjWeF-0003Nb-Mm for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Apr 2015 13:35:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjWe4-0003N6-O7 for help-gnu-emacs@gnu.org; Sat, 18 Apr 2015 13:35:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YjWdm-0000RP-Aa for help-gnu-emacs@gnu.org; Sat, 18 Apr 2015 13:35:08 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:44124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjWdm-0000PD-1I for help-gnu-emacs@gnu.org; Sat, 18 Apr 2015 13:34:50 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NN000500JKIVN00@mtaout26.012.net.il> for help-gnu-emacs@gnu.org; Sat, 18 Apr 2015 20:36:18 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NN00006DJKIEK40@mtaout26.012.net.il> for help-gnu-emacs@gnu.org; Sat, 18 Apr 2015 20:36:18 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.182 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:103837 Archived-At: > Date: Sat, 18 Apr 2015 19:20:14 +0200 > From: Alexander Shukaev > Cc: help-gnu-emacs >=20 > =E2=80=8BIt might sound weird, but here is where I've got so far. F= irst of all, it was > important to change >=20 > (expand-file-name "share/hunspell" ... >=20 > to >=20 > =20 > (expand-file-name "share/hunspell/" ... I did that without even thinking; it's always safe to have a trailing slash. > Secondly, even after that, it still reported the same error. Not here, it didn't. > Lastly, when I said that it works I only meant that there are no mo= re errors > and I see [en] in green color in the mode line, but nothing is actu= ally > highlighted in the buffer, while clearly there are wrongly spelled = words. When > it works for you, does speck automatically highlight misspelled wor= ds? Of course. How else would I know it "worked"? Anyway, here's the full recipe that works for me in Emacs 24.5: . emacs -Q . Insert this into *scratch*: (setq speck-hunspell-program (executable-find "hunspell")) (setq speck-hunspell-coding-system (quote utf-8)) (setq speck-hunspell-dictionary-alist =09 (quote (("en" . "en_US") =09=09 ("ru" . "ru_RU")))) (setq speck-hunspell-default-dictionary-name "en") . Mark all of the above and type "M-x eval-region RET" . Type "M-x set-variable RET speck-hunspell-library-directory RET" and type the correct directory, with the trailing slash, in quotes= , at the prompt. . M-x speck-mode RET Now type some mis-spelled word followed by a blank, and wait for a second: the mis-spelled word will be marked with a red underline.