Bug 2344374

Summary: emacs tries to open new window even when DISPLAY is not set
Product: [Fedora] Fedora Reporter: Ian Romanick <idr>
Component: emacsAssignee: Daiki Ueno <dueno>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 40CC: benson_muite, dan.cermak, dueno, gordon.messmer, marcandre.lureau, mavit, msekleta, phracek
Target Milestone: ---Keywords: Desktop, Regression
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: 2025-02-07 20:05:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ian Romanick 2025-02-07 18:13:16 UTC
It used to be that running emacs from, say, an ssh connection would start it in the terminal. It used to be smart enough to see that DISPLAY was not set, so it should not try to open a window. This has been the default behavior for decades. Now, running emacs from an ssh connection will either fail because it can't open a window, or, even worse, it will open a window on a display somewhere... across the room, across the world, who knows!

Reproducible: Always

Steps to Reproduce:
1. ssh into a machine (or otherwise unset DISPLAY).
2. Run emacs

Actual Results:  

Emacs tries to open a new window on the display. This may fail or open a window on a display that is not where the user is seated.

Expected Results:  

Emacs starts in the terminal (as by emacs -nw).

Comment 1 Peter Oliver 2025-02-07 20:05:59 UTC

*** This bug has been marked as a duplicate of bug 2276822 ***