Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start-file-process not working in emacs 29.1 #412

Open
rakete opened this issue Nov 9, 2023 · 1 comment
Open

Start-file-process not working in emacs 29.1 #412

rakete opened this issue Nov 9, 2023 · 1 comment

Comments

@rakete
Copy link

rakete commented Nov 9, 2023

  • 29.1
  • Ubuntu
  • ag
  • ("ag" "--no-color" "--nogroup" "helm")

When I search for a pattern ag exits abnormally with signal 1 (I can see that by just printing the event in the process sentinel).

It should search the pattern I typed.

I am seeing this strange behaviour after upgrading to emacs 29.1 where when I use a list with string literals ag works fine, but as soon as I try to apply 'start-file-process to (cmd-args (helm-ag--construct-do-ag-command helm-pattern)) it stops working and ag exits with signal 1.

I can take the cmd-args and put them into the code like so:

(apply #'start-file-process "helm-do-ag" nil '("ag" "--no-color" "--nogroup" "helm"))

and it works, but as soon as I use helm-pattern instead of hardcoding the pattern it stops working.

So, cmd-args contains '("ag" "--no-color" "--nogroup" "helm") and ag fails, but if I hardcode that same list in the code it works.

Any ideas what could be the problem?

@rakete
Copy link
Author

rakete commented Nov 9, 2023

I've tried explicitly setting the shell to bash, tried using (format "%s" helm-pattern), but neither helped. I'll revert to emacs 28.2 for the time being since it works as expected there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant