From: tom.hirschowitz@univ-smb.fr
To: notmuch@notmuchmail.org
Subject: Re: ## error when running notmuch from emacsclient, but not from standalone emacs instance
Date: Wed, 18 Jan 2023 20:43:48 +0100 [thread overview]
Message-ID: <a4fad0db-66f4-a606-6418-13ee2e84ce60@univ-smb.fr> (raw)
In-Reply-To: <875yd3pv24.fsf@tethera.net>
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
>
prev parent reply other threads:[~2023-01-18 19:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-18 5:14 ## error when running notmuch from emacsclient, but not from standalone emacs instance ricardomartins
2023-01-18 14:39 ` David Bremner
2023-01-18 14:55 ` Michael J Gruber
2023-01-18 16:52 ` ricardomartins
2023-01-18 18:16 ` David Bremner
2023-01-18 19:43 ` tom.hirschowitz [this message]
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://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a4fad0db-66f4-a606-6418-13ee2e84ce60@univ-smb.fr \
--to=tom.hirschowitz@univ-smb.fr \
--cc=notmuch@notmuchmail.org \
/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://yhetil.org/notmuch.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).