M-x server-force-delete to delete any existing servers, or remove the lines which enable
TeX-source-correlate-mode from your init file.
From the AUCTeX documentation (found via
Upon opening the viewer you will be asked if you want to start a
server process (Gnuserv or Emacs server) which is necessary for
inverse search. This happens only if there is no server running
already. You can customize the variable
'TeX-source-correlate-start-server' to inhibit the question and always
or never start the server respectively.
-- User Option: TeX-source-correlate-start-server
If 'TeX-source-correlate-mode' is active and a viewer is invoked,
the default behavior is to ask if a server process should be
started. Set this variable to 't' if the question should be
inhibited and the server should always be started. Set it to 'nil'
if the server should never be started. Inverse search will not be
available in the latter case.
Inverse search, i.e. jumping to the part of your document source
in Emacs corresponding to a certain position in the viewer, is
triggered from the viewer, typically by a mouse click. Refer to the
documentation of your viewer to find out how it has to be configured
and what you have to do exactly. In xdvi you normally have to use
In other words, starting an edit server lets you click a location in your typeset output file and it will jump you to the corresponding location in the source. If this is not a feature you use, or plan to use, then you can simply remove those lines from your init.
The most likely cause of your problem is a lingering server socket that is preventing emacs from starting a new edit server in this emacs process. The most likely cause is that emacs was not shut down properly at some point, and did not have a chance to delete the socket. If you call
M-x server-force-delete it should fix all of your problems. Once the old server is deleted, the current emacs process will be free to create its own server socket and things should work as expected.
As long as Emacs is closed properly each time (by
C-x C-c or similar) then you should not see this problem again. If Emacs crashes or is force killed in the future, then you may have to manually delete the server again. You could also add the following to your init file to automatically kill any old servers when Emacs is started:
(server-force-delete) ;; WARNING: Kills any existing edit server
If you only ever have one instance of Emacs running at a time, this should never cause you any problems. If you open a second instance of Emacs (not just a second frame, but a whole new process) then only the most recent instance will behave as the server.