alphapapa / alphapapa/burly.el

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

Aberta
#47 1 comentário 0 reações 0 responsáveis Ver no GitHub
bug help wanted
Linguagem predominante
Emacs Lisp
Estrelas
326
Forks
15
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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?

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.