From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#28025: Daemon/server passes string incorrectly to/from Systemd Date: Wed, 09 Aug 2017 19:15:35 +0300 Message-ID: <83mv78sons.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1502295438 14473 195.159.176.226 (9 Aug 2017 16:17:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 9 Aug 2017 16:17:18 +0000 (UTC) Cc: 28025@debbugs.gnu.org To: Arthur Miller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 09 18:17:14 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 1dfTfV-0003Vu-O9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Aug 2017 18:17:13 +0200 Original-Received: from localhost ([::1]:48861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfTfc-0005Ck-4q for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Aug 2017 12:17:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfTfO-00059H-Kz for bug-gnu-emacs@gnu.org; Wed, 09 Aug 2017 12:17:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dfTfK-0007ue-HK for bug-gnu-emacs@gnu.org; Wed, 09 Aug 2017 12:17:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44811) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dfTfK-0007uY-Dm for bug-gnu-emacs@gnu.org; Wed, 09 Aug 2017 12:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dfTfJ-0006RQ-Rp for bug-gnu-emacs@gnu.org; Wed, 09 Aug 2017 12:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Aug 2017 16:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28025 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28025-submit@debbugs.gnu.org id=B28025.150229537524702 (code B ref 28025); Wed, 09 Aug 2017 16:17:01 +0000 Original-Received: (at 28025) by debbugs.gnu.org; 9 Aug 2017 16:16:15 +0000 Original-Received: from localhost ([127.0.0.1]:53492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfTeY-0006QM-SQ for submit@debbugs.gnu.org; Wed, 09 Aug 2017 12:16:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfTeX-0006Q8-2B for 28025@debbugs.gnu.org; Wed, 09 Aug 2017 12:16:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dfTeM-00075c-25 for 28025@debbugs.gnu.org; Wed, 09 Aug 2017 12:16:07 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfTeL-00075U-Vr; Wed, 09 Aug 2017 12:16:02 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1946 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dfTeK-0004ew-Gc; Wed, 09 Aug 2017 12:16:01 -0400 In-reply-to: (message from Arthur Miller on Wed, 9 Aug 2017 15:07:27 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:135604 Archived-At: > From: Arthur Miller > 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.)