Bug 2129061

Summary: emacs does not correctly handle ctrl-z to minimize the emacs window.
Product: [Fedora] Fedora Reporter: Jos de Kloe <josdekloe>
Component: emacsAssignee: Daiki Ueno <dueno>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: dan.cermak, dueno, gordon.messmer, jkeating, jonathan.underwood, msekleta, phracek, robinlee.sysu, swt
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-25 15:56:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jos de Kloe 2022-09-22 12:13:02 UTC
Description of problem:

emacs does not correctly handle ctrl-z to minimize the emacs window.

Version-Release number of selected component (if applicable):

emacs-28.1-2.fc36.x86_64

How reproducible:

always

Steps to Reproduce:
1. launch: with emacs -q test.txt
2. minimize the window by typing ctrl-z
3. maximize again by double-clicking the emacs icon on the desktop
4. minimize the window again by typing ctrl-z

Actual results:

the first time I use ctrl-z the window minimizes and an emacs icon appears on the desktop.
After resuming the editor by double-clicking the desktop icon I use ctrl-z again, but this time nothing happens, it no longer responds to this command.

Expected results:

emacs should respond by minimizing its window, every time the ctrl-z command is given. 

Additional info:

note that emacs started in text mode inside a terminal does not seem to have a problem with the ctrl-z command. 
launching with: emacs -q -nw test.txt
it correctly suspends every time I give the ctrl-z command, and it does not matter how often I get it back in the foreground using fg.

I tested this with xfce and fvwm based desktops with versions:
xfce4-session-4.16.0-5.fc36.x86_64
fvwm-2.6.9-7.fc36.x86_64

Comment 1 Jos de Kloe 2022-09-23 07:11:19 UTC
Correction:
I tested again today, and the issue does not occur with xfce, only with fvwm. Therefore it could also be caused by a change in the fvwm package.

Comment 2 Jos de Kloe 2022-09-27 11:51:37 UTC
But then I don't understand what change that must have been for fvwm, since it had the exact same version (2.6.9) on f35 and f36. The only difference is the Mass Rebuilds that occurred on different dates.

Comment 3 Jos de Kloe 2022-09-27 12:02:14 UTC
After downgrading to emacs-1:27.2-9.fc35.x86_64 on my f36 system them problem disappears.
If I then upgrade again to emacs-1:28.1-2.fc36.x86_64 the problem returns.
So this must be related to emacs after all.

Comment 4 Jos de Kloe 2022-10-04 06:37:57 UTC
raised the issue upstream here: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58164

Comment 5 Jos de Kloe 2022-10-04 06:47:20 UTC
problem is solved now upstream in branch master.
See commit http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3583f6184d738f1760b9c5467edafd5095f5d3e2

Leaving this bug open for information until emacs is upgraded.

Comment 6 Ben Cotton 2023-04-25 17:58:10 UTC
This message is a reminder that Fedora Linux 36 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '36'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 36 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 7 Ludek Smid 2023-05-25 15:56:43 UTC
Fedora Linux 36 entered end-of-life (EOL) status on 2023-05-16.

Fedora Linux 36 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.