From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vladimir Lomov Newsgroups: gmane.emacs.bugs Subject: bug#15903: 24.3.50; Fix small issue with ispell-hunspell when dictionary is set to default (nil) Date: Mon, 18 Nov 2013 21:48:20 +0900 Message-ID: <20131118124820.GC889@smoon> References: <87wqk9k96w.fsf@smoon.org> <20131118063300.GB889@smoon> <20131118121157.GA8051@agmartin.aq.upm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="gr/z0/N6AeWAPJVB" X-Trace: ger.gmane.org 1384778958 28519 80.91.229.3 (18 Nov 2013 12:49:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Nov 2013 12:49:18 +0000 (UTC) To: Agustin Martin , 15903@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 18 13:49:22 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 1ViOGX-0005B8-6R for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Nov 2013 13:49:21 +0100 Original-Received: from localhost ([::1]:42817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViOGW-0007Xk-Qz for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Nov 2013 07:49:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViOGM-0007SA-FH for bug-gnu-emacs@gnu.org; Mon, 18 Nov 2013 07:49:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ViOGF-0004mx-0H for bug-gnu-emacs@gnu.org; Mon, 18 Nov 2013 07:49:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViOGE-0004ll-Qp for bug-gnu-emacs@gnu.org; Mon, 18 Nov 2013 07:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ViOGE-0007HE-2k for bug-gnu-emacs@gnu.org; Mon, 18 Nov 2013 07:49:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Vladimir Lomov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Nov 2013 12:49: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.138477891727930 (code B ref 15903); Mon, 18 Nov 2013 12:49:02 +0000 Original-Received: (at 15903) by debbugs.gnu.org; 18 Nov 2013 12:48:37 +0000 Original-Received: from localhost ([127.0.0.1]:59629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ViOFn-0007GO-0L for submit@debbugs.gnu.org; Mon, 18 Nov 2013 07:48:35 -0500 Original-Received: from mail-lb0-f182.google.com ([209.85.217.182]:57359) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ViOFj-0007G7-Pu for 15903@debbugs.gnu.org; Mon, 18 Nov 2013 07:48:32 -0500 Original-Received: by mail-lb0-f182.google.com with SMTP id u14so1388408lbd.27 for <15903@debbugs.gnu.org>; Mon, 18 Nov 2013 04:48:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=bKIZc7WXfBQ2MI3C73v7GBxUO06oGYkzfr4osT57uCI=; b=xoSST+X/CMHkBFUsUAWY6FtnWs7E1aJf2S/MwrxYVrFyI7ndbAafiRjHTKHG/W1ozt s/9OsMtPlmdxc0lAuvqdRvexaiwY4XR36ITsYUMt3AeNImAky4IZ8x9xP9QxAUBESueX OnrOrHmL3cUy2K+alj8fAnKpdSgiaCvn+8AEliQxrBkevm1YKuV+UxKZlk4qAOET6L+J /EdJOs88ydqOSiJLZKdDf4ckNeDB5i6+EwiUWBmj/PpljKzBDXepjTHy+gTbb/J9x2SY Z1tqxNP+ZjVQrqQztehWPR1JGcBlefOVSVxeEY6RQQS9yWkS/7xlUj7WN2pvyqgzbI40 IVhQ== X-Received: by 10.112.53.134 with SMTP id b6mr13686025lbp.5.1384778905579; Mon, 18 Nov 2013 04:48:25 -0800 (PST) Original-Received: from smoon ([141.105.47.97]) by mx.google.com with ESMTPSA id mq10sm10976337lbb.12.2013.11.18.04.48.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Nov 2013 04:48:23 -0800 (PST) Content-Disposition: inline In-Reply-To: <20131118121157.GA8051@agmartin.aq.upm.es> User-Agent: Mutt/1.5.22 (2013-10-16) 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:80729 Archived-At: --gr/z0/N6AeWAPJVB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, ** Agustin Martin [2013-11-18 13:11:58 +0100]: [...] >>> 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) >> Wouldn't you mind to share how you get this? > Using 20131101 emacs-snapshot, > $ LC_ALL=C emacs-snapshot -Q & > In scratch buffer, type > (setq ispell-program-name "hunspell") > (setq ispell-dictionary nil) > and `eval-region' that region. Then run 'M-$' on a couple of words (file and > dictionary). This will make ispell.el be loaded and ispell process started, > messages buffer shows > Starting new Ispell process [hunspell::default] ... > Checking spelling of FILE... > FILE is correct > Checking spelling of DICTIONARY... > DICTIONARY is correct Tried but without luck, I attached content of *Messages* and *scratch*. > Evaluating in the scratch buffer > (message "%s" (assoc nil ispell-hunspell-dictionary-alist)) > I get (now default here is en_US) > (nil [[:alpha:]] [^[:alpha:]] ['0-9] t (-d en_US) nil utf-8) Got nil. > Note that `ispell-hunspell-dictionary-alist' is not bound until ispell.el is > loaded, and that will not happen until you spellcheck for the first time (or > call a command that forces ispell.el load), so the first part of your check > should do nothing until then. If you get some result there please doublecheck > that you are not loading it from a different site. Exactly that I figured out from ispell.el, so at first I got 'void variable' then added 'boundp'. > PS: What is prin1? I found thin function in Emacs Lisp Manual (info:elisp#Output Functions), I use it because I didn't know how to use 'message' :), thanks for example. After some tests I found that my /real/ Emacs configuration works, this is odd because earlier it didn't. Using the same settings for test files gives failure. I'll back to this problem later on this week. --- WBR, Vladimir Lomov -- Clique Maintenance: The need of one generation to see the generation following it as deficient so as to bolster its own collective ego: "Kids today do nothing. They're so apathetic. We used to go out and protest. All they do is shop and complain." -- Douglas Coupland, "Generation X: Tales for an Accelerated Culture" --gr/z0/N6AeWAPJVB Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="messages.txt" For information about GNU Emacs and the GNU system, type C-h C-a. "hunspell" nil Mark set ispell-parse-hunspell-affix-file: ispell-phaf: No matching entry for nil. Quit Starting new Ispell process [hunspell::default] ... ispell-parse-hunspell-affix-file: ispell-phaf: No matching entry for nil. Starting new Ispell process [hunspell::default] ... ispell-parse-hunspell-affix-file: ispell-phaf: No matching entry for nil. Starting new Ispell process [hunspell::default] ... ispell-parse-hunspell-affix-file: ispell-phaf: No matching entry for nil. End of buffer [2 times] nil "nil" --gr/z0/N6AeWAPJVB Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="scratch.txt" (setq ispell-program-name "hunspell") (setq ispell-dictionary nil) (message "%s" (assoc nil ispell-hunspell-dictionary-alist)) --gr/z0/N6AeWAPJVB--