Re: ## error when running notmuch from emacsclient, but not from standalone emacs instance

Subject: Re: ## error when running notmuch from emacsclient, but not from standalone emacs instance

Date: Wed, 18 Jan 2023 16:52:13 +0000

To: notmuch@notmuchmail.org

Cc:

From: ricardomartins@riseup.net


>> What is the output of M-x notmuch-version for both emacsclient and emacs?
Both show notmuch version 0.37. 


>> ... and how are you starting the emacs server? 
I started as a systemd user unit. I'm using GNU Emacs 30.0.50
Development version 2f05f48918ec on master branch; build date
2023-01-07. VISUAL and EDITOR environment variables are set to
emacsclient.


>> Depending on that, server and standalone may get a different PATH from the environment so that one uses the system notmuch and the other your personal install.

Ok, so I tested this. I tried stopping the systemd unit of the emacs
server, opened an emacs instance, and started the server from within
emacs (M-x server-start <RET>). Connected to this server in a new frame
($ emacsclient -nc) and tried executing notmuch again (M-x notmuch
<RET>). This time, it worked like it should. So, definitely an issue
with the systemd unit method of initialization there, although it only
executes /usr/bin/emacs --fg-daemon, so I'm not sure exactly is going on
here that's causing the problem. 

Thanks for helping. 
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: