Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Some of the posframe commands are not available when starting emacs in daemon mode #460

Open
3 tasks done
CsBigDataHub opened this issue Jan 9, 2025 · 2 comments
Open
3 tasks done
Labels

Comments

@CsBigDataHub
Copy link
Contributor

Thank you for the bug report

  • I am using the latest version of Centaur Emacs.
  • I checked my private configurations in custom.el and custom-post.el.
  • I checked FAQ.

Bug description

Some of the posframe commands are not available when starting emacs in daemon mode

Steps to reproduce

  1. start emacs in daemon mode with emacs --daemon or emacs --fg-daemon
  2. run emacsclient -a "" -nc
  3. toggle debug-on-error
  4. try to run M-x shell-pop-posframe-toggle
  5. you will not find the command

Expected behavior

shell-pop-posframe-toggle should toggle in daemon mode.

This does not happen when emacs server starts on emacs startup.

  1. start emacs application
  2. run emacsclient -a "" -nc from terminal after emacs starts.
  3. everything works as expected.

Tested it on both Linux and Macos

OS

Linux

Emacs Version

gccemacs-29

Error callstack

No response

Anything else

No response

@CsBigDataHub
Copy link
Contributor Author

CsBigDataHub commented Jan 17, 2025

@seagle0128 ,

I think I found the issue -

Image

centaur-completion-style is automatically being set to minibuffer when running emacs --daemon even though centaur-completion-style is set to childframe. As you can see in the screenshot F1-v opens completions in minibuffer.

childframe-workable-p also returns t in daemon mode.

Here is my system-configuration-options, do you see anything unusual?

system-configuration-options is a variable defined in emacs.c.

Value
"--disable-build-details --with-modules --with-x-toolkit=lucid --with-cairo --with-xft --with-compress-install --with-toolkit-scroll-bars --with-native-compilation=aot --with-imagemagick --with-mailutils --without-small-ja-dic --with-tree-sitter --with-xinput2 --without-xwidgets --with-dbus --with-harfbuzz --with-libsystemd --prefix=/usr/local 'CFLAGS=-O2 -mtune=native -march=native -fomit-frame-pointer'"

@seagle0128
Copy link
Owner

It's as designed. In daemon mode, childframe-workable-p returns false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants