GNU bug report logs -
#2520
Read configuration file on SIGUSR1
Previous Next
Full log
View this message in rfc822 format
Lars Ingebrigtsen [2021-10-22 17:06:09] wrote:
> Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>> Do we have a `M-x <something>` to re-read the init file?
>> If not, why would it more important to offer a way to do it via SIGUSR?
> The use case is that you're ssh-ing in to an Emacs running on a machine,
> and you want to communicate with that Emacs (because it has all the
> information you absolutely need right now in *scratch*), but you haven't
> set up emacs-server on it yet. (Any similarity to something that's
> happened to me a dozen times is purely coincidental.)
> So if you could put (server-start) in ~/.emacs and send it SIGUSR,
> that'd be nice.
So maybe rather than load the init file, we wan to use SIGUSR1 cause
Emacs to read ~/.emacs.d/sigusr1.el ?
Stefan
PS: FWIW, when this happens, I use gdb to attach to the process
and "call (intern ("server-mode"));" from there.
[ This said, it doesn't happen often, because I do enable `server-mode`
in my init file. ]
This bug report was last modified 3 years and 232 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.