oh-my-fish / plugin-emacs

Wrapper for daemon functionality of Emacs.
MIT License
19 stars 10 forks source link

x-display-list frame bug #11

Open equwal opened 4 years ago

equwal commented 4 years ago

The file __launch_emacs.fish assumes that (x-display-list) will return nil when all the frames are closed.

This doesn't always happen on my system, where it will stay as '(":1")' even when I have no frames open. This results in e silently doing nothing and returning to the command line.

A workaround is to call ec.

Reproduction steps:

  1. Put this in your .emacs
    (setf (symbol-function 'x-display-list) (lambda (&rest ignore) '(":1")))
  2. Start the server /usr/bin/emacs.
  3. Have no frames open.
  4. call e ~ and it will not open a new frame.