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 20:43:48 +0100

To: notmuch@notmuchmail.org

Cc:

From: tom.hirschowitz@univ-smb.fr


Just a wild guess: have you tried installing the emacs package exec-path-from-shell (from melpa)?

On 18/01/2023 19:16, David Bremner <david@tethera.net> wrote:
> ricardomartins@riseup.net writes:
> 
> > 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.
> 
> I don't have personal experience with running emacs from systemd, but I
> guess it could be worth trying
> 
> M-: (executable-find "notmuch")
> 
> That will verify that you are not being tripped up by multiple notmuch
> executables.
> 
> Another thing to try is
> 
> M-x notmuch-search <return> tag:inbox <return>
> 
> This may give a more helpful error message (or it may work fine,
> indicating the problem is really with notmuch count, but the --batch
> option is almost 10 years old now, so I think that error checking
> probably needs to be updated.
> 
> 
> _______________________________________________
> notmuch mailing list -- notmuch@notmuchmail.org
> To unsubscribe send an email to notmuch-leave@notmuchmail.org
> 
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: