Bug 2344374 - emacs tries to open new window even when DISPLAY is not set
Summary: emacs tries to open new window even when DISPLAY is not set
Keywords:
Status: CLOSED DUPLICATE of bug 2276822
Alias: None
Product: Fedora
Classification: Fedora
Component: emacs
Version: 40
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Daiki Ueno
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-07 18:13 UTC by Ian Romanick
Modified: 2025-02-07 20:05 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-02-07 20:05:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.