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:
is as follows:
emacs is hashed (/usr/bin/emacs)