From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Martin Kletzander Newsgroups: gmane.emacs.bugs Subject: bug#25830: 25.2; ispell doesn't parse hunspell dictionaries properly Date: Tue, 21 Feb 2017 10:18:57 +0100 Message-ID: <20170221091857.GA4096@wheatley> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Trace: blaine.gmane.org 1487696363 23572 195.159.176.226 (21 Feb 2017 16:59:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 21 Feb 2017 16:59:23 +0000 (UTC) User-Agent: Mutt/1.5.24 (2015-08-30) To: 25830@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 21 17:59:19 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgDmV-0005a0-VX for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Feb 2017 17:59:16 +0100 Original-Received: from localhost ([::1]:46947 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgDmb-0004k7-P9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Feb 2017 11:59:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgCw6-0003bW-6D for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2017 11:05:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgCw2-0003Oc-IV for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2017 11:05:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50890) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cgCw2-0003OY-FP for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2017 11:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cgCw2-0004Sv-7b for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2017 11:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Martin Kletzander Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Feb 2017 16:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25830 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.148769308617138 (code B ref -1); Tue, 21 Feb 2017 16:05:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Feb 2017 16:04:46 +0000 Original-Received: from localhost ([127.0.0.1]:49089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgCvl-0004SL-WC for submit@debbugs.gnu.org; Tue, 21 Feb 2017 11:04:46 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38963) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cg6bJ-0001bh-ON for submit@debbugs.gnu.org; Tue, 21 Feb 2017 04:19:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cg6bC-0000GK-Tg for submit@debbugs.gnu.org; Tue, 21 Feb 2017 04:19:08 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46943) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cg6bC-0000GG-RA for submit@debbugs.gnu.org; Tue, 21 Feb 2017 04:19:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cg6bB-0007e8-3A for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2017 04:19:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cg6b6-0000EW-Us for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2017 04:19:05 -0500 Original-Received: from mail-wr0-f170.google.com ([209.85.128.170]:35450) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cg6b6-0000E7-Kw for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2017 04:19:00 -0500 Original-Received: by mail-wr0-f170.google.com with SMTP id s27so31219445wrb.2 for ; Tue, 21 Feb 2017 01:19:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=EdrVdvkndEsNA2qeuNj//ljNu/4k28sZHrc/cywXD4o=; b=Nz+mcmRBxqJaOd+h2jBS7GliakRHaDeeVNk9EHx1U/waixGfK2++9sq2RMmMaAp6mH vn7E/WfOuD48Z1Tu9suI3yz+/TVhk7K0s2frx+Yeko3BIp0Sn1R2bE9qgtc/0y1oXdks Na6R/y1CWLNG3/vs7FFWgftjttWJI0mjy6Q6x2751ptj4bYquxCkUha62IU3tdj3Pmv7 11GElVTsUujzzXkNE2JlvTrYBrvwbNlpfOULd11+L9L7RgDeK1g2tdV5PzoLxORLt0Wc 3wn1cJTqIyYC30IjV/Shhn8jg/jh7Wn956r6ZY0Wx953xFDNmV2jNGnG/AOEgaCxl84C 4ueQ== X-Gm-Message-State: AMke39mwy7jkCz9gDKCaEhCGc0G4VMykOQSw8E7dzEn/WGMngHSQgby6f64yiS6bOLP/gg== X-Received: by 10.223.128.202 with SMTP id 68mr20930018wrl.92.1487668739217; Tue, 21 Feb 2017 01:18:59 -0800 (PST) Original-Received: from caroline.localdomain (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id g6sm16781537wmc.30.2017.02.21.01.18.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Feb 2017 01:18:58 -0800 (PST) Original-Received: by caroline.localdomain (Postfix, from userid 1000) id F03701200AA; Tue, 21 Feb 2017 10:18:57 +0100 (CET) Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Tue, 21 Feb 2017 11:04:44 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:129620 Archived-At: Hello, I have hunspell installed in the system with two default dictionaries. I was trying to setup ispell so that it works properly and I couldn't. So I started looking at the sources for ispell and I found one part that can't work. It may be intentional, but the real problem is that I can't use spellchecker at all. When `emacs -Q` is ran, it is enough to do M-$ with *no additinal settings*. The error message (and following messages for consecutive M-$) are visible below in 'Recent messages'. I could only trace the problem to the ispell.el where the error is printed. The reason for that is probably the fact that `hunspell -D` has this output on my system: SEARCH PATH: .::/usr/share/hunspell:/usr/share/myspell:/usr/share/myspell/dicts:/Library/Spelling:/home/nert/.openoffice.org/3/user/wordbook:.openoffice.org2/user/wordbook:.openoffice.org2.0/user/wordbook:Library/Spelling:/opt/openoffice.org/basis3.0/share/dict/ooo:/usr/lib/openoffice.org/basis3.0/share/dict/ooo:/opt/openoffice.org2.4/share/dict/ooo:/usr/lib/openoffice.org2.4/share/dict/ooo:/opt/openoffice.org2.3/share/dict/ooo:/usr/lib/openoffice.org2.3/share/dict/ooo:/opt/openoffice.org2.2/share/dict/ooo:/usr/lib/openoffice.org2.2/share/dict/ooo:/opt/openoffice.org2.1/share/dict/ooo:/usr/lib/openoffice.org2.1/share/dict/ooo:/opt/openoffice.org2.0/share/dict/ooo:/usr/lib/openoffice.org2.0/share/dict/ooo AVAILABLE DICTIONARIES (path is not mandatory for -d option): /usr/share/hunspell/cs_CZ /usr/share/hunspell/en_CA /usr/share/hunspell/en_ZA /usr/share/hunspell/en_US /usr/share/hunspell/en_GB /usr/share/hunspell/en_AU /usr/share/myspell/cs_CZ /usr/share/myspell/en_CA /usr/share/myspell/hyph_cs_CZ /usr/share/myspell/en_ZA /usr/share/myspell/en_US /usr/share/myspell/en_GB /usr/share/myspell/en_AU /usr/share/myspell/hyph_en_GB LOADED DICTIONARY: /usr/share/hunspell/en_GB.aff /usr/share/hunspell/en_GB.dic LOADED DICTIONARY: /usr/share/hunspell/cs_CZ.aff /usr/share/hunspell/cs_CZ.dic Hunspell 1.6.0 I tried various additional settings, setting the multi-dic for hunspell, setting default dictionaries and nothing helped. Can't ispell just detect all the .aff files and then automatically use en_GB,cs_CZ as a multi-dictionary for hunspell? That's what I want anyway. Let me know if I can provide any more information and thank you very much in advance for looking into this issue. Martin P.S.: I seem to recall my previous configuration that made this working, but it was probably before lot of emacs and hunspell upgrades. The spellchecking is not working for some time for me, it's just now that I started looking into this issue. P.P.S.: If I have (flyspell-mode) in a 'message-mode-hook and I start emacsclient with a file that automatically starts in message-mode, then emacs crashes due to the default dictionary being nil or something in that regard. In GNU Emacs 25.2.1 (x86_64-pc-linux-gnu) of 2017-02-20 built on caroline System Description: Gentoo Base System release 2.3 Configured using: 'configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/emacs-25.2_rc1 --htmldir=/usr/share/doc/emacs-25.2_rc1/html --libdir=/usr/lib64 --program-suffix=-emacs-25 --infodir=/usr/share/info/emacs-25 --localstatedir=/var --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp --with-gameuser=:gamestat --without-compress-install --with-file-notification=inotify --enable-acl --with-dbus --without-modules --with-gpm --without-hesiod --with-kerberos --with-kerberos5 --with-xml2 --without-selinux --with-gnutls --with-wide-int --with-zlib --with-sound=alsa --with-x --without-ns --without-gconf --without-gsettings --with-toolkit-scroll-bars --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xpm --with-imagemagick --with-xft --without-cairo --without-libotf --without-m17n-flt --with-x-toolkit=no GENTOO_PACKAGE=app-editors/emacs-25.2_rc1 'CFLAGS=-O2 -pipe -ggdb -march=native' CPPFLAGS= 'LDFLAGS=-Wl,-O1 -Wl,--as-needed'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS NOTIFY ACL GNUTLS LIBXML2 FREETYPE XFT ZLIB X11 Important settings: value of $LC_CTYPE: en_GB.utf8 value of $LANG: en_GB.utf8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: ispell-find-hunspell-dictionaries: ispell-fhd: Default dict already defined as (en_GB /usr/share/hunspell/en_GB.aff). Not using /usr/share/hunspell/cs_CZ.aff. Starting new Ispell process /usr/bin/hunspell with default dictionary... split-string: Wrong type argument: stringp, nil next-line: End of buffer Starting new Ispell process /usr/bin/hunspell with default dictionary... split-string: Wrong type argument: stringp, nil Starting new Ispell process /usr/bin/hunspell with default dictionary... split-string: Wrong type argument: stringp, nil Starting new Ispell process /usr/bin/hunspell with default dictionary... split-string: Wrong type argument: stringp, nil Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils ispell term/xterm xterm time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting font-render-setting x multi-tty make-network-process emacs) Memory information: ((conses 16 91424 6545) (symbols 48 20210 0) (miscs 40 43 160) (strings 32 15556 4780) (string-bytes 1 446860) (vectors 16 10101) (vector-slots 8 389043 14706) (floats 8 167 358) (intervals 56 258 0) (buffers 976 18) (heap 1024 13197 776))