help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacsclient uses obsolete "server" file on Windows


From: Juanma Barranquero
Subject: Re: emacsclient uses obsolete "server" file on Windows
Date: Sun, 8 Jun 2008 22:38:00 +0200

> I exit with save-buffers-kill-emacs (files.el).

FWIW, I think stopping the server should delete the authentication
file. Alas, it doesn't (and it is not a bug, it is so by design).

You can use this in your .emacs; it's not pretty, but it will help:

(require 'server)
(server-start)

(defvar my-server-file (expand-file-name server-name server-auth-dir))

(add-hook 'kill-emacs-hook
          (lambda ()
            (condition-case nil
                (delete-file my-server-file)
              (error nil))))

  Juanma




reply via email to

[Prev in Thread] Current Thread [Next in Thread]