From unknown Thu Jun 19 16:18:10 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#28025 <28025@debbugs.gnu.org> To: bug#28025 <28025@debbugs.gnu.org> Subject: Status: Daemon/server passes string incorrectly to/from Systemd Reply-To: bug#28025 <28025@debbugs.gnu.org> Date: Thu, 19 Jun 2025 23:18:10 +0000 retitle 28025 Daemon/server passes string incorrectly to/from Systemd reassign 28025 emacs submitter 28025 Arthur Miller severity 28025 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 09 09:07:50 2017 Received: (at submit) by debbugs.gnu.org; 9 Aug 2017 13:07:50 +0000 Received: from localhost ([127.0.0.1]:52780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfQiD-0008J1-J9 for submit@debbugs.gnu.org; Wed, 09 Aug 2017 09:07:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfQiB-0008In-G6 for submit@debbugs.gnu.org; Wed, 09 Aug 2017 09:07:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dfQi2-0001gc-Ik for submit@debbugs.gnu.org; Wed, 09 Aug 2017 09:07:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50526) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dfQi2-0001gW-Er for submit@debbugs.gnu.org; Wed, 09 Aug 2017 09:07:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfQhy-0008AT-Ig for bug-gnu-emacs@gnu.org; Wed, 09 Aug 2017 09:07:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dfQhv-0001d4-6Z for bug-gnu-emacs@gnu.org; Wed, 09 Aug 2017 09:07:34 -0400 Received: from mail-oi0-x22c.google.com ([2607:f8b0:4003:c06::22c]:35311) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dfQhu-0001cQ-V9 for bug-gnu-emacs@gnu.org; Wed, 09 Aug 2017 09:07:31 -0400 Received: by mail-oi0-x22c.google.com with SMTP id e124so60765614oig.2 for ; Wed, 09 Aug 2017 06:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=QBU+2afT96TTMoYO7ggQx/fGH2oINy+Yaq7oRjKkBq4=; b=dvY7T5HMrh77Sqvy2V6NBziF7danfeB6R6srEfviGEb9eV74XLulAbB7Vfw+eh+UH1 Q99ydVJVzoAJzXHiHhWDA1DwxUWoCz6W54GeNoKZU/JuchcVcvp36p7CBEbCN3kNngXI e0c9/ZndSvYjNQRCWvcutPXrrMtZkKUeCYFbAhWcLwizMUpeyvwC26qjReA03cnPgbsN IqzvPIMaUhVS4DooV3oqRPJTwXLjifFM4/uEfA/Za4Ong4C82ZIJePS0/62gBvPy7Sag W4hraPIVTZcRuncFSvdR3Bq/oT2opzXCuFU5ucTKgD1K033vQcTGr8KQqgKOo8ts4Knz CbQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=QBU+2afT96TTMoYO7ggQx/fGH2oINy+Yaq7oRjKkBq4=; b=iLRvFIpytbweSu+EMgKhdRHAXMvWknkmN8QnsYEoWEpY5oaxh2Eo3nZsLmXZzb5HXT p1qhxrM8PzDO2i0HPH9a+VoBwHioc0OLvl2l641pDWSwwWy96Fyi6zBg22NIXVOXS5lA 0jSYCr2a2OrjYtjqEXtQJYpt43sLEwZ4vwYAKolYxwibCbI2f7J3Ja/LO2JMKz1zRzhr k+pHPE289lgzsmtSpCRFiNVZvQdM73lRPy2ZFmCGomjH+CE2i5XyhJnTAz0vz8yoHO2w 5fzYSu5T6JSgS/jaKJ9he2tTCtiAexi7i9krajgeAT6gR/BwKPD96QqLA1ONUMksTG3m LkdQ== X-Gm-Message-State: AHYfb5hQe2IrcCjNtL8dA5alFGZ6zR2tsWAf6NV5Gz6N+K8yox/fPl8T SVK2oq/i0q60cqdsWiuVEHjZL2VBAp1/ X-Received: by 10.202.87.78 with SMTP id l75mr8871210oib.275.1502284048021; Wed, 09 Aug 2017 06:07:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.20.51 with HTTP; Wed, 9 Aug 2017 06:07:27 -0700 (PDT) From: Arthur Miller Date: Wed, 9 Aug 2017 15:07:27 +0200 Message-ID: Subject: Daemon/server passes string incorrectly to/from Systemd To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="001a113ad44808c3b0055651c36d" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) --001a113ad44808c3b0055651c36d Content-Type: text/plain; charset="UTF-8" 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). I believe it might be something with passing strings to and from d-bus, but I don't have experience with d-bus at all so I really don't know. It might as well be something completely else, including my configuration :-). /arthur In GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.17) of 2017-08-03 built on pascal Repository revision: f465efe412607c6b931e3592e96200f2ff3b8d74 Windowing system distributor 'The X.Org Foundation', version 11.0.11903000 Recent messages: Cleaning up the recentf list... File /home/arthur/test.txt removed from the recentf list Cleaning up the recentf list...done (1 removed) When done with a buffer, type C-x # [2 times] Cleaning up the recentf list...done (0 removed) When done with this frame, type C-x 5 0 split-string: Wrong type argument: stringp, nil "~/.emacs.d/hunspell" Cleaning up the recentf list...done (0 removed) Making completion list... [3 times] Configured using: 'configure --with-modules --with-mailutils --without-pop' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES LIBSYSTEMD Important settings: value of $LANG: sv_SE.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: electric-pair-mode: t show-paren-mode: t global-ede-mode: t global-fci-mode: t auto-insert-mode: t dumb-jump-mode: t ranger-override-dired-mode: t global-auto-revert-mode: t global-hl-line-mode: t winner-mode: t save-place-mode: t recentf-mode: t global-company-mode: t company-mode: t window-number-mode: t global-semanticdb-minor-mode: t global-semantic-idle-scheduler-mode: t semantic-mode: t which-function-mode: t helm-mode: t shell-dirtrack-mode: t helm-autoresize-mode: t async-bytecomp-package-mode: t global-auto-complete-mode: t auto-complete-mode: t fci-mode: t yas-global-mode: t yas-minor-mode: t global-undo-tree-mode: t undo-tree-mode: t override-global-mode: t cl-old-struct-compat-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /home/arthur/.emacs.d/plugins/company/company-cmake hides /home/arthur/.emacs.d/plugins/company-cmake/company-cmake /home/arthur/.emacs.d/lisp/fill-column-indicator hides /home/arthur/.emacs.d/plugins/fill-column-indicator/fill-column-indicator /home/arthur/.emacs.d/plugins/helm/helm hides /home/arthur/.emacs.d/plugins/helm-core/helm /home/arthur/.emacs.d/plugins/helm/helm-multi-match hides /home/arthur/.emacs.d/plugins/helm-core/helm-multi-match /home/arthur/.emacs.d/plugins/helm/helm-source hides /home/arthur/.emacs.d/plugins/helm-core/helm-source /home/arthur/.emacs.d/plugins/helm/helm-lib hides /home/arthur/.emacs.d/plugins/helm-core/helm-lib /home/arthur/.emacs.d/plugins/load-relative/el-get-install hides /home/arthur/.emacs.d/plugins/loc-changes/el-get-install /home/arthur/.emacs.d/plugins/load-relative/el-get-install hides /home/arthur/.emacs.d/plugins/realgud/el-get-install /home/arthur/.emacs.d/plugins/realgud/realgud hides /home/arthur/.emacs.d/plugins/xxrealgud/realgud /usr/local/share/emacs/26.0.50/lisp/simple hides /home/arthur/.emacs.d/plugins/emacs-ctable/samples/simple /home/arthur/.emacs.d/plugins/loc-changes/test/test-basic hides /home/arthur/.emacs.d/plugins/test-simple/test/test-basic /usr/local/share/emacs/26.0.50/lisp/env hides /home/arthur/.emacs.d/plugins/emacs-window-manager/features/support/env /usr/local/share/emacs/26.0.50/lisp/env hides /home/arthur/.emacs.d/plugins/multiple-cursors/features/support/env Features: (shadow sort mail-extr emacsbug sendmail server flymake company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-css company-nxml company-bbdb disp-table elec-pair paren ede/speedbar ede/files ede ede/detect ede/base ede/auto ede/source eieio-speedbar eieio-custom cap-words superword subword lively column-marker image-dired+ extras member-functions dired-rainbow dired-hacks-utils autoinsert simple-httpd htmlize dumb-jump f dash s ranger diminish autorevert filenotify hl-line ztree ztree-diff ztree-diff-model ztree-dir ztree-view ztree-util rainbow-delimiters vline all-the-icons all-the-icons-faces data-material data-weathericons data-octicons data-fileicons data-faicons data-alltheicons memoize neotree dired-xtra direx dired+ image-file bookmark+ bookmark+-key bookmark+-1 font-lock+ gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc nnoo gnus-spec gnus-int gnus-range message subr-x puny rfc822 mml mml-sec epa epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr bookmark+-bmu bookmark+-lit bookmark+-mac winner multiple-cursors mc-hide-unmatched-lines-mode mc-separate-operations rectangular-region-mode mc-mark-pop mc-mark-more mc-cycle-cursors mc-edit-lines multiple-cursors-core rect ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff saveplace recentf tree-widget wid-edit realgud realgud-recursive-autoloads realgud-zshdb realgud:zshdb-track-mode realgud:zshdb-core realgud:zshdb-init realgud-trepan3k realgud:trepan3k-track-mode realgud:trepan3k-core realgud:trepan3k-init realgud-trepan2 realgud:trepan2-track-mode realgud:trepan2-core realgud:trepan2-init realgud-trepanpl realgud:trepanpl-track-mode realgud:trepanpl-core realgud:trepanpl-init realgud-trepanjs realgud:trepanjs-track-mode realgud:trepanjs-core realgud:trepanjs-init realgud-trepan realgud:trepan-track-mode realgud:trepan-core realgud:trepan-init realgud-remake realgud:remake-track-mode realgud:remake-core realgud:remake-init realgud-rdebug realgud-rdebug-track-mode realgud-rdebug-core realgud-rdebug-init realgud-perldb realgud:perldb-track-mode realgud:perldb-core realgud:perldb-init realgud-lang-perl realgud-pdb realgud:pdb-track-mode realgud:pdb-core realgud:pdb-init realgud-nodejs realgud:nodejs-track-mode realgud:nodejs-core realgud:nodejs-init realgud-lang-js realgud-kshdb realgud:kshdb-track-mode realgud:kshdb-core realgud:kshdb-init realgud-jdb realgud:jdb-track-mode realgud-lang-ruby realgud:jdb-core realgud:jdb-init gud realgud-ipdb realgud:ipdb-track-mode realgud:ipdb-core realgud:ipdb-init realgud-lang-python realgud-gub realgud:gub-track-mode realgud:gub-core realgud:gub-init realgud-gdb realgud:gdb-track-mode realgud:gdb-init realgud:gdb-core realgud-bashdb realgud:bashdb-track-mode realgud:bashdb-core realgud:bashdb-init realgud-lang-posix-shell realgud:run realgud-track-mode realgud-backtrace-mode realgud-track realgud-shortkey realgud-menu realgud-eval realgud-cmds realgud-send realgud-window realgud-utils realgud-init realgud-file esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-util esh-mode realgud-core realgud-reset realgud-buffer-helper realgud-buffer-backtrace realgud-buffer-command realgud-buffer-info realgud-regexp realgud-lochist org-element avl-tree the-org-mode-expansions org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs cal-menu calendar cal-loaddefs realgud-bp realgud-bp-image-data realgud-loc realgud-buffer-source realgud-key realgud-custom key realgud-follow realgud-lang realgud-fringe realgud-helper test-simple loc-changes load-relative company pcase avy window-number thing-edit sr-speedbar semantic/db-mode semantic/db eieio-base semantic/idle semantic/ctxt semantic/sb speedbar sb-image dframe semantic/sort semantic/format ezimage semantic/tag-ls semantic/find semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local find-func cedet indent-guide helm-gtags pulse which-func ggtags ewoc helm-descbinds helm-mode helm-files rx image-dired image-mode tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete parse-time format-spec dired-x dired-aux ffap helm-buffers helm-elscreen helm-tags helm-bookmark helm-adaptive helm-info info bookmark pp helm-locate helm-grep helm-regexp helm-external helm-net browse-url xml url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source password-cache url-vars mailcap helm-utils compile comint ansi-color helm-help helm-types helm helm-source eieio-compat helm-multi-match helm-lib dired dired-loaddefs helm-config helm-autoloads helm-easymenu async-bytecomp auto-complete-clang auto-complete-config auto-complete popup fill-column-indicator js2-mode-expansions js2-mode etags xref project eieio eieio-core eieio-loaddefs ring js-mode-expansions js time-date html-mode-expansions sgml-mode dom json map seq byte-opt bytecomp byte-compile cconv cc-mode-expansions cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs imenu yasnippet expand-region text-mode-expansions er-basic-expansions thingatpt expand-region-core expand-region-custom undo-tree derived cl-extra help-mode easymenu cl-seq edmacro kmacro diff smart-mode-line advice rich-minority bind-key cl-macs easy-mmode async sanityinc-solarized-dark-theme color-theme-sanityinc-solarized cl gv cl-loaddefs cl-lib ispell mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors 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 composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray 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 system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 761586 91350) (symbols 48 60661 1) (miscs 40 155 215) (strings 32 155587 11751) (string-bytes 1 5039842) (vectors 16 87947) (vector-slots 8 1405002 25141) (floats 8 583 560) (intervals 56 630 0) (buffers 992 15)) --001a113ad44808c3b0055651c36d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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)
=C2=A0 string-match("= ;," nil 0)
=C2=A0 split-string(nil "," t)
=C2=A0 ispel= l-parse-hunspell-affix-file(nil)
=C2=A0 ispell-find-hunspell-dictionarie= s()
=C2=A0 ispell-set-spellchecker-params()
=C2=A0 ispell-word(nil ni= l nil t)
=C2=A0 funcall-interactively(ispell-word nil nil nil t)
=C2= =A0 call-interactively(ispell-word nil nil)
=C2=A0 command-execute(ispel= l-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
dict= ionaries (DICPATH setts correctly in systemd service file),
and it also = finds spellchecking program (/usr/bin/hunspell).

I believe it might = be something with passing strings to and from
d-bus, but I don't hav= e experience with d-bus at all so I really
don't know. It might as w= ell be something completely else,
including my configuration :-).
/arthur


In GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK= + Version 3.22.17)
=C2=A0of 2017-08-03 built on pascal
Repository rev= ision: f465efe412607c6b931e3592e96200f2ff3b8d74
Windowing system distrib= utor 'The X.Org Foundation', version 11.0.11903000
Recent messag= es:
Cleaning up the recentf list...
File /home/arthur/test.txt remove= d from the recentf list
Cleaning up the recentf list...done (1 removed)<= br>When done with a buffer, type C-x # [2 times]
Cleaning up the recentf= list...done (0 removed)
When done with this frame, type C-x 5 0
spli= t-string: Wrong type argument: stringp, nil
"~/.emacs.d/hunspell&qu= ot;
Cleaning up the recentf list...done (0 removed)
Making completion= list... [3 times]

Configured using:
=C2=A0'configure --with-= modules --with-mailutils --without-pop'

Configured features:
= XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
A= CL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS
= GTK3 X11 MODULES LIBSYSTEMD

Important settings:
=C2=A0 value of $= LANG: sv_SE.UTF-8
=C2=A0 locale-coding-system: utf-8-unix

Major m= ode: Lisp Interaction

Minor modes in effect:
=C2=A0 electric-pair= -mode: t
=C2=A0 show-paren-mode: t
=C2=A0 global-ede-mode: t
=C2= =A0 global-fci-mode: t
=C2=A0 auto-insert-mode: t
=C2=A0 dumb-jump-mo= de: t
=C2=A0 ranger-override-dired-mode: t
=C2=A0 global-auto-revert-= mode: t
=C2=A0 global-hl-line-mode: t
=C2=A0 winner-mode: t
=C2=A0= save-place-mode: t
=C2=A0 recentf-mode: t
=C2=A0 global-company-mode= : t
=C2=A0 company-mode: t
=C2=A0 window-number-mode: t
=C2=A0 glo= bal-semanticdb-minor-mode: t
=C2=A0 global-semantic-idle-scheduler-mode:= t
=C2=A0 semantic-mode: t
=C2=A0 which-function-mode: t
=C2=A0 he= lm-mode: t
=C2=A0 shell-dirtrack-mode: t
=C2=A0 helm-autoresize-mode:= t
=C2=A0 async-bytecomp-package-mode: t
=C2=A0 global-auto-complete-= mode: t
=C2=A0 auto-complete-mode: t
=C2=A0 fci-mode: t
=C2=A0 yas= -global-mode: t
=C2=A0 yas-minor-mode: t
=C2=A0 global-undo-tree-mode= : t
=C2=A0 undo-tree-mode: t
=C2=A0 override-global-mode: t
=C2=A0= cl-old-struct-compat-mode: t
=C2=A0 tooltip-mode: t
=C2=A0 global-el= doc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 electric-indent-mode: t
= =C2=A0 mouse-wheel-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 glo= bal-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mo= de: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t<= br>=C2=A0 auto-compression-mode: t
=C2=A0 column-number-mode: t
=C2= =A0 line-number-mode: t
=C2=A0 transient-mark-mode: t

Load-path s= hadows:
/home/arthur/.emacs.d/plugins/company/company-cmake hides /home/= arthur/.emacs.d/plugins/company-cmake/company-cmake
/home/arthur/.emacs.= d/lisp/fill-column-indicator hides /home/arthur/.emacs.d/plugins/fill-colum= n-indicator/fill-column-indicator
/home/arthur/.emacs.d/plugins/helm/hel= m hides /home/arthur/.emacs.d/plugins/helm-core/helm
/home/arthur/.emacs= .d/plugins/helm/helm-multi-match hides /home/arthur/.emacs.d/plugins/helm-c= ore/helm-multi-match
/home/arthur/.emacs.d/plugins/helm/helm-source hide= s /home/arthur/.emacs.d/plugins/helm-core/helm-source
/home/arthur/.emac= s.d/plugins/helm/helm-lib hides /home/arthur/.emacs.d/plugins/helm-core/hel= m-lib
/home/arthur/.emacs.d/plugins/load-relative/el-get-install hides /= home/arthur/.emacs.d/plugins/loc-changes/el-get-install
/home/arthur/.em= acs.d/plugins/load-relative/el-get-install hides /home/arthur/.emacs.d/plug= ins/realgud/el-get-install
/home/arthur/.emacs.d/plugins/realgud/realgud= hides /home/arthur/.emacs.d/plugins/xxrealgud/realgud
/usr/local/share/= emacs/26.0.50/lisp/simple hides /home/arthur/.emacs.d/plugins/emacs-ctable/= samples/simple
/home/arthur/.emacs.d/plugins/loc-changes/test/test-basic= hides /home/arthur/.emacs.d/plugins/test-simple/test/test-basic
/usr/lo= cal/share/emacs/26.0.50/lisp/env hides /home/arthur/.emacs.d/plugins/emacs-= window-manager/features/support/env
/usr/local/share/emacs/26.0.50/lisp/= env hides /home/arthur/.emacs.d/plugins/multiple-cursors/features/support/e= nv

Features:
(shadow sort mail-extr emacsbug sendmail server flym= ake company-oddmuse
company-keywords company-etags company-gtags company= -dabbrev-code
company-dabbrev company-files company-capf company-cmake c= ompany-xcode
company-clang company-semantic company-eclim company-templa= te
company-css company-nxml company-bbdb disp-table elec-pair paren
e= de/speedbar ede/files ede ede/detect ede/base ede/auto ede/source
eieio-= speedbar eieio-custom cap-words superword subword lively
column-marker i= mage-dired+ extras member-functions dired-rainbow
dired-hacks-utils auto= insert simple-httpd htmlize dumb-jump f dash s
ranger diminish autorever= t filenotify hl-line ztree ztree-diff
ztree-diff-model ztree-dir ztree-v= iew ztree-util rainbow-delimiters
vline all-the-icons all-the-icons-face= s data-material data-weathericons
data-octicons data-fileicons data-faic= ons data-alltheicons memoize
neotree dired-xtra direx dired+ image-file = bookmark+ bookmark+-key
bookmark+-1 font-lock+ gnus-sum gnus-group gnus-= undo gnus-start
gnus-cloud nnimap nnmail mail-source tls gnutls utf7 net= rc nnoo
gnus-spec gnus-int gnus-range message subr-x puny rfc822 mml mml= -sec epa
epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231=
mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail<= br>rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr<= br>bookmark+-bmu bookmark+-lit bookmark+-mac winner multiple-cursors
mc-= hide-unmatched-lines-mode mc-separate-operations
rectangular-region-mode= mc-mark-pop mc-mark-more mc-cycle-cursors
mc-edit-lines multiple-cursor= s-core rect ediff-merg ediff-wind
ediff-diff ediff-mult ediff-help ediff= -init ediff-util ediff saveplace
recentf tree-widget wid-edit realgud re= algud-recursive-autoloads
realgud-zshdb realgud:zshdb-track-mode realgud= :zshdb-core
realgud:zshdb-init realgud-trepan3k realgud:trepan3k-track-m= ode
realgud:trepan3k-core realgud:trepan3k-init realgud-trepan2
realg= ud:trepan2-track-mode realgud:trepan2-core realgud:trepan2-init
realgud-= trepanpl realgud:trepanpl-track-mode realgud:trepanpl-core
realgud:trepa= npl-init realgud-trepanjs realgud:trepanjs-track-mode
realgud:trepanjs-c= ore realgud:trepanjs-init realgud-trepan
realgud:trepan-track-mode realg= ud:trepan-core realgud:trepan-init
realgud-remake realgud:remake-track-m= ode realgud:remake-core
realgud:remake-init realgud-rdebug realgud-rdebu= g-track-mode
realgud-rdebug-core realgud-rdebug-init realgud-perldb
r= ealgud:perldb-track-mode realgud:perldb-core realgud:perldb-init
realgud= -lang-perl realgud-pdb realgud:pdb-track-mode realgud:pdb-core
realgud:p= db-init realgud-nodejs realgud:nodejs-track-mode
realgud:nodejs-core rea= lgud:nodejs-init realgud-lang-js realgud-kshdb
realgud:kshdb-track-mode = realgud:kshdb-core realgud:kshdb-init
realgud-jdb realgud:jdb-track-mode= realgud-lang-ruby realgud:jdb-core
realgud:jdb-init gud realgud-ipdb re= algud:ipdb-track-mode
realgud:ipdb-core realgud:ipdb-init realgud-lang-p= ython realgud-gub
realgud:gub-track-mode realgud:gub-core realgud:gub-in= it realgud-gdb
realgud:gdb-track-mode realgud:gdb-init realgud:gdb-core = realgud-bashdb
realgud:bashdb-track-mode realgud:bashdb-core realgud:bas= hdb-init
realgud-lang-posix-shell realgud:run realgud-track-mode
real= gud-backtrace-mode realgud-track realgud-shortkey realgud-menu
realgud-e= val realgud-cmds realgud-send realgud-window realgud-utils
realgud-init = realgud-file esh-var esh-io esh-cmd esh-opt esh-ext
esh-proc esh-arg esh= -groups eshell esh-module esh-util esh-mode
realgud-core realgud-reset r= ealgud-buffer-helper
realgud-buffer-backtrace realgud-buffer-command rea= lgud-buffer-info
realgud-regexp realgud-lochist org-element avl-tree
= the-org-mode-expansions org org-macro org-footnote org-pcomplete
org-lis= t org-faces org-entities noutline outline org-version
ob-emacs-lisp ob o= b-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp
ob-comint ob-core= ob-eval org-compat org-macs org-loaddefs cal-menu
calendar cal-loaddefs= realgud-bp realgud-bp-image-data realgud-loc
realgud-buffer-source real= gud-key realgud-custom key realgud-follow
realgud-lang realgud-fringe re= algud-helper test-simple loc-changes
load-relative company pcase avy win= dow-number thing-edit sr-speedbar
semantic/db-mode semantic/db eieio-bas= e semantic/idle semantic/ctxt
semantic/sb speedbar sb-image dframe seman= tic/sort semantic/format
ezimage semantic/tag-ls semantic/find semantic/= util-modes semantic/util
semantic semantic/tag semantic/lex semantic/fw = mode-local find-func
cedet indent-guide helm-gtags pulse which-func ggta= gs ewoc
helm-descbinds helm-mode helm-files rx image-dired image-mode tr= amp
tramp-compat tramp-loaddefs trampver ucs-normalize shell pcompleteparse-time format-spec dired-x dired-aux ffap helm-buffers helm-elscreen<= br>helm-tags helm-bookmark helm-adaptive helm-info info bookmark pp
helm= -locate helm-grep helm-regexp helm-external helm-net browse-url xml
url = url-proxy url-privacy url-expand url-methods url-history url-cookie
url-= domsuf url-util url-parse auth-source password-cache url-vars
mailcap he= lm-utils compile comint ansi-color helm-help helm-types helm
helm-source= eieio-compat helm-multi-match helm-lib dired dired-loaddefs
helm-config= helm-autoloads helm-easymenu async-bytecomp
auto-complete-clang auto-co= mplete-config auto-complete popup
fill-column-indicator js2-mode-expansi= ons js2-mode etags xref project
eieio eieio-core eieio-loaddefs ring js-= mode-expansions js time-date
html-mode-expansions sgml-mode dom json map= seq byte-opt bytecomp
byte-compile cconv cc-mode-expansions cc-mode cc-= fonts cc-guess cc-menus
cc-cmds cc-styles cc-align cc-engine cc-vars cc-= defs imenu yasnippet
expand-region text-mode-expansions er-basic-expansi= ons thingatpt
expand-region-core expand-region-custom undo-tree derived = cl-extra
help-mode easymenu cl-seq edmacro kmacro diff smart-mode-line a= dvice
rich-minority bind-key cl-macs easy-mmode async
sanityinc-solar= ized-dark-theme color-theme-sanityinc-solarized cl gv
cl-loaddefs cl-lib= ispell mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks li= sp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd= fontset image regexp-opt fringe
tabulated-list replace newcomment text-= mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow i= search timer select
scroll-bar mouse jit-lock font-lock syntax facemenu = font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc= -lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51= 932
hebrew greek romanian slovak czech european ethiopic indian cyrillic=
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook=
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
= button faces cus-face macroexp files text-properties overlay sha1 md5
ba= se64 format env code-pages mule custom widget hashtable-print-readable
b= ackquote dbusbind inotify dynamic-setting system-font-setting
font-rende= r-setting move-toolbar gtk x-toolkit x multi-tty
make-network-process em= acs)

Memory information:
((conses 16 761586 91350)
=C2=A0(symb= ols 48 60661 1)
=C2=A0(miscs 40 155 215)
=C2=A0(strings 32 155587 117= 51)
=C2=A0(string-bytes 1 5039842)
=C2=A0(vectors 16 87947)
=C2=A0= (vector-slots 8 1405002 25141)
=C2=A0(floats 8 583 560)
=C2=A0(interv= als 56 630 0)
=C2=A0(buffers 992 15))

--001a113ad44808c3b0055651c36d-- From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 09 12:16:15 2017 Received: (at 28025) by debbugs.gnu.org; 9 Aug 2017 16:16:15 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 Date: Wed, 09 Aug 2017 19:15:35 +0300 Message-Id: <83mv78sons.fsf@gnu.org> From: Eli Zaretskii To: Arthur Miller In-reply-to: (message from Arthur Miller on Wed, 9 Aug 2017 15:07:27 +0200) Subject: Re: bug#28025: Daemon/server passes string incorrectly to/from Systemd References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28025 Cc: 28025@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > 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.) From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 09 16:00:24 2017 Received: (at 28025) by debbugs.gnu.org; 9 Aug 2017 20:00:24 +0000 Received: from localhost ([127.0.0.1]:53684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfX9U-0003Jd-DZ for submit@debbugs.gnu.org; Wed, 09 Aug 2017 16:00:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47593) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfX9R-0003JK-KR for 28025@debbugs.gnu.org; Wed, 09 Aug 2017 16:00:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dfX9L-000412-GZ for 28025@debbugs.gnu.org; Wed, 09 Aug 2017 16:00:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfX9D-0003oq-8z; Wed, 09 Aug 2017 16:00:07 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1dfX9B-0006Sq-BO; Wed, 09 Aug 2017 16:00:05 -0400 From: Glenn Morris To: Arthur Miller Subject: Re: bug#28025: Daemon/server passes string incorrectly to/from Systemd References: X-Spook: Air Marshal Chemical agent Defcon Extreme weather Service X-Ran: 1'd?tX0=B$7%/h=,pU3N~;mWQKC.RtmWR8FV'CATpRRg48OvrSAerR:tk;jv['<;/=1lBu X-Hue: black X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 09 Aug 2017 16:00:05 -0400 In-Reply-To: (Arthur Miller's message of "Wed, 9 Aug 2017 15:07:27 +0200") Message-ID: <5ko9roecl6.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28025 Cc: 28025@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Arthur Miller wrote: > 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). > > I believe it might be something with passing strings to and from > d-bus, but I don't have experience with d-bus at all so I really > don't know. I don't see what D-Bus would have to do with this. I imagine that the environment of Emacs when started from systemd is different from when you start it normally, and something is missing that means hunspell can't find its dictionaries. You might compare the value of 'process-environment' in the two Emacs to see what differs. Or M-x ispell-buffer-with-debug might provide more information. Or edebug ispell-find-hunspell-dictionaries and step through it to see where things go wrong. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 10 08:42:19 2017 Received: (at 28025) by debbugs.gnu.org; 10 Aug 2017 12:42:19 +0000 Received: from localhost ([127.0.0.1]:54101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfmn5-0000Yz-AL for submit@debbugs.gnu.org; Thu, 10 Aug 2017 08:42:19 -0400 Received: from mail-oi0-f54.google.com ([209.85.218.54]:36696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfmn4-0000Ym-3f for 28025@debbugs.gnu.org; Thu, 10 Aug 2017 08:42:18 -0400 Received: by mail-oi0-f54.google.com with SMTP id g131so5309079oic.3 for <28025@debbugs.gnu.org>; Thu, 10 Aug 2017 05:42:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=5ZDYspgAgv9ejHX5Uhe7gbhz+eDVytMGaPr+7LfevH4=; b=s2IVtjH6p0PhY5N9afPAjbNNWOURAtOap8vDDv+kTZlZeLdO6SamKnGPvLfZCPI6Qx a2Amf11aWNpSL72OmEHQh8QXXsbTqoInpULrAz/Gn5VmP8zTRF2IJqtB3z3VnQjZ9DQS ST/MXWZhD4cDW6GhIXP/1p4m9JqL2IuGWbV3nT0rUiwZUotxIcWak/5MDd+H/i+IlyvB g+dyyfArAbdzwmbbaz6/ZaC23p7MEOhE+gOkFZbm8KqNKhhrnHck+VGUZC0xnZjMmS/0 ELcHKGi+4TOcuO3rkNYxtaLKNORxXkCrgp5UXO+oG3aAstyU19KVR6wTzhk2Znjz0l0S 8ERg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=5ZDYspgAgv9ejHX5Uhe7gbhz+eDVytMGaPr+7LfevH4=; b=QbXvzjo2aC5rd+aLljUPbvCmSv2WHcPbrnQ/O3thsjzM+t2EdzLEBdVSHKh9PvtTTq TphSiS5FAOs19aUjgm7a2pjfhyis550cohmSaBONG4vX2ksrzVs3nn3MJY0NBhMXJ8Zv //bqZNanuZBQpqatDLeww7mnpwJSYMFdy14RQ/AdTs44+HtWj7Uzx3AxCknfcAZt6xm/ WiltgD4qj0WoETPVbkZH6J/MfWgu/oUCeX8wta+IJux34AFFlLPhP3UHdBCiY/Q4un+1 M8FD7/tc5REBmovZwyUJF51Jf+DdMSopbhZNK72y8EYhMPky8TfeyCCybaJeu3+tJFKm i9SQ== X-Gm-Message-State: AHYfb5i6X64UGuKIqqOLDX1GKto6lFB/P7HtMoCA2LW/OTr2eVlswnG8 hxQAhDYX7Y3huHuzexxoo9BTA0nsqtzx X-Received: by 10.202.87.78 with SMTP id l75mr13647343oib.275.1502368931996; Thu, 10 Aug 2017 05:42:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.20.51 with HTTP; Thu, 10 Aug 2017 05:42:11 -0700 (PDT) In-Reply-To: <5ko9roecl6.fsf@fencepost.gnu.org> References: <5ko9roecl6.fsf@fencepost.gnu.org> From: Arthur Miller Date: Thu, 10 Aug 2017 14:42:11 +0200 Message-ID: Subject: Re: bug#28025: Daemon/server passes string incorrectly to/from Systemd To: Glenn Morris Content-Type: multipart/alternative; boundary="001a113ad448836b27055665865d" X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 28025 Cc: 28025@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) --001a113ad448836b27055665865d Content-Type: text/plain; charset="UTF-8" > 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? Above stack trace points to "ispell-parse-hunspell-affix-file", which seems to be a parser for affix files. But as I wrote I am not sure, I don't know so much about how emacs does stuff internally. Anyway, I have checked so that path given to emacs is not empty. When I do (getenv "DICPATH") it prints correct path where dictionaries are. Hunspell is found as well, and Hunspell itself finds everything correctly when I check from shell. > I don't see what D-Bus would have to do with this. Systemd-bus is D-bus if I understood Systemd docs correctly. I am by no means an expert in either d-bus or sytemd, just ordinary user. > I imagine that the environment of Emacs when started from systemd is > different from when you start it normally, and something is missing that > means hunspell can't find its dictionaries. Yeah, I imagined that too, so that is why I passed DICPATH to systemd service as well but that didn't solve the problem. Here is service file. If Emas gets it's paths from Hunspell, than it sounds as expected, and after that the only thing I can imagine is problem is how strings are passed between processes. I looked at process-environment var and the content is different, but what regards PATH and DICPATH it's same: Emacs daemon started with systemd as user service: ("TERM=dumb" "DICPATH=~/.emacs.d/hunspell" "INVOCATION_ID=af861fc0688846f6a70a09261064560f" "MANAGERPID=604" "XDG_RUNTIME_DIR=/run/user/1000" "USER=*****" "SHELL=/bin/bash" "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin" "MAIL=/var/spool/mail/*****" "LOGNAME=*****" "LANG=sv_SE.UTF-8" "JOURNAL_STREAM=9:15268" "HOME=/home/*****" "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus") Emacs daemon started from shell: ("OLDPWD=/home/*****" "_=/usr/local/bin/emacs" "HISTSIZE=5000" "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/opt/ant/bin:/opt/ant/bin" "LARCH_PATH=/usr/share/splint/lib" "ANT_HOME=/opt/ant" "XAUTHORITY=/home/*****/.Xauthority" "XDG_RUNTIME_DIR=/run/user/1000" "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus" "LOGNAME=*****" "IRC_CLIENT=irssi" "SHLVL=3" "XDG_SEAT=seat0" "AUTOFEATURE=true autotest" "TERM=dumb" "SHELL=/bin/bash" "WINDOWPATH=1" "VISUAL=emacsclient -c -a emacs" "MAIL=/var/spool/mail/*****" "_JAVA_OPTIONS=-Dsun.java2d.opengl=true" "GTK_MODULES=canberra-gtk-module" "ALTERNATE_EDITOR=emacsclient -c -a emacs" "HOME=/home/*****" "PWD=/home/*****/emacs" "TERMINOLOGY=1" "LSCOLORS=Gxfxcxdxdxegedabagacad" "USER=*****" "XDG_SESSION_ID=c1" "HG=/usr/bin/hg" "SCM_CHECK=true" "GIT_HOSTING=git@git.domain.com" "XDG_VTNR=1" "JAVA_HOME=/usr/lib/jvm/default/jre" "LCLIMPORTDIR=/usr/share/splint/imports" "EDITOR=emacsclient -t -a emacs -t" "TODO=t" "HISTCONTROL=ignorespace:erasedups" "HISTIGNORE=pwd:ls:ls -l:cd:cd ..:cd -:cd --" "TZ=:/etc/localtime" "LANG=sv_SE.UTF-8" "DICPATH=/home/*****/.emacs.d/hunspell" "BASH_IT=/home/*****/.bash-it" "BASH_IT_THEME=bobby" "XTERM_256_COLORS=1" "LD_LIBRARY_PATH=:/usr/local/lib:/usr/local/lib" "GREP_COLOR=1;33") When I run M-x ispell-buffer-with-debug, I get same backtrace as posted in my original message. I also get following (*ispell-debug* buffer): -- ispell-fhd: Skipping entry: AVAILABLE DICTIONARIES (path is not mandatory for -d option): -- ispell-fhd: Skipping entry: Can't open affix or dictionary files for dictionary named "sv_SE". I don't know it says it can't open entry, since I can see the dictionary, and when started from shell, emacs has no problem opening it :). I have to admit that I am not very proficient using edebug. To be honest I have no idea how to step through code properly with it, and manual does not give me much clues. It list all commands but one to use to step through. I am probably just not smart enough to understand it. Anyway stacktrace was gigantic, about 20 lines tall, but about 7800 chars wide so I am not posting it here. But help how to step through and find more info is appreciated. 2017-08-09 22:00 GMT+02:00 Glenn Morris : > Arthur Miller wrote: > > > 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). > > > > I believe it might be something with passing strings to and from > > d-bus, but I don't have experience with d-bus at all so I really > > don't know. > > I don't see what D-Bus would have to do with this. > I imagine that the environment of Emacs when started from systemd is > different from when you start it normally, and something is missing that > means hunspell can't find its dictionaries. > > You might compare the value of 'process-environment' in the two Emacs to > see what differs. Or M-x ispell-buffer-with-debug might provide more > information. Or edebug ispell-find-hunspell-dictionaries and step > through it to see where things go wrong. > > > --001a113ad448836b27055665865d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> Can you expla= in how DICPATH enters this picture?=C2=A0 AFAIR, Hunspell
> should be able to find its dictionaries without that variable,
>= assuming Hunspell is installed correctly.=C2=A0 So why do you need DICPATH= ?

Above stack trace points to "ispell-parse-hunspell-affi= x-file", which seems to
be a parser for affix files. But as I= wrote I am not sure, I don't know so much
about how emacs doe= s stuff internally. Anyway, I have checked so that path
given to e= macs is not empty. When I do (getenv "DICPATH") it prints correct=
path where dictionaries are. Hunspell is found as well, and Hunsp= ell itself
finds everything correctly when I check from shell.
=
> I don't see what D-Bus would have to do with this.
Systemd-= bus is D-bus if I understood Systemd docs correctly. I am by no
means an= expert in either d-bus or sytemd, just ordinary user.

> I imagine that the environment of Emacs when started from systemd is > different from when you start it normally, and something is missing th= at
> means hunspell can't find its dictionaries.

Yea= h, I imagined that too, so that is why I passed DICPATH to systemd
service as well but that didn't solve the problem. Here is servi= ce file. If
Emas gets it's paths from Hunspell, than it sound= s as expected, and after
that the only thing I can imagine is pro= blem is how strings are passed
between processes.
=
I looked at process-environment var and the content is diffe= rent,
but what regards PATH and DICPATH it's same:
=
Emacs daemon started with systemd as user service:

("TERM=3Ddumb" "DICPATH=3D~/.emacs.d/hunspel= l" "INVOCATION_ID=3Daf861fc0688846f6a70a09261064560f" "= MANAGERPID=3D604" "XDG_RUNTIME_DIR=3D/run/user/1000" "U= SER=3D*****" "SHELL=3D/bin/bash" "PATH=3D/usr/local/sbi= n:/usr/local/bin:/usr/sbin:/usr/bin" "MAIL=3D/var/spool/mail/****= *" "LOGNAME=3D*****" "LANG=3Dsv_SE.UTF-8" "JO= URNAL_STREAM=3D9:15268" "HOME=3D/home/*****" "DBUS_SESS= ION_BUS_ADDRESS=3Dunix:path=3D/run/user/1000/bus")

<= /div>
Emacs daemon started from shell:

("= OLDPWD=3D/home/*****" "_=3D/usr/local/bin/emacs" "HISTS= IZE=3D5000" "PATH=3D/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/= lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_p= erl:/opt/ant/bin:/opt/ant/bin" "LARCH_PATH=3D/usr/share/splint/li= b" "ANT_HOME=3D/opt/ant" "XAUTHORITY=3D/home/*****/.Xau= thority" "XDG_RUNTIME_DIR=3D/run/user/1000" "DBUS_SESSI= ON_BUS_ADDRESS=3Dunix:path=3D/run/user/1000/bus" "LOGNAME=3D*****= " "IRC_CLIENT=3Dirssi" "SHLVL=3D3" "XDG_SEAT= =3Dseat0" "AUTOFEATURE=3Dtrue autotest" "TERM=3Ddumb&qu= ot; "SHELL=3D/bin/bash" "WINDOWPATH=3D1" "VISUAL= =3Demacsclient -c -a emacs" "MAIL=3D/var/spool/mail/*****" &= quot;_JAVA_OPTIONS=3D-Dsun.java2d.opengl=3Dtrue" "GTK_MODULES=3Dc= anberra-gtk-module" "ALTERNATE_EDITOR=3Demacsclient -c -a emacs&q= uot; "HOME=3D/home/*****" "PWD=3D/home/*****/emacs" &qu= ot;TERMINOLOGY=3D1" "LSCOLORS=3DGxfxcxdxdxegedabagacad" &quo= t;USER=3D*****" "XDG_SESSION_ID=3Dc1" "HG=3D/usr/bin/hg= " "SCM_CHECK=3Dtrue" "GIT_HOSTING=3Dgit@git.domain.com" "XDG_VTNR=3D1" &q= uot;JAVA_HOME=3D/usr/lib/jvm/default/jre" "LCLIMPORTDIR=3D/usr/sh= are/splint/imports" "EDITOR=3Demacsclient -t -a emacs -t" &q= uot;TODO=3Dt" "HISTCONTROL=3Dignorespace:erasedups" "HI= STIGNORE=3Dpwd:ls:ls -l:cd:cd ..:cd -:cd --" "TZ=3D:/etc/localtim= e" "LANG=3Dsv_SE.UTF-8" "DICPATH=3D/home/*****/.emacs.d= /hunspell" "BASH_IT=3D/home/*****/.bash-it" "BASH_IT_TH= EME=3Dbobby" "XTERM_256_COLORS=3D1" "LD_LIBRARY_PATH=3D= :/usr/local/lib:/usr/local/lib" "GREP_COLOR=3D1;33")

=
When I run M-x ispell-buffer-with-debug, I get same backtrace as post= ed in my original message. I also get following (*ispell-debug* buffer):
-- ispell-fhd: Skipping entry: AVAILABLE DICTIONARIES (path = is not mandatory for -d option):
-- ispell-fhd: Skipping entry: Can'= t open affix or dictionary files for dictionary named "sv_SE".

I don't know it says it can't open entry= , since I can see the dictionary, and when started from shell, emacs has no= problem opening it :).

I have to admit that I am not v= ery proficient using edebug. To be honest I have no idea how to step throug= h code properly with it, and manual does
not give me much clues. = It list all commands but one to use to step through. I am probably just not= smart enough to understand it. Anyway
stacktrace was gigantic, a= bout 20 lines tall, but about 7800 chars wide so I am not posting it here. = But help how to step through and find more info
is appreciated.


2017-08-09 22:00 GMT+02:00 Glenn Morris <rgm@gnu.org>:
Arthur Miller wrote:

> 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).
>
> I believe it might be something with passing strings to and fro= m
> d-bus, but I don't have experience with d-bus at all so I really > don't know.

I don't see what D-Bus would have to do with this.
I imagine that the environment of Emacs when started from systemd is
different from when you start it normally, and something is missing that means hunspell can't find its dictionaries.

You might compare the value of 'process-environment' in the two Ema= cs to
see what differs. Or M-x ispell-buffer-with-debug might provide more
information. Or edebug ispell-find-hunspell-dictionaries and step
through it to see where things go wrong.



--001a113ad448836b27055665865d-- From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 10 08:53:01 2017 Received: (at 28025) by debbugs.gnu.org; 10 Aug 2017 12:53:01 +0000 Received: from localhost ([127.0.0.1]:54105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfmxR-0000nP-Ku for submit@debbugs.gnu.org; Thu, 10 Aug 2017 08:53:01 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:37685) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfmxP-0000n5-Ec for 28025@debbugs.gnu.org; Thu, 10 Aug 2017 08:52:59 -0400 Received: by mail-it0-f65.google.com with SMTP id 77so1636883itj.4 for <28025@debbugs.gnu.org>; Thu, 10 Aug 2017 05:52:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=IMDuP1UecIndqIy+iLgVamGQPND7ZUbe7W1fDqcAkfw=; b=TecwlKrWv+Fa58ygXzG/f2TMGwBNCrCyVsT5/NBXcM9F81Kq9Yz+ktlz23x++UCzNz 9VO+YzFxX+JKQg0pMJbbXlvhcdxhmQd8ISdbQVfmRdV00jSQvV54rpRQyeoTUaAdgW6A InnpNeqBXSOaMWmG0qzrA28loD7a8oZhy66C4xSmNrCv9KzhVZSEb3UGqwC4WvgDYh+U N+gM36Us8cTxIYL+K6cSgMHvd9CFa8OSUgETZlOYhe6ohaSrbahINrRbB7NE9ofQMmvE GAHFo0EfCrey0bhr1JkUWqLijfSa0QChEuXkkEQASi7h+2vOFygjMJhmbj7J8pDBuLHd 3kYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=IMDuP1UecIndqIy+iLgVamGQPND7ZUbe7W1fDqcAkfw=; b=aGrLv72ZeQ0A1oGpVz+CWCdcyoutbOCEtYTBGBP4GUVq7PmxCY26S/0E/WYCB/sgKZ NvaaqC9QvOl0J4qTvN4QRyRhhvpSNv9uIMzqjDZjdBGpIOIvT0T24rtRX2uMXrAxKSa8 FAlN6c6S8jTGpyjpxOWpoVbwwarVVRRp++UuUc4TouslU99ZsUDCJxs+ru+s0OX2bp4j sGdBpVlOx0Vc6kh/ETHN3Pil+LtX4WfuyNTNTPxsWuSHYQNOsqVG5LqtwEv2iVPQsXs8 wkvMXhIE+rdvaQBPiF7vsVh4ekpY+MdDYHDSiU5cLMfVCN0NTV+sV2X2Fbjf+H8yZOyT n3dg== X-Gm-Message-State: AHYfb5ha6O5l94S62UAzJdR8kuFMYXOkLbSSZox1ocDHdhX7u5d4qrCc zr82ZPa5y0cnmjZR X-Received: by 10.36.112.12 with SMTP id f12mr10069376itc.8.1502369573598; Thu, 10 Aug 2017 05:52:53 -0700 (PDT) Received: from zony ([45.2.119.49]) by smtp.googlemail.com with ESMTPSA id 63sm7286431ith.4.2017.08.10.05.52.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Aug 2017 05:52:52 -0700 (PDT) From: npostavs@users.sourceforge.net To: Arthur Miller Subject: Re: bug#28025: Daemon/server passes string incorrectly to/from Systemd References: <5ko9roecl6.fsf@fencepost.gnu.org> Date: Thu, 10 Aug 2017 08:54:29 -0400 In-Reply-To: (Arthur Miller's message of "Thu, 10 Aug 2017 14:42:11 +0200") Message-ID: <87h8xf37ne.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 28025 Cc: Glenn Morris , 28025@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) Arthur Miller writes: > I looked at process-environment var and the content is different, > but what regards PATH and DICPATH it's same: > > Emacs daemon started with systemd as user service: > > ("TERM=dumb" "DICPATH=~/.emacs.d/hunspell" [...] > Emacs daemon started from shell: [...] > "DICPATH=/home/*****/.emacs.d/hunspell" Could the fact that you have "~" instead of "/home/****/" in the systemd service be significant? Does it help to change that? > I have to admit that I am not very proficient using edebug. To be honest I > have no idea how to step through code properly with it, and manual does > not give me much clues. It list all commands but one to use to step > through. SPC is the stepping command (should be explained in `(elisp) Using Edebug'). From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 10 11:18:38 2017 Received: (at 28025) by debbugs.gnu.org; 10 Aug 2017 15:18:38 +0000 Received: from localhost ([127.0.0.1]:54637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfpEM-0004BD-Aw for submit@debbugs.gnu.org; Thu, 10 Aug 2017 11:18:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfpEL-0004B1-4d for 28025@debbugs.gnu.org; Thu, 10 Aug 2017 11:18:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dfpEC-0001U8-LI for 28025@debbugs.gnu.org; Thu, 10 Aug 2017 11:18:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52429) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfpEC-0001U2-IX; Thu, 10 Aug 2017 11:18:28 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3406 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dfpEB-00021X-Gy; Thu, 10 Aug 2017 11:18:28 -0400 Date: Thu, 10 Aug 2017 18:18:09 +0300 Message-Id: <83efsjsb7y.fsf@gnu.org> From: Eli Zaretskii To: npostavs@users.sourceforge.net In-reply-to: <87h8xf37ne.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net) Subject: Re: bug#28025: Daemon/server passes string incorrectly to/from Systemd References: <5ko9roecl6.fsf@fencepost.gnu.org> <87h8xf37ne.fsf@users.sourceforge.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28025 Cc: arthur.miller.no1@gmail.com, 28025@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: npostavs@users.sourceforge.net > Date: Thu, 10 Aug 2017 08:54:29 -0400 > Cc: 28025@debbugs.gnu.org > > > Emacs daemon started with systemd as user service: > > > > ("TERM=dumb" "DICPATH=~/.emacs.d/hunspell" > [...] > > > Emacs daemon started from shell: > [...] > > "DICPATH=/home/*****/.emacs.d/hunspell" > > Could the fact that you have "~" instead of "/home/****/" in the systemd > service be significant? Does it help to change that? Indeed, I don't think Hunspell expands "~" in DICPATH. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 10 11:59:14 2017 Received: (at 28025) by debbugs.gnu.org; 10 Aug 2017 15:59:14 +0000 Received: from localhost ([127.0.0.1]:54658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfpre-00058N-3w for submit@debbugs.gnu.org; Thu, 10 Aug 2017 11:59:14 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:36929) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfprc-00058B-D7 for 28025@debbugs.gnu.org; Thu, 10 Aug 2017 11:59:13 -0400 Received: by mail-lf0-f66.google.com with SMTP id x16so779600lfb.4 for <28025@debbugs.gnu.org>; Thu, 10 Aug 2017 08:59:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:subject:message-id:importance:from:to:cc:mime-version; bh=oag0QoJ+osBPAC01k78dIL+laznTj0Fq/uDkcniTf3s=; b=XQF8z1sfxzWV42gndI00tgVONDayCtKxvla9hn2XIus2uAsUv+P+2/VT2yKQQQHFJl dXB/BAd8pXzTsHpW7NP+kOu6kf3tc9C4r6/NYB5ArEXQCzUwk291xlqiqEFS4pVj+8iT NYkkLobbpRNzBM2JjgsnGECRw5lTcDb3aedIzOUSGo6kOL39Gx92FnVydmnhOXLTRVbc JKpeedswDplNvMaKQqlr+/7BXYvOFdCA5rt7AqIdT01lsQ0etUu7Li3Vx9oYAJTaffbz Cj0X39biSKbnFk3iFBNnFOu5vKAqt6dMZU+/sw7TSxQ3QFZGVxVpapwopsQOLr6Fhu2c PxCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:message-id:importance:from:to:cc :mime-version; bh=oag0QoJ+osBPAC01k78dIL+laznTj0Fq/uDkcniTf3s=; b=h0CtQai67gct1r+yOObbUyJfSh9wiMOU2OtaICVIoroxCEwp7x+2BBiTI+Q6t1m2qF WEeLBMORvRCRkal567YFN3iqCOl96+4xqtPJgfz3VSINTY3eAFW6We9u6VgVNXoPoYco sO2Xy2pMIQLxKCGmAheRMoaGv949484YZoiDTjNL068uhb565qTxliSRlZGUq8FSVRIq gFExtNUWBNEaQWTmYhK6S9VbIQlSP1/Gn2M9LkwXb8aE8Nd/OT57fKKShJRm+zy8l8i+ 0N3tQg1R2ufVYHDv/EAEyq7TqzU+UyNimH7KMF+JbppzwLD2XJwFO0ipIzc4cEgUQOof ZAew== X-Gm-Message-State: AHYfb5gO9UvFsTRAoPpBF1wqpvvPq2vZplj8r7l9eH+evaOq41Bd3m1u wvb1Fho++HJbDw== X-Received: by 10.25.19.195 with SMTP id 64mr4444322lft.11.1502380746382; Thu, 10 Aug 2017 08:59:06 -0700 (PDT) Received: from [10.53.107.138] (host-95-195-139-138.mobileonline.telia.com. [95.195.139.138]) by smtp.gmail.com with ESMTPSA id b86sm1275586lfl.37.2017.08.10.08.59.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Aug 2017 08:59:05 -0700 (PDT) Date: Thu, 10 Aug 2017 17:59:03 +0200 Subject: SV: Re: bug#28025: Daemon/server passes string incorrectly to/from Systemd Message-ID: Importance: normal From: "arthur.miller.no1" To: Eli Zaretskii , npostavs@users.sourceforge.net MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="--_com.android.email_1313819587850170" X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 28025 Cc: 28025@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) ----_com.android.email_1313819587850170 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 CiAgICAKQWhhLiBJIGd1ZXNzIHlvdSBhcmUgcHRvYmFibHkgY29ycmVjdC4gSSBhbSBub3QgYXQg aG9tZSBhZ2FpbiBiZWZvcmUgdG9tb3Jyb3csIGJ1dCBhcyBzb29uIGFzIEkgYW0gYXQgaG9tZSBJ IHdpbGwgdHJ5IGl0LiBUaGFua3MhCgpTa2lja2F0IGZyw6VuIG1pbiBTYW1zdW5nLWVuaGV0Cgot LS0tLS0tLSBPcmlnaW5hbG1lZGRlbGFuZGUgLS0tLS0tLS0KRnLDpW46IEVsaSBaYXJldHNraWkg PGVsaXpAZ251Lm9yZz4gCkRhdHVtOiAyMDE3LTA4LTEwICAxNzoxOCAgKEdNVCswMTowMCkgClRp bGw6IG5wb3N0YXZzQHVzZXJzLnNvdXJjZWZvcmdlLm5ldCAKS29waWE6IGFydGh1ci5taWxsZXIu bm8xQGdtYWlsLmNvbSwgMjgwMjVAZGViYnVncy5nbnUub3JnIApSdWJyaWs6IFJlOiBidWcjMjgw MjU6IERhZW1vbi9zZXJ2ZXIgcGFzc2VzIHN0cmluZyBpbmNvcnJlY3RseSB0by9mcm9tIFN5c3Rl bWQgCgo+IEZyb206IG5wb3N0YXZzQHVzZXJzLnNvdXJjZWZvcmdlLm5ldAo+IERhdGU6IFRodSwg MTAgQXVnIDIwMTcgMDg6NTQ6MjkgLTA0MDAKPiBDYzogMjgwMjVAZGViYnVncy5nbnUub3JnCj4g Cj4gPiBFbWFjcyBkYWVtb24gc3RhcnRlZCB3aXRoIHN5c3RlbWQgYXMgdXNlciBzZXJ2aWNlOgo+ ID4KPiA+ICgiVEVSTT1kdW1iIiAiRElDUEFUSD1+Ly5lbWFjcy5kL2h1bnNwZWxsIgo+IFsuLi5d Cj4gCj4gPiBFbWFjcyBkYWVtb24gc3RhcnRlZCBmcm9tIHNoZWxsOgo+IFsuLi5dCj4gPiAiRElD UEFUSD0vaG9tZS8qKioqKi8uZW1hY3MuZC9odW5zcGVsbCIKPiAKPiBDb3VsZCB0aGUgZmFjdCB0 aGF0IHlvdSBoYXZlICJ+IiBpbnN0ZWFkIG9mICIvaG9tZS8qKioqLyIgaW4gdGhlIHN5c3RlbWQK PiBzZXJ2aWNlIGJlIHNpZ25pZmljYW50P8KgIERvZXMgaXQgaGVscCB0byBjaGFuZ2UgdGhhdD8K CkluZGVlZCwgSSBkb24ndCB0aGluayBIdW5zcGVsbCBleHBhbmRzICJ+IiBpbiBESUNQQVRILgo= ----_com.android.email_1313819587850170 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: base64 PGh0bWw+PGhlYWQ+PG1ldGEgaHR0cC1lcXVpdj0iQ29udGVudC1UeXBlIiBjb250ZW50PSJ0ZXh0 L2h0bWw7IGNoYXJzZXQ9VVRGLTgiPjwvaGVhZD48Ym9keT4KICAgIAo8ZGl2PkFoYS4gSSBndWVz cyB5b3UgYXJlIHB0b2JhYmx5IGNvcnJlY3QuIEkgYW0gbm90IGF0IGhvbWUgYWdhaW4gYmVmb3Jl IHRvbW9ycm93LCBidXQgYXMgc29vbiBhcyBJIGFtIGF0IGhvbWUgSSB3aWxsIHRyeSBpdC4gVGhh bmtzITwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXYgaWQ9ImNvbXBvc2Vy X3NpZ25hdHVyZSI+PGRpdiBzdHlsZT0iZm9udC1zaXplOjg4JTtjb2xvcjojMzY0ZjY3IiBkaXI9 ImF1dG8iPlNraWNrYXQgZnLDpW4gbWluIFNhbXN1bmctZW5oZXQ8L2Rpdj48L2Rpdj48YnI+PGJy Pi0tLS0tLS0tIE9yaWdpbmFsbWVkZGVsYW5kZSAtLS0tLS0tLTxicj5GcsOlbjogRWxpIFphcmV0 c2tpaSAmbHQ7ZWxpekBnbnUub3JnJmd0OyA8YnI+RGF0dW06IDIwMTctMDgtMTAgIDE3OjE4ICAo R01UKzAxOjAwKSA8YnI+VGlsbDogbnBvc3RhdnNAdXNlcnMuc291cmNlZm9yZ2UubmV0IDxicj5L b3BpYTogYXJ0aHVyLm1pbGxlci5ubzFAZ21haWwuY29tLCAyODAyNUBkZWJidWdzLmdudS5vcmcg PGJyPlJ1YnJpazogUmU6IGJ1ZyMyODAyNTogRGFlbW9uL3NlcnZlciBwYXNzZXMgc3RyaW5nIGlu Y29ycmVjdGx5IHRvL2Zyb20gU3lzdGVtZCA8YnI+PGJyPiZndDsgRnJvbTogbnBvc3RhdnNAdXNl cnMuc291cmNlZm9yZ2UubmV0PGJyPiZndDsgRGF0ZTogVGh1LCAxMCBBdWcgMjAxNyAwODo1NDoy OSAtMDQwMDxicj4mZ3Q7IENjOiAyODAyNUBkZWJidWdzLmdudS5vcmc8YnI+Jmd0OyA8YnI+Jmd0 OyAmZ3Q7IEVtYWNzIGRhZW1vbiBzdGFydGVkIHdpdGggc3lzdGVtZCBhcyB1c2VyIHNlcnZpY2U6 PGJyPiZndDsgJmd0Ozxicj4mZ3Q7ICZndDsgKCJURVJNPWR1bWIiICJESUNQQVRIPX4vLmVtYWNz LmQvaHVuc3BlbGwiPGJyPiZndDsgWy4uLl08YnI+Jmd0OyA8YnI+Jmd0OyAmZ3Q7IEVtYWNzIGRh ZW1vbiBzdGFydGVkIGZyb20gc2hlbGw6PGJyPiZndDsgWy4uLl08YnI+Jmd0OyAmZ3Q7ICJESUNQ QVRIPS9ob21lLyoqKioqLy5lbWFjcy5kL2h1bnNwZWxsIjxicj4mZ3Q7IDxicj4mZ3Q7IENvdWxk IHRoZSBmYWN0IHRoYXQgeW91IGhhdmUgIn4iIGluc3RlYWQgb2YgIi9ob21lLyoqKiovIiBpbiB0 aGUgc3lzdGVtZDxicj4mZ3Q7IHNlcnZpY2UgYmUgc2lnbmlmaWNhbnQ/Jm5ic3A7IERvZXMgaXQg aGVscCB0byBjaGFuZ2UgdGhhdD88YnI+PGJyPkluZGVlZCwgSSBkb24ndCB0aGluayBIdW5zcGVs bCBleHBhbmRzICJ+IiBpbiBESUNQQVRILjxicj48L2JvZHk+PC9odG1sPg== ----_com.android.email_1313819587850170-- From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 11 10:06:56 2017 Received: (at 28025) by debbugs.gnu.org; 11 Aug 2017 14:06:57 +0000 Received: from localhost ([127.0.0.1]:55878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgAaW-0000mk-Jl for submit@debbugs.gnu.org; Fri, 11 Aug 2017 10:06:56 -0400 Received: from mail-oi0-f41.google.com ([209.85.218.41]:36128) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgAaU-0000mW-IN for 28025@debbugs.gnu.org; Fri, 11 Aug 2017 10:06:55 -0400 Received: by mail-oi0-f41.google.com with SMTP id g131so34092366oic.3 for <28025@debbugs.gnu.org>; Fri, 11 Aug 2017 07:06:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=1M7WujgDk0VuoVaXO07BdceCoip2iB9fvhSbf61BR9c=; b=EuFcmyVYAqnIWHj65vyUbpSDXv3Sm/NzyY0i3pdFOyChWSe6Bvbvo8lcom/rfbUQ9f d9ClfXFXqxSfn7gIq+VS54pduz3XPQ459/98XOFzutWE1cWFb2kW3GORbT+i3NLphn8y tyIcUhFRmUjt+B4kvcK434+Xj1/a8GDdiq5FZ/5aaQAuWxJIK49Cwtuuqw481w5gLPYe DvHnfWJN3+HO1LwOvHFqVuNHyJF5Q8HC7A7E6nO4PKYhH2W8nuAU3MPsFC++9VEqMX6a 7f9ESATO79PaE5RmLo9j39XXqZBa6JUb4Vp2CQZPkKrKXdKav+uL+e37nNEcUOwl772r gZ7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=1M7WujgDk0VuoVaXO07BdceCoip2iB9fvhSbf61BR9c=; b=ddlIwjTynalu5MXcyhXc2FVOK0iwBbbBgDcW2rJtRIGfU0SJgsFyga4aPrs8RTVhj2 zLbWHzkKoSi6/OberzpY2OQs+kjkOPf7K7fpbGrxXPMLejsqYlK0izQJOmlveJ+8Y8ZK uUWHaIUZOBlEVbwqfp6dH0EJqfFdMU/NokTHlrrxK/8zF1kTp7uJs3eNbowD788XEpI/ 9dIXH25BaKxetgS1S4EVJ1aqMQSCBON8/nK2sFjLu0sMjlqPVGbzaC5rpfYY9G4xJPrL vblTDTRJw81fCKqdUHhate22vlBer0VnpXiIWbwu78D3L7jjTIDh6nvpy8uGCoZh5ZCY jtlA== X-Gm-Message-State: AHYfb5icek08NzMRz0JcMFaOMRkxzimvtiM5P+ayO2iYpY4q21Gj7i01 k2yVyi9D8RRkH7BWlirYTYfGJaeDlg== X-Received: by 10.202.87.78 with SMTP id l75mr18582897oib.275.1502460408841; Fri, 11 Aug 2017 07:06:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.20.51 with HTTP; Fri, 11 Aug 2017 07:06:48 -0700 (PDT) In-Reply-To: References: From: Arthur Miller Date: Fri, 11 Aug 2017 16:06:48 +0200 Message-ID: Subject: Re: Re: bug#28025: Daemon/server passes string incorrectly to/from Systemd To: Eli Zaretskii , npostavs@users.sourceforge.net Content-Type: multipart/alternative; boundary="001a113ad448f5508605567ad29c" X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 28025 Cc: 28025@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) --001a113ad448f5508605567ad29c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yepp tilde in DICPATH was the problem! No bug in Emacs! :-) I am so used to bash, so I always forgett it's bash that does the expansion, and it fails in cases like this. Thank you all for the help! 2017-08-10 17:59 GMT+02:00 arthur.miller.no1 : > Aha. I guess you are ptobably correct. I am not at home again before > tomorrow, but as soon as I am at home I will try it. Thanks! > > > Skickat fr=C3=A5n min Samsung-enhet > > > -------- Originalmeddelande -------- > Fr=C3=A5n: Eli Zaretskii > Datum: 2017-08-10 17:18 (GMT+01:00) > Till: npostavs@users.sourceforge.net > Kopia: arthur.miller.no1@gmail.com, 28025@debbugs.gnu.org > Rubrik: Re: bug#28025: Daemon/server passes string incorrectly to/from > Systemd > > > From: npostavs@users.sourceforge.net > > Date: Thu, 10 Aug 2017 08:54:29 -0400 > > Cc: 28025@debbugs.gnu.org > > > > > Emacs daemon started with systemd as user service: > > > > > > ("TERM=3Ddumb" "DICPATH=3D~/.emacs.d/hunspell" > > [...] > > > > > Emacs daemon started from shell: > > [...] > > > "DICPATH=3D/home/*****/.emacs.d/hunspell" > > > > Could the fact that you have "~" instead of "/home/****/" in the system= d > > service be significant? Does it help to change that? > > Indeed, I don't think Hunspell expands "~" in DICPATH. > --001a113ad448f5508605567ad29c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yepp tilde in DICPATH was the problem! No bug in Emac= s! :-)

I am so used to bash, so I always forgett i= t's bash that does the expansion, and it fails
in cases = like this.

Thank you all for the help!

2017-08-10 17= :59 GMT+02:00 arthur.miller.no1 <arthur.miller.no1@gmail.com= >:
=20
Aha. I guess you are ptobably correct. I am not at home again before t= omorrow, but as soon as I am at home I will try it. Thanks!

<= /div>

Skickat fr=C3=A5n min= Samsung-enhet


-------- Originalmeddelande --------
F= r=C3=A5n: Eli Zaretskii <eliz@gnu.org>
Datum: 2017-08-10 17:18 (GMT+01:00)
Till:= nposta= vs@users.sourceforge.net
Kopia: arthur.miller.no1@gmail.com, 28025@debbugs.gnu.org Rubrik: Re: bug#28025: Daemon/server passes string incorrectly to/from Sy= stemd

> From: npostavs@users.sourceforge.net=
> Date: Thu, 10 Aug 2017 08:54:29 -0400
> Cc: 28025@debbugs.gnu.org
>= ;
> > Emacs daemon started with systemd as user service:
> = >
> > ("TERM=3Ddumb" "DICPATH=3D~/.emacs.d/hunsp= ell"
> [...]
>
> > Emacs daemon started from she= ll:
> [...]
> > "DICPATH=3D/home/*****/.emacs.d/hu= nspell"
>
> Could the fact that you have "~" in= stead of "/home/****/" in the systemd
> service be signific= ant?=C2=A0 Does it help to change that?

Indeed, I don't think Hu= nspell expands "~" in DICPATH.
=

--001a113ad448f5508605567ad29c-- From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 11 10:14:10 2017 Received: (at 28025-done) by debbugs.gnu.org; 11 Aug 2017 14:14:10 +0000 Received: from localhost ([127.0.0.1]:55883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgAhW-0000x4-F4 for submit@debbugs.gnu.org; Fri, 11 Aug 2017 10:14:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgAhU-0000wr-JC for 28025-done@debbugs.gnu.org; Fri, 11 Aug 2017 10:14:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgAhM-0006lN-MK for 28025-done@debbugs.gnu.org; Fri, 11 Aug 2017 10:14:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44625) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgAhM-0006lH-Im; Fri, 11 Aug 2017 10:14:00 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4683 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dgAhJ-0005ND-Ty; Fri, 11 Aug 2017 10:14:00 -0400 Date: Fri, 11 Aug 2017 17:13:37 +0300 Message-Id: <83r2wiqjji.fsf@gnu.org> From: Eli Zaretskii To: Arthur Miller In-reply-to: (message from Arthur Miller on Fri, 11 Aug 2017 16:06:48 +0200) Subject: Re: bug#28025: Daemon/server passes string incorrectly to/from Systemd References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28025-done Cc: 28025-done@debbugs.gnu.org, npostavs@users.sourceforge.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Arthur Miller > Date: Fri, 11 Aug 2017 16:06:48 +0200 > Cc: 28025@debbugs.gnu.org > > Yepp tilde in DICPATH was the problem! No bug in Emacs! :-) > > I am so used to bash, so I always forgett it's bash that does the expansion, and it fails > in cases like this. > > Thank you all for the help! Thanks, I'm therefore closing this bug. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 11 12:55:14 2017 Received: (at 28025) by debbugs.gnu.org; 11 Aug 2017 16:55:14 +0000 Received: from localhost ([127.0.0.1]:55934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgDDM-0004g1-A3 for submit@debbugs.gnu.org; Fri, 11 Aug 2017 12:55:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:32811) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgDDK-0004fo-Dz for 28025@debbugs.gnu.org; Fri, 11 Aug 2017 12:55:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgDDD-00084t-W2 for 28025@debbugs.gnu.org; Fri, 11 Aug 2017 12:55:05 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgDD9-00083J-JB; Fri, 11 Aug 2017 12:54:59 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1dgDD9-0006XC-4k; Fri, 11 Aug 2017 12:54:59 -0400 From: Glenn Morris To: Arthur Miller Subject: Re: bug#28025: Daemon/server passes string incorrectly to/from Systemd References: <5ko9roecl6.fsf@fencepost.gnu.org> X-Spook: IDEA smugglers Ruby Ridge argus Emergency response X-Ran: ^xQ^w^o22.#q':M]H{`U-,vI7-\Z:gf9M#!`/}7(637vj%yV0bou (Arthur Miller's message of "Thu, 10 Aug 2017 14:42:11 +0200") Message-ID: <96shgy11ul.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28025 Cc: 28025@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Arthur Miller wrote: >> I don't see what D-Bus would have to do with this. > Systemd-bus is D-bus if I understood Systemd docs correctly. That may be, but it's not relevant to what Emacs does once it is started. > Emacs daemon started with systemd as user service: > > ("TERM=dumb" "DICPATH=~/.emacs.d/hunspell" There is no variable expansion inside systemd's "Environment" specifier, and I don't think it does tilde expansion anywhere. https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Environment= Specifiers work, so I guess you could use "%h" instead of "~". https://www.freedesktop.org/software/systemd/man/systemd.unit.html#Specifiers From unknown Thu Jun 19 16:18:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 09 Sep 2017 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator