unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Vladimir Lomov <lomov.vl@gmail.com>
To: Agustin Martin <agustin.martin@hispalinux.es>, 15903@debbugs.gnu.org
Subject: bug#15903: 24.3.50; Fix small issue with ispell-hunspell when dictionary is set to default (nil)
Date: Tue, 19 Nov 2013 21:08:59 +0900	[thread overview]
Message-ID: <20131119120859.GD889@smoon> (raw)
In-Reply-To: <20131119102944.GA18745@agmartin.aq.upm.es>

Hello,
** Agustin Martin [2013-11-19 11:29:44 +0100]:

> On Mon, Nov 18, 2013 at 09:48:20PM +0900, Vladimir Lomov wrote:

>> 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.

> Hi,

> Just to complete info. What does 'hunspell -D' return in your box? Please
> try both with your locale and with LC_ALL=C.

Thank you, this helps me to resolve my issue. Problem was on my side, at
that time when I used to use aspell for spell checking I set environment
variable DICTIONARY to string 'russian'. Seems that fools hunspell. When
I run hunspell -D in a shell with DICTIONARY set to 'russian' hunspell
ended with

  ...
  Can't open affix or dictionary files for dictionary named "russian".

with exit code 1. When I unset that variable I get

  ...
  LOADED DICTIONARY:
  /usr/share/hunspell/ru_RU.aff
  /usr/share/hunspell/ru_RU.dic
  Hunspell 1.3.2

And if I run hunspell with LC_ALL=C:

  ...
  LOADED DICTIONARY:
  /usr/share/hunspell/en_US.aff
  /usr/share/hunspell/en_US.dic
  Hunspell 1.3.2

So when I run Emacs in a shell without variable DICTIONARY like

  LC_ALL=C emacs -Q

and perform your steps,

  (setq ispell-program-name "hunspell")
  (setq ispell-dictionary)

'evar-region' and 'M-$' some words in *scratch* buffer, then

  (message "%s" (assoc nil ispell-hunspell-dictionary-alist))

I get expected behaviour: 'M-$' checks words and
ispell-hunspell-dictionary-alist contains 'nil' entry so it is treated
correctly.

> Thanks for the feedback,

Thanks again.

Now I think this "bug" can be closed as "FIXED".

---
WBR, Vladimir Lomov

-- 
Journalism is literature in a hurry.
		-- Matthew Arnold





  reply	other threads:[~2013-11-19 12:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-15 15:16 bug#15903: 24.3.50; Fix small issue with ispell-hunspell when dictionary is set to default (nil) Vladimir Lomov
2013-11-15 17:00 ` bug#15904: " Glenn Morris
2013-11-16 11:43 ` bug#15903: " Agustin Martin
2013-11-18  6:33   ` Vladimir Lomov
2013-11-18 12:11     ` Agustin Martin
2013-11-18 12:48       ` Vladimir Lomov
2013-11-19 10:29         ` Agustin Martin
2013-11-19 12:08           ` Vladimir Lomov [this message]
2013-11-19 13:43             ` Agustin Martin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131119120859.GD889@smoon \
    --to=lomov.vl@gmail.com \
    --cc=15903@debbugs.gnu.org \
    --cc=agustin.martin@hispalinux.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).