Re: ## error when running notmuch from emacsclient, but not from standalone emacs instance
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 wrote: ricardomart...@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 ). Connected to this server in a new frame > ($ emacsclient -nc) and tried executing notmuch again (M-x notmuch > ). 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 tag:inbox 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-le...@notmuchmail.org ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: ## error when running notmuch from emacsclient, but not from standalone emacs instance
ricardomart...@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 ). Connected to this server in a new frame > ($ emacsclient -nc) and tried executing notmuch again (M-x notmuch > ). 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 tag:inbox 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-le...@notmuchmail.org
Re: ## error when running notmuch from emacsclient, but not from standalone emacs instance
>> 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 ). Connected to this server in a new frame ($ emacsclient -nc) and tried executing notmuch again (M-x notmuch ). 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-le...@notmuchmail.org
Re: ## error when running notmuch from emacsclient, but not from standalone emacs instance
Am Mi., 18. Jan. 2023 um 15:40 Uhr schrieb David Bremner : > > ricardomart...@riseup.net writes: > > > > > When I try to run notmuch from the emacsclient instance (M-x notmuch > > ), I get an error > > "notmuch count --batch failed > > Please check that the notmuch CLI is new enough to support `count > > --batch'. In general we recommend running matching versions of > > the CLI and emacs interface." > > > > I agree it is strange strange to have problems only affecting > emacsclient. The only thing I can think of off hand is that starting > emacsclient does not reload the emacs initialization file, so make sure > you run both experiments with a fresh restart of emacs. > > What is the output of M-x notmuch-version for both emacsclient and emacs? ... and how are you starting the emacs server? 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. ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: ## error when running notmuch from emacsclient, but not from standalone emacs instance
ricardomart...@riseup.net writes: > > When I try to run notmuch from the emacsclient instance (M-x notmuch > ), I get an error > "notmuch count --batch failed > Please check that the notmuch CLI is new enough to support `count > --batch'. In general we recommend running matching versions of > the CLI and emacs interface." > I agree it is strange strange to have problems only affecting emacsclient. The only thing I can think of off hand is that starting emacsclient does not reload the emacs initialization file, so make sure you run both experiments with a fresh restart of emacs. What is the output of M-x notmuch-version for both emacsclient and emacs? ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
## error when running notmuch from emacsclient, but not from standalone emacs instance
Hello. I'd like to report an error I'm encountering. I installed notmuch from the arch repositories. I had previously installed the notmuch package from the MELPA repository, but have since uninstalled it and the error persists. When I try to run notmuch from the emacsclient instance (M-x notmuch ), I get an error "notmuch count --batch failed Please check that the notmuch CLI is new enough to support `count --batch'. In general we recommend running matching versions of the CLI and emacs interface." When I run notmuch from an standalone emacs instance, NOT the emacs client, the same way (M-x notmuch ), I get no errors and notmuch works fine. I read all the documentation. Have I missed something? Why am I experiencing this behaviour? Thanks ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org