all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Pedro A. Aranda" <paaguti@gmail.com>
Cc: 70049@debbugs.gnu.org
Subject: bug#70049: 30.0.50; (server-running-p) in mode line freezes emacs
Date: Thu, 28 Mar 2024 13:46:01 +0200	[thread overview]
Message-ID: <8634sah952.fsf@gnu.org> (raw)
In-Reply-To: <bdc9c654-4c7a-4b2e-a7f9-a58df51db659@gmail.com> (paaguti@gmail.com)

> 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)
> 
> 
> ---- 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.





  reply	other threads:[~2024-03-28 11:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-28 10:45 bug#70049: 30.0.50; (server-running-p) in mode line freezes emacs Pedro A. Aranda
2024-03-28 11:46 ` Eli Zaretskii [this message]
2024-03-28 16:03   ` Pedro Andres Aranda Gutierrez
2024-03-28 16:26     ` Eli Zaretskii
2024-03-29  6:37       ` Pedro Andres Aranda Gutierrez
2024-03-29  6:55         ` Eli Zaretskii
2024-03-29  7:09           ` Pedro Andres Aranda Gutierrez
2024-04-01  8:36             ` Pedro Andres Aranda Gutierrez
2024-04-01 11:34               ` Eli Zaretskii
2024-04-10 10:46                 ` Pedro Andres Aranda Gutierrez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8634sah952.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=70049@debbugs.gnu.org \
    --cc=paaguti@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.