From: Tak Kunihiro <tkk@misasa.okayama-u.ac.jp>
To: eliz@gnu.org
Cc: homeros.misasa@gmail.com, tkk@misasa.okayama-u.ac.jp,
34272@debbugs.gnu.org
Subject: bug#34272: 26.1.91 M-x flyspell-mode
Date: Mon, 11 Feb 2019 09:49:47 +0900 (JST) [thread overview]
Message-ID: <20190211.094947.1823218870769180969.tkk@misasa.okayama-u.ac.jp> (raw)
In-Reply-To: <83bm3jmzah.fsf@gnu.org>
> Does the patch below help?
>
> diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
> index 656c9fa..237997d 100644
> --- a/lisp/textmodes/ispell.el
> +++ b/lisp/textmodes/ispell.el
> @@ -1114,12 +1114,19 @@ ispell-find-hunspell-dictionaries
> null-device
> t
> nil
> + "-D"
> + ;; Use -a to prevent Hunspell from
> + ;; trying to initialize its
> + ;; curses/termcap UI, which causes it
> + ;; to crash or fail to start in some
> + ;; MS-Windows ports.
> + "-a"
> ;; Hunspell 1.7.0 (and later?) won't
> ;; show LOADED DICTIONARY unless
> ;; there's at least one file argument
> ;; on the command line. So we feed
> ;; it with the null device.
> - "-D" null-device)
> + null-device)
> (buffer-string))
> "[\n\r]+"
> t))
Yes, the following block works and also `M-x flyspell' works!
(setq ispell-program-name "c:/msys64/mingw64/bin/hunspell.exe")
(with-temp-buffer
(ispell-call-process ispell-program-name
null-device
t
nil
"-D"
;; Use -a to prevent Hunspell from
;; trying to initialize its
;; curses/termcap UI, which causes it
;; to crash or fail to start in some
;; MS-Windows ports.
"-a"
;; Hunspell 1.7.0 (and later?) won't
;; show LOADED DICTIONARY unless
;; there's at least one file argument
;; on the command line. So we feed
;; it with the null device.
null-device)
(buffer-string)) ; => see below
"@(#) International Ispell Version 3.2.06 (but really Hunspell 1.6.2)\n
SEARCH PATH:\n
.;c:/msys64/mingw64/bin/;c:/msys64/mingw64/share/hunspell;c:/msys64/mingw64/share/myspell;c:/msys64/mingw64/share/myspell/dicts;c:/msys64;%USERPROFILE%/Application Data/OpenOffice.org 2/user/wordbook;c:/msys64/mingw64/share/dict/ooo;\n
AVAILABLE DICTIONARIES (path is not mandatory for -d option):\n
c:/msys64/mingw64/share/hunspell/en_AG\n
c:/msys64/mingw64/share/hunspell/en_AU\n
c:/msys64/mingw64/share/hunspell/en_BS\n
c:/msys64/mingw64/share/hunspell/en_BW\n
c:/msys64/mingw64/share/hunspell/en_BZ\n
c:/msys64/mingw64/share/hunspell/en_CA\n
c:/msys64/mingw64/share/hunspell/en_DK\n
c:/msys64/mingw64/share/hunspell/en_GB\n
c:/msys64/mingw64/share/hunspell/en_GH\n
c:/msys64/mingw64/share/hunspell/en_HK\n
c:/msys64/mingw64/share/hunspell/en_IE\n
c:/msys64/mingw64/share/hunspell/en_IN\n
c:/msys64/mingw64/share/hunspell/en_JM\n
c:/msys64/mingw64/share/hunspell/en_NA\n
c:/msys64/mingw64/share/hunspell/en_NG\n
c:/msys64/mingw64/share/hunspell/en_NZ\n
c:/msys64/mingw64/share/hunspell/en_PH\n
c:/msys64/mingw64/share/hunspell/en_SG\n
c:/msys64/mingw64/share/hunspell/en_TT\n
c:/msys64/mingw64/share/hunspell/en_US\n
c:/msys64/mingw64/share/hunspell/en_ZA\n
c:/msys64/mingw64/share/hunspell/en_ZW\n
c:/msys64/mingw64/share/myspell/dicts/en_AG\n
c:/msys64/mingw64/share/myspell/dicts/en_AU\n
c:/msys64/mingw64/share/myspell/dicts/en_BS\n
c:/msys64/mingw64/share/myspell/dicts/en_BW\n
c:/msys64/mingw64/share/myspell/dicts/en_BZ\n
c:/msys64/mingw64/share/myspell/dicts/en_CA\n
c:/msys64/mingw64/share/myspell/dicts/en_DK\n
c:/msys64/mingw64/share/myspell/dicts/en_GB\n
c:/msys64/mingw64/share/myspell/dicts/en_GH\n
c:/msys64/mingw64/share/myspell/dicts/en_HK\n
c:/msys64/mingw64/share/myspell/dicts/en_IE\n
c:/msys64/mingw64/share/myspell/dicts/en_IN\n
c:/msys64/mingw64/share/myspell/dicts/en_JM\n
c:/msys64/mingw64/share/myspell/dicts/en_NA\n
c:/msys64/mingw64/share/myspell/dicts/en_NG\n
c:/msys64/mingw64/share/myspell/dicts/en_NZ\n
c:/msys64/mingw64/share/myspell/dicts/en_PH\n
c:/msys64/mingw64/share/myspell/dicts/en_SG\n
c:/msys64/mingw64/share/myspell/dicts/en_TT\n
c:/msys64/mingw64/share/myspell/dicts/en_US\n
c:/msys64/mingw64/share/myspell/dicts/en_ZA\n
c:/msys64/mingw64/share/myspell/dicts/en_ZW\n
LOADED DICTIONARY:\n
c:/msys64/mingw64/share/hunspell/en_US.aff\n
c:/msys64/mingw64/share/hunspell/en_US.dic\n
"
next prev parent reply other threads:[~2019-02-11 0:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-01 13:54 bug#34272: 26.1.91 M-x flyspell-mode Tak Kunihiro
2019-02-01 15:04 ` Eli Zaretskii
2019-02-01 23:03 ` Tak Kunihiro
2019-02-02 7:07 ` Eli Zaretskii
2019-02-08 7:27 ` Eli Zaretskii
2019-02-08 11:30 ` Tak Kunihiro
2019-02-09 9:18 ` Eli Zaretskii
2019-02-09 9:48 ` Tak Kunihiro
2019-02-09 10:24 ` Eli Zaretskii
2019-02-09 10:39 ` Tak Kunihiro
2019-02-10 15:35 ` Eli Zaretskii
2019-02-11 0:49 ` Tak Kunihiro [this message]
2019-02-11 16:29 ` Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190211.094947.1823218870769180969.tkk@misasa.okayama-u.ac.jp \
--to=tkk@misasa.okayama-u.ac.jp \
--cc=34272@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=homeros.misasa@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.