alphapapa / alphapapa/burly.el

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

未关闭
#47 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug help wanted
主要语言
Emacs Lisp
星标
326
派生
15
PR 合并指标
30 天内没有已合并 PR

描述

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.

```el
(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](https://user-images.githubusercontent.com/549126/147922550-d6e6a5ad-fd88-41bd-8a41-386a6675cd2b.png)

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?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。