dot/emacs: Don't use the `trash' on Emacs 23.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 18 Apr 2020 22:19:20 +0000 (23:19 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 18 Apr 2020 22:19:20 +0000 (23:19 +0100)
commit70e46f189c59d6c90ff0e960cc509ea2c4e04321
treeca64e8562a205f947756ded048eddb125cc52681
parent7bfab029d5c8a53ba1d5872371d79a2a3a90adf2
dot/emacs: Don't use the `trash' on Emacs 23.

It doesn't actually work.  Specifically, if you try to delete a file on,
say, `/tmp', then Emacs tries to rename it and fails with `EXDEV'.

This is especially troublesome because it breaks `emacs --daemon'.
Emacs doesn't usually delete its socket when it quits, so it gets left
behind as `/tmp/mdw/emacs1000/server' or something.  When you run `emacs
--daemon' later, it finds the old socket and tries to delete it, which
fails.  And /then/ you get left with a strange half-daemonized Emacs
which has crashed during startup, and the husk of its parent, and
neither of them can do anything very useful.
dot/emacs