girzel / ebdb

An EIEIO port of BBDB, Emacs' contact-management package
67 stars 11 forks source link

C-x s doesn't save ebdb file #52

Closed tromey closed 6 years ago

tromey commented 6 years ago

I noticed that C-x s did not save the ebdb file. However, exiting emacs did save it. I think it would be nice if it were treated more like an ordinary file in this way.

girzel commented 6 years ago

I've actually got a patch pending for Emacs core that would allow this -- right now save-some-buffers won't touch special-mode buffers, because they are not visiting a file. EBDB buffers don't visit files, and I can't pretend they do, because records might be drawn from multiple databases. My patch (which was inspired particularly by this problem with EBDB) would allow save-some-buffers to ignore the lack of a buffer-file, so long as write-contents-functions was non-nil.

I hope that eventually gets applied.

tromey commented 6 years ago

Wow, thanks for doing that.