unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Arthur Miller <arthur.miller.no1@gmail.com>
Cc: 28025@debbugs.gnu.org
Subject: bug#28025: Daemon/server passes string incorrectly to/from Systemd
Date: Wed, 09 Aug 2017 19:15:35 +0300	[thread overview]
Message-ID: <83mv78sons.fsf@gnu.org> (raw)
In-Reply-To: <CAHk_L7o2VFUc7AHoBn_4ZAKwr=f_6dcoTNQMJbRuEBo32OYRkg@mail.gmail.com> (message from Arthur Miller on Wed, 9 Aug 2017 15:07:27 +0200)

> From: Arthur Miller <arthur.miller.no1@gmail.com>
> Date: Wed, 9 Aug 2017 15:07:27 +0200
> 
> When I start Emacs in daemon mode with Systemd and connect with
> emacsclient, I get nil string when I run spellcheck with ispell.
> 'ispell-word' stack trace from debugger:
> 
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> string-match("," nil 0)
> split-string(nil "," t)
> ispell-parse-hunspell-affix-file(nil)
> ispell-find-hunspell-dictionaries()
> ispell-set-spellchecker-params()
> ispell-word(nil nil nil t)
> funcall-interactively(ispell-word nil nil nil t)
> call-interactively(ispell-word nil nil)
> command-execute(ispell-word)
> 
> When I start emacs in daemon mode from bash command line
> directly and connect with emacsclient the spellcheck
> works correctly.
> 
> I have checked that all paths are setup correctly. Emacs finds
> dictionaries (DICPATH setts correctly in systemd service file),
> and it also finds spellchecking program (/usr/bin/hunspell).

Can you explain how DICPATH enters this picture?  AFAIR, Hunspell
should be able to find its dictionaries without that variable,
assuming Hunspell is installed correctly.  So why do you need DICPATH?

In any case, please note that Emacs is not the one who looks at the
value of DICPATH: Hunspell is.  That value is _reported_ to Emacs, but
it's Hunspell that reports the value.  So maybe the problem is that
the value of DICPATH visible to Hunspell is empty or invalid.

(Caveat: I know almost nothing about systemd and related atrocities.)





  reply	other threads:[~2017-08-09 16:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-09 13:07 bug#28025: Daemon/server passes string incorrectly to/from Systemd Arthur Miller
2017-08-09 16:15 ` Eli Zaretskii [this message]
2017-08-09 20:00 ` Glenn Morris
2017-08-10 12:42   ` Arthur Miller
2017-08-10 12:54     ` npostavs
2017-08-10 15:18       ` Eli Zaretskii
2017-08-11 16:54     ` Glenn Morris
2017-08-10 15:59 ` bug#28025: SV: " arthur.miller.no1
2017-08-11 14:06   ` bug#28025: " Arthur Miller
2017-08-11 14:13     ` 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

  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=83mv78sons.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=28025@debbugs.gnu.org \
    --cc=arthur.miller.no1@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 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).