I am having an issue with GNU Emacs 24.3.1. I usually only use emacs for the purpose of compiling .pdf or LaTeX documents. And I am unable to open the program correctly via terminal use. I initially type something like the following:
emacs foo.tex &
The window will appear but not in the normal buffer. It only appears in the scratch buffer. Contrary to this if I type something like:
sudo emacs foo.tex &
I will get the correct buffer in my window but I get an error message that looks like:
(emacs: 3859): GLib-Warning **: In call to g_spawn_sync(), exit status of child process....
I will attach the full error message if needed. I am wondering if it is possible that I may have incorrectly installed emacs. Any advice would be appreciated if anyone is familiar with this sort of issue. Thank you!
EDIT: The output of:
type emacs
is as follows:
emacs is hashed (/usr/bin/emacs)
Best Answer
The solution was that I as the user did not have ownership of the
folder, so I type in the following command to solve it:
However the GLib-Warning with the sudo emacs is a bug in emacs that hasn't been resolved.