unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#72487: calculator-electric-mode causes freeze on subsequent use of minibuffer
@ 2024-08-05 22:41 Kevin J Witczak via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-08-12  9:50 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 8+ messages in thread
From: Kevin J Witczak via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-08-05 22:41 UTC (permalink / raw)
  To: 72487

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






^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-09-11  8:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-05 22:41 bug#72487: calculator-electric-mode causes freeze on subsequent use of minibuffer Kevin J Witczak via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-12  9:50 ` 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

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