doomemacs / doomemacs/core

`make-frame` does not preserve current buffer when using emacs client + server

Open
#6,270 0 comments 0 reactions 0 assignees View on GitHub
is:bug needs-triage
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### What did you expect to happen?

Using a command like `C-x 5 2` should create a new frame that contains the current buffer (the buffer selected at the time that the command is run).

### What actually happened?

A new frame is opened, but only contains the `*scratch*` buffer. I believe that if the splash screen module is enabled, then that is what opens in the new frame, but I have it disabled.

### Describe your attempts to resolve the issue

When running doom in a standalone emacs session (i.e. not with client + server), it works fine. It is apparently connected with running emacs in daemon mode.

### Steps to reproduce

1. install emacs 27.2 via MSYS2 for MINGW64, and install doom
2. start emacs daemon
3. open emacs frame using emacsclient
4. open any file
5. press `C-x 5 2`
6. observe that a new frame is opened, but does not contain the buffer of the file opened in step 3

### System Information

https://pastebin.com/VTcAqHDN

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.