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

Try save bookmark use burly.el interactively when closing current frame (use emacs daemon mode), but, this broken emacs daemon. #47

Open
zw963 opened this issue Jan 3, 2022 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@zw963
Copy link

zw963 commented Jan 3, 2022

I use emacs with daemon mode,

emacs --daemon

and interactive emacs with emacsclient.

emacsclient -nc some_file  # will connect to daemon

And, i add a hook like this, for try to save bookmark when i close current frame.

(defun set-burly-bookmark (frame)
  (call-interactively 'burly-bookmark-windows)
  t
  )

(add-hook 'delete-frame-functions 'set-burly-bookmark)

Above code seem like work, when i want to close current frame, it prompt me to save bookmark.

image

after i input name, we assume test2, then pressing enter, frame get closed, but, emacs server get broken, like this:

emacsclient: connect: Connection refused

(in normal sitution, i can always create a new frame when connect to server immediately)

In fact, test2 never saved correctly in this case, so, how to archive this correctly?

@alphapapa
Copy link
Owner

Hi,

Thanks for reporting this. I don't know what's happening here; you might need to consult the Emacs or Elisp manuals about exactly what delete-frame-functions does and when they are called. It might also be a bug in Emacs, so you might want to ask about this on the emacs-devel mailing list.

@alphapapa alphapapa added bug Something isn't working help wanted Extra attention is needed labels Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants