[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#64866: 30.0.50; Emacsclient block for 2 seconds when error is raised
From: |
Eli Zaretskii |
Subject: |
bug#64866: 30.0.50; Emacsclient block for 2 seconds when error is raised from command |
Date: |
Wed, 26 Jul 2023 18:58:24 +0300 |
> From: Yikai Zhao <yikai@z1k.dev>
> Date: Wed, 26 Jul 2023 23:50:43 +0800
> Cc: 64866@debbugs.gnu.org
>
> That's OK, I understand your point. Previously I thought this should
> be treated as a bug because in my mind, "emacsclient -e xxxx" is
> similar to "emacs --eval=xxx" (and further, similar to "python -c
> xxxx"), which is a general interface to evaluate code (but maybe in a
> specific environment (the server)). In that case, arbitrarily sleeping
> some extra seconds in some valid evaluation scenarios seems
> unexpected. Now I can see why that's not the case as the primary
> function of emacsclient is to "tell a running Emacs to visit a file".
>
>
> For any others who may be interested, my use case can be workaround by
> using a slightly more complex command:
>
> RES="$(emacsclient -e "(condition-case nil (progn (windmove-right)
> t) (error nil))")"
> if [ "$RES" != "t" ]; then
> return 1
> fi
Thanks, I'm therefore closing this bug.