From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Agustin Martin Newsgroups: gmane.emacs.bugs Subject: bug#15903: 24.3.50; Fix small issue with ispell-hunspell when dictionary is set to default (nil) Date: Sat, 16 Nov 2013 12:43:02 +0100 Message-ID: References: <87wqk9k96w.fsf@smoon.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0122aefe39ab4f04eb49d190 X-Trace: ger.gmane.org 1384628914 318 80.91.229.3 (16 Nov 2013 19:08:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Nov 2013 19:08:34 +0000 (UTC) Cc: 15903@debbugs.gnu.org To: Vladimir Lomov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 16 20:08:38 2013 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 1VhlDa-0000ut-UF for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Nov 2013 20:07:43 +0100 Original-Received: from localhost ([::1]:36739 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhlDa-0002eW-Ei for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Nov 2013 14:07:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vhknt-0004tp-H9 for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 13:41:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vhknn-0002Zm-Gx for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 13:41:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43408) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vhknn-0002Zg-Co for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 13:41:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vhknm-0006tt-JC for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 13:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Agustin Martin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Nov 2013 18:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15903 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15903-submit@debbugs.gnu.org id=B15903.138462724626491 (code B ref 15903); Sat, 16 Nov 2013 18:41:02 +0000 Original-Received: (at 15903) by debbugs.gnu.org; 16 Nov 2013 18:40:46 +0000 Original-Received: from localhost ([127.0.0.1]:57425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VhknV-0006t9-Nc for submit@debbugs.gnu.org; Sat, 16 Nov 2013 13:40:46 -0500 Original-Received: from mail-la0-f53.google.com ([209.85.215.53]:58257) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VheHM-0003eP-CW for 15903@debbugs.gnu.org; Sat, 16 Nov 2013 06:43:08 -0500 Original-Received: by mail-la0-f53.google.com with SMTP id ea20so3503497lab.26 for <15903@debbugs.gnu.org>; Sat, 16 Nov 2013 03:43:02 -0800 (PST) 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=nB4W/IFrkN65kMKwBD/p5ywA59X4oJ0CAAwNzwbz1OY=; b=0piHGSv29bMp+YNMT3R1Qr13p8fEaHjCidIhGw8cBPWAzBeDc0o0TrF0yoqPufFiuF HEPFADDviw4w24Okvf0muMuNDlDlfAbsKSM7wjD3VdC3krswH+AyyxKW6F1ju7cF38L7 1QRvwIlmJuxTukAZ8Lwsjo+xMGFIXdB3Yx0UchVj46vZHO57xkOnetLfRMQEWNxyhJa9 rwYN8gHUP7pDDZ5bvDKNIrsgkGotmr1aV7MBMc676os5CG+MYjIyYDZohyU4zI7pcV42 rYtXyouD8fj76BaLPdGlcoJc543h/krjIMqkRC/1dGLJF40Zst+RlqBtja4QweA1IGbv nbrw== X-Received: by 10.152.120.231 with SMTP id lf7mr3551489lab.36.1384602182198; Sat, 16 Nov 2013 03:43:02 -0800 (PST) Original-Received: by 10.112.100.231 with HTTP; Sat, 16 Nov 2013 03:43:02 -0800 (PST) In-Reply-To: <87wqk9k96w.fsf@smoon.org> X-Mailman-Approved-At: Sat, 16 Nov 2013 13:40:43 -0500 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-Mailman-Approved-At: Sat, 16 Nov 2013 14:07:39 -0500 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:80659 Archived-At: --089e0122aefe39ab4f04eb49d190 Content-Type: text/plain; charset=ISO-8859-1 2013/11/15 Vladimir Lomov > --text follows this line-- > > Hello, > according to variable 'ispell-dictionary-base-alist' defined in > 'ispell.el' if 'ispell-dictionary' is nil then it is considered as > default value for dictionary. Unfortunately, when hunspell is used as > ispell program function 'ispell-parse-hunspell-affix-file' fails because > it doesn't expect nil as argument. > > I propose small and simple patch. I checked it starting emacs as: > emacs -Q > and evaluating in *scratch*: > (setq ispell-program-name "hunspell") > (setq ispell-really-hunspell t) > after that I run 'M-$' while point is on first 's' of > (message) > > In minibuffer I see > MESSAGE is correct > > Without this patch the same steps lead to message > ispell-phaf: No matching entry for nil. > Hi, Cannot reproduce it here. By the way, once initialized for hunspell ispell.el provides a match for default (nil) value, here (nil [[:alpha:]] [^[:alpha:]] ['] nil (-B) nil utf-8) Regards, -- Agustin --089e0122aefe39ab4f04eb49d190 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
2013/11/15 Vladimir Lomov <lomov.vl@gmail.com>
--text follows this line--

Hello,
according to variable 'ispell-dictionary-base-alist' defined in
'ispell.el' if 'ispell-dictionary' is nil then it is consid= ered as
default value for dictionary. Unfortunately, when hunspell is used as
ispell program function 'ispell-parse-hunspell-affix-file' fails be= cause
it doesn't expect nil as argument.

I propose small and simple patch. I checked it starting emacs as:
=A0 emacs -Q
and evaluating in *scratch*:
=A0 (setq ispell-program-name "hunspell")
=A0 (setq ispell-really-hunspell t)
after that I run 'M-$' while point is on first 's' of
=A0 (message)

In minibuffer I see
=A0 MESSAGE is correct

Without this patch the same steps lead to message
=A0 ispell-phaf: No matching entry for nil.

Hi,

Can= not reproduce it here. By the way, once initialized for hunspell ispell.el = provides a match for default (nil) value, here

(nil [[:alpha:]] [^[:alpha:]] ['] nil (-B) nil utf-8)

=
Regards,

--
Agustin
--089e0122aefe39ab4f04eb49d190--