GNU bug report logs - #2520
Read configuration file on SIGUSR1

Previous Next

Package: emacs;

Reported by: cmr.Pent <at> gmail.com

Date: Sun, 1 Mar 2009 09:15:03 UTC

Severity: wishlist

Tags: confirmed

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Andreas Schwab <schwab <at> linux-m68k.org>, rfrancoise <at> debian.org, Stefan Kangas <stefan <at> marxist.se>, cmr.Pent <at> gmail.com, 2520 <at> debbugs.gnu.org
Subject: bug#2520: 23.0.91; Dies on SIGHUP
Date: Fri, 22 Oct 2021 18:31:05 -0400
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.