From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.bugs Subject: bug#31709: 27.0.50; Wishlist: Perhaps Emacs should load a file when getting a particular signal? Date: Mon, 04 Jun 2018 14:27:34 +0200 Message-ID: <877ene91op.fsf@mbork.pl> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1528115293 6229 195.159.176.226 (4 Jun 2018 12:28:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 4 Jun 2018 12:28:13 +0000 (UTC) User-Agent: mu4e 1.1.0; emacs 27.0.50 Cc: 31709@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 04 14:28:09 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPoak-0001Rd-W7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jun 2018 14:28:07 +0200 Original-Received: from localhost ([::1]:39511 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPocr-0001nL-Vd for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jun 2018 08:30:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPoci-0001hm-EW for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 08:30:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPocd-0007Mc-EE for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 08:30:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53076) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fPocd-0007M9-9N for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 08:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fPocc-0006wf-RN for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 08:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Marcin Borkowski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Jun 2018 12:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31709 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31709-submit@debbugs.gnu.org id=B31709.152811534426587 (code B ref 31709); Mon, 04 Jun 2018 12:30:02 +0000 Original-Received: (at 31709) by debbugs.gnu.org; 4 Jun 2018 12:29:04 +0000 Original-Received: from localhost ([127.0.0.1]:60973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPobc-0006uM-GH for submit@debbugs.gnu.org; Mon, 04 Jun 2018 08:29:04 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:44909) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPobW-0006u8-GQ for 31709@debbugs.gnu.org; Mon, 04 Jun 2018 08:28:58 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id C4B1CE7510; Mon, 4 Jun 2018 14:28:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3ZsRsBPY9wwd; Mon, 4 Jun 2018 14:28:41 +0200 (CEST) Original-Received: from localhost (188.47.31.174.ipv4.supernova.orange.pl [188.47.31.174]) by mail.mojserwer.eu (Postfix) with ESMTPSA id C3DADE6DAD; Mon, 4 Jun 2018 14:28:40 +0200 (CEST) In-reply-to: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:146950 Archived-At: On 2018-06-04, at 13:29, Lars Ingebrigtsen wrote: > Once again I find myself in the situation that I've started an Emacs at > home without an Emacs server socket, and I know there's something in a > buffer there that I want to get a hold of. But I'm at work, and there's > no way to make Emacs start a server remotely. > > It would be really nice if I could just ssh to the machine where the > Emacs is running, do "kill -USR1 " and then ... Emacs could do > something. Like load "~/.emacs.d/load-file-USR1" or something. Or just > start emacs-server. > > There are security implications, of course... But does this seem like > something useful? > > Writing a package that does this is easy, of course, but if you know > that this is something you need, then you'd already have started the > Emacs server anyway. So it would have to be something that's available > in Emacs by default, because you only need it if you didn't know that > you were going to need it. :-) Out of curiosity: is there any downside to having server-start in your init.el? Best, -- Marcin Borkowski http://mbork.pl