GNU bug report logs -
#50849
28.0.50; Proposal for Emacs daemon to signal when being busy
Previous Next
Reported by: Jean Louis <bugs <at> gnu.support>
Date: Mon, 27 Sep 2021 14:28:02 UTC
Severity: wishlist
Tags: patch
Found in version 28.0.50
Fixed in version 29.1
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #59 received at 50849 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
tags 50849 + patch
thanks
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> I don't think a --timeout parameter will be useful here, though --
> nobody is going to type "emacsclient --timeout 10 -nw".
>
> So I think an informational message (like previously mentioned) is the
> best we can do here.
How about the attached patch? It adds an informational message after 30
seconds by default. With a "--timeout N" flag, we instead display a
message and exit (after N seconds).
Note that:
1. I didn't yet add documentation.
2. I've only tested the patch on GNU/Linux (*not* on MS-Windows).
3. To simulate a timeout for testing, you could try this:
diff --git a/lisp/server.el b/lisp/server.el
index 3caa335c4e..5dc220d0b3 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -1113,8 +1113,8 @@ server-process-filter
(progn
(server-add-client proc)
;; Send our pid
- (server-send-string proc (concat "-emacs-pid "
- (number-to-string (emacs-pid)) "\n"))
+ ;; (server-send-string proc (concat "-emacs-pid "
+ ;; (number-to-string (emacs-pid)) "\n"))
(if (not (string-match "\n" string))
;; Save for later any partial line that remains.
(when (> (length string) 0)
[0001-Add-new-timeout-flag-to-emacsclient.patch (text/x-diff, attachment)]
This bug report was last modified 2 years and 256 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.