From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pedro Andres Aranda Gutierrez Newsgroups: gmane.emacs.bugs Subject: bug#70049: 30.0.50; (server-running-p) in mode line freezes emacs Date: Thu, 28 Mar 2024 17:03:36 +0100 Message-ID: References: <8634sah952.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000fda9f90614baab8d" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32081"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70049@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 28 17:05:41 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rpsG4-00086b-Ra for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Mar 2024 17:05:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpsFX-0007hz-Cw; Thu, 28 Mar 2024 12:05:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rpsFS-0007fP-Ij for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2024 12:05:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rpsFS-0004cg-9t for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2024 12:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rpsFS-0005Ka-G7 for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2024 12:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pedro Andres Aranda Gutierrez Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Mar 2024 16:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70049 X-GNU-PR-Package: emacs Original-Received: via spool by 70049-submit@debbugs.gnu.org id=B70049.171164185220311 (code B ref 70049); Thu, 28 Mar 2024 16:05:02 +0000 Original-Received: (at 70049) by debbugs.gnu.org; 28 Mar 2024 16:04:12 +0000 Original-Received: from localhost ([127.0.0.1]:40982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpsEe-0005HW-3u for submit@debbugs.gnu.org; Thu, 28 Mar 2024 12:04:12 -0400 Original-Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:58740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpsEb-0005HF-9M for 70049@debbugs.gnu.org; Thu, 28 Mar 2024 12:04:11 -0400 Original-Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-513d599dbabso1449737e87.1 for <70049@debbugs.gnu.org>; Thu, 28 Mar 2024 09:04:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711641842; x=1712246642; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=hd/4Jyn7PN3k6ZuhlujX1cx6iqKT0wmDPItDZx0g2C8=; b=GS3ZVANTLy8VXeBKKZItPrzvutFWyLqNrAqbVhJiEHKYRTFxYjwkcS77Y9PKiv8+ry cnKsWO+VogNLNQ5sxk/4tfARDqwdt+pWmowZQx4CNSMJp1p96fWwL0Nd2ssmxC0GzOAP /EpzV2vw5BGtMCm2XyKbLJC32+A89llAPoOBphbPjQxXxyYxxyXJvx6YMCAKnCyaqkmZ B10voc4rlyYFYmMrAGD9f+A+WUjkdJIETedwdP4E9E2mJ8eoiZcTQERaJ0eAc+1Vbyc7 kH/8KDwZ13G+ClheOm/ZqnuOkh6giGIAs31LiXAzUg44ijEg7MBG3+S15EYiUB1t5hTX cqmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711641842; x=1712246642; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hd/4Jyn7PN3k6ZuhlujX1cx6iqKT0wmDPItDZx0g2C8=; b=sAIiT33wFA17mOutLZnimxL1ZTNNKQEaePZ4pEXv2P3M295SClpgzxTObm6/3CyePq WkPJRgEfc3y6/Z3FJbwNkDH7aCfVeWZ6VOef9vS/BrW8vl9mTflyWNTRTnMvgEQcJyxO BpsoBMkp4PPyyqnPBsgKA23DOSeAr/YTNu6vssSEUFkQM61ue0YzNk8ibfCrgBRPP1ev Ecu3amUoN5urJfh0AmNaabpGN1QbtPiuqplM/xsLK5p9N8jacJrGVc4Mefur9pqbYjiD VP5iGQq37xpbaraelCyY02b29YFONGPYx/qBNV2lz9BPpl4kScAmqdUJQhTyUf5A0jZ7 oSCg== X-Gm-Message-State: AOJu0YyuvyO5tLcqpFJzj7KdX8XsFjD792xvFDiCwbEJFEgUWfwNSFcI mg9W7ZXOTg3GGa+rvR14tD+9lxWmGZA5gncKGnY375RgHj0Ieg0Ml8y06NFSTg7CY0BEpuGjXr7 iCWthu1/+CNatyAbdyOx3oz2lJSo= X-Google-Smtp-Source: AGHT+IFXbakrAB8Bva2WjUu+qUKcuhYmZR/JfM7RIiZr0M28AmWYTE6IRdslTv3Hosxv6noyHXMWTOeKrL+iNeuJmK4= X-Received: by 2002:a05:6512:605:b0:515:c17e:ddb1 with SMTP id b5-20020a056512060500b00515c17eddb1mr2274392lfe.50.1711641842260; Thu, 28 Mar 2024 09:04:02 -0700 (PDT) In-Reply-To: <8634sah952.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:282236 Archived-At: --000000000000fda9f90614baab8d Content-Type: text/plain; charset="UTF-8" Hey, When I say freeze, I mean it becomes irresponsive and does not respond to Ctrl-G and GNOME detects the situation, opening a 'force quit' dialog. It also happens in macOS, and there I can only force quit emacs. I've opened this bug, because there was something similar around putting a VC indicator in the mode-line. It might not be solvable, but at least I think it is worth discussing and documenting. Who knows if this could not end in a DONT-DO sort of document, which might also be of some merit and use. Happy easter, /PA On Thu, 28 Mar 2024 at 12:46, Eli Zaretskii wrote: > > Date: Thu, 28 Mar 2024 11:45:16 +0100 > > From: "Pedro A. Aranda" > > > > Place the following file as init.el in a directory (e.g. ~/.demacs.d) > > > > > > ---- cut here ---- > > ;; Mode line settings > > > > (defun server-running-indicator() > > (when (server-running-p) "S ")) > > ;; (unless (null server-process) "S ")) > > > > ;; (setq-default mode-line-right-align-edge 'right-fringe) > > (setq-default mode-line-format > > (list > > '(:eval (propertize (server-running-indicator) > > 'face 'mode-line-buffer-id)) > > > > mode-line-modified > > " " > > mode-line-buffer-identification > > " " > > mode-line-position)) > > ---- cut here ---- > > > > run emacs as > > /usr/bin/emacs --init-directory ~/.demacs.d > > > > On the emacs window, click on the lower left corner and resize it with > > the mouse. No hangs are observed. > > > > Now, active server-mode with > > M-x server-mode > > > > Try again to resize the emacs window with the mouse. Emacs freezes. > > I seem to be unable to reproduce this. > > Does the freeze happen only if you resize the frame? What if you just > drag the mode line to resize the window? > > And when you say "freezes", does it mean Emacs uses 100% of a CPU's > execution unit, or does it mean it waits for something doing nothing? > > Btw, in general, having arbitrary expressions in mode-line's :eval > form might definitely cause problems, since the mode line is called by > redisplay. > -- Fragen sind nicht da, um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler Headaches with a Juju log: unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed hook here, but we can't yet --000000000000fda9f90614baab8d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hey,

When I say freeze, I mean it becom= es irresponsive and does not respond to Ctrl-G and GNOME detects the situat= ion, opening a 'force quit' dialog. It also happens in macOS, and t= here I can only force quit emacs. I've opened this bug, because there w= as something similar around putting a VC indicator in the mode-line.=C2=A0<= /div>

It might not be solvable, but at least I think it = is worth discussing and documenting. Who knows if this could not end in a D= ONT-DO sort of document, which might also be of some merit and use.

Happy easter, /PA


On Thu, 28 Mar 2024= at 12:46, Eli Zaretskii <eliz@gnu.org> wrote:
&g= t; Date: Thu, 28 Mar 2024 11:45:16 +0100
> From: "Pedro A. Aranda" <
paaguti@gmail.com>
>
> Place the following file as init.el in a directory (e.g. ~/.demacs.d)<= br> >
>
> ---- cut here ----
> ;; Mode line settings
>
> (defun server-running-indicator()
>=C2=A0 =C2=A0 (when (server-running-p) "S "))
> ;;=C2=A0 (unless (null server-process) "S "))
>
> ;; (setq-default mode-line-right-align-edge 'right-fringe)
> (setq-default mode-line-format
>=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (list
>=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 '(:eval (prop= ertize (server-running-indicator)
>=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 'face 'mode-line-buffer-id))
>
>=C2=A0 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mode-line-modified
>=C2=A0 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 " "
>=C2=A0 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mode-line-buffer-identification<= br> >=C2=A0 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 " "
>=C2=A0 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mode-line-position))
> ---- cut here ----
>
> run emacs as
> /usr/bin/emacs --init-directory ~/.demacs.d
>
> On the emacs window, click on the lower left corner and resize it with=
> the mouse. No hangs are observed.
>
> Now, active server-mode with
> M-x server-mode
>
> Try again to resize the emacs window with the mouse. Emacs freezes.
I seem to be unable to reproduce this.

Does the freeze happen only if you resize the frame?=C2=A0 What if you just=
drag the mode line to resize the window?

And when you say "freezes", does it mean Emacs uses 100% of a CPU= 's
execution unit, or does it mean it waits for something doing nothing?

Btw, in general, having arbitrary expressions in mode-line's :eval
form might definitely cause problems, since the mode line is called by
redisplay.


--
Fragen sind nicht da, um bea= ntwortet zu werden,
Fragen sind da um gestellt zu werden
= Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should ru= n a leader-deposed hook here, but we can't yet

--000000000000fda9f90614baab8d--