dot/emacs: Look for running server before leaping at starting a new one.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 29 Apr 2024 09:53:10 +0000 (10:53 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 29 Apr 2024 10:05:46 +0000 (11:05 +0100)
commit8cddbe5ccf1a8331006029915e652e9d02d516b5
tree5593fe3d5fe9b3d5755a0721b026c7e84a014f57
parent07ba19991f9d3f2d7e542aa65bbea501cc48108c
dot/emacs: Look for running server before leaping at starting a new one.

I used to use `warning-suppress-types' to muffle this, but it doesn't
work any more because there's a new mechanism for `delayed warnings'.
If we're still starting up (and not being a daemon or noninteractive)
then warnings get put on a list to deal with later -- but the
suppression lists aren't saved, so the warning `escapes' from under my
attempt to muffle it.

Instead, look to see if there's a server already running, and just print
a message if there is.
dot/emacs