From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19229: A workaround for hunspell Date: Mon, 01 Dec 2014 18:26:04 +0200 Message-ID: <831toj8hgj.fsf@gnu.org> References: <20141201.035050.1157775322234029344.chriszheng99@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1417451248 20525 80.91.229.3 (1 Dec 2014 16:27:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Dec 2014 16:27:28 +0000 (UTC) Cc: haroogan@gmail.com, 19229@debbugs.gnu.org To: Chris Zheng Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 01 17:27:21 2014 Return-path: Envelope-to: geb-bug-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 1XvTol-0002SV-QE for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Dec 2014 17:27:19 +0100 Original-Received: from localhost ([::1]:60778 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvTol-0001bi-Ec for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Dec 2014 11:27:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvTob-0001bY-KB for bug-gnu-emacs@gnu.org; Mon, 01 Dec 2014 11:27:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvToT-0006XU-Uy for bug-gnu-emacs@gnu.org; Mon, 01 Dec 2014 11:27:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvToT-0006XQ-SS for bug-gnu-emacs@gnu.org; Mon, 01 Dec 2014 11:27:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XvToT-0001LF-JI for bug-gnu-emacs@gnu.org; Mon, 01 Dec 2014 11:27:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Dec 2014 16:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19229 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19229-submit@debbugs.gnu.org id=B19229.14174511635088 (code B ref 19229); Mon, 01 Dec 2014 16:27:01 +0000 Original-Received: (at 19229) by debbugs.gnu.org; 1 Dec 2014 16:26:03 +0000 Original-Received: from localhost ([127.0.0.1]:50942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XvTnW-0001K0-K9 for submit@debbugs.gnu.org; Mon, 01 Dec 2014 11:26:02 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:40172) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XvTnU-0001Ja-1d for 19229@debbugs.gnu.org; Mon, 01 Dec 2014 11:26:00 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NFW00A00VYXWA00@a-mtaout23.012.net.il> for 19229@debbugs.gnu.org; Mon, 01 Dec 2014 18:25:58 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NFW00A7IWBAVG30@a-mtaout23.012.net.il>; Mon, 01 Dec 2014 18:25:58 +0200 (IST) In-reply-to: <20141201.035050.1157775322234029344.chriszheng99@gmail.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:96779 Archived-At: > Date: Mon, 01 Dec 2014 03:50:50 +0800 > From: Chris Zheng > Cc: haroogan@gmail.com > > I think I have wasted more time than you. :( I have a way to > workaround this problem. See the below diff. I don't know whether > this affect *nix users, so it just stays in my init files. > > *** a Mon Dec 1 03:40:31 2014 > --- b Mon Dec 1 03:40:31 2014 > *************** > *** 27,33 **** > (error "ispell-fhd: Default dict already defined as %s. Not using %s.\n" > hunspell-default-dict dict) > (setq affix-file dict) > ! (setq hunspell-default-dict (list basename affix-file))) > (if (and (not (assoc basename ispell-hunspell-dict-paths-alist)) > (file-exists-p affix-file)) > ;; Entry has an associated .aff file and no previous value. > --- 27,35 ---- > (error "ispell-fhd: Default dict already defined as %s. Not using %s.\n" > hunspell-default-dict dict) > (setq affix-file dict) > ! (setq hunspell-default-dict (list basename affix-file)) > ! (add-to-list 'ispell-hunspell-dict-paths-alist > ! (list basename affix-file))) > (if (and (not (assoc basename ispell-hunspell-dict-paths-alist)) > (file-exists-p affix-file)) > ;; Entry has an associated .aff file and no previous value. Please see my comments. If what I wrote there still doesn't work for you, please describe the details of the failure. (Are you also using the MSYS2 port of Hunspell 1.3.3? if so, please try the ezwinports port instead.)