unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kevin J Witczak via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 72487@debbugs.gnu.org
Subject: bug#72487: calculator-electric-mode causes freeze on subsequent use of minibuffer
Date: Mon, 05 Aug 2024 22:41:57 +0000	[thread overview]
Message-ID: <1ee056b3-dde2-4535-92ce-387e1850a99a@protonmail.ch> (raw)

When using the calculator function of GNU Emacs 31.0.50 (bug also found 
in 29.4), usage of `calculator-electric-mode' causes Emacs to hang on 
subsequent uses of the minibuffer.

Emacs -Q

M-: (setf calculator-electric-mode t) <RET>

M-x calcu <RET> q M-x M-p <RET>

Note that the freeze does not depend on specifically calling calculator 
a second time, and calculator may be repeated with C-x z without issue.

The freeze occurs specifically when the minibuffer exits a second time, 
even via C-g, before its contents are processed. Thus, for example, the 
following still yields a freeze:

Emacs -Q

M-: (setf calculator-electric-mode t) <RET>

M-x d-o-e <RET> kill-emacs <RET>

M-x calcu <RET> q M-x kill-emacs <RET>

Apparently, calculator-electric-mode leaves the minibuffer window in a 
broken state after first usage, rather than resetting it correctly.

Emacs must be killed externally at this point, and generally cannot be 
salvaged with C-g. It becomes trapped in a loop emitting terminal bells 
(seen with `visible-bell' mode on, or via a termscript from `-nw').






             reply	other threads:[~2024-08-05 22:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-05 22:41 Kevin J Witczak via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-08-12  9:50 ` bug#72487: calculator-electric-mode causes freeze on subsequent use of minibuffer martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-23  8:42   ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-23 13:18     ` Eli Zaretskii
2024-08-24  8:00       ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-24  9:27         ` Eli Zaretskii
2024-08-28  8:59           ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-11  8:45             ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-21  8:07               ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=1ee056b3-dde2-4535-92ce-387e1850a99a@protonmail.ch \
    --to=bug-gnu-emacs@gnu.org \
    --cc=72487@debbugs.gnu.org \
    --cc=kim.jet.wav@protonmail.ch \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).