[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ~/.bbdb with multiple emacs instnaces
From: |
Roland Winkler |
Subject: |
Re: ~/.bbdb with multiple emacs instnaces |
Date: |
Sat, 7 Oct 2017 20:25:17 -0500 |
On Sat Oct 7 2017 Ernesto Alfonso wrote:
> I don't manually make changes to ~/.bbdb, but the bbdb library
> keeps the buffer open and locked. It would be nice if bbdb had an option
> to write out changes immediately instead of leaving the ~/.bbdb buffer
> open.
This part I do not understand. Emacs locks a file (and creates
autosave files) only if a buffer is visiting a file and you modify
the buffer. There is no lock for files if a buffer is visiting the
file without modifying it. So for BBDB that means: only if you make
changes to the database (i.e., modify the buffer visiting your
~/.bbdb) emacs locks this file.
You could let bbdb-after-change-hook run bbdb-save. But as I said,
I'd consider this dangerous, in particular if you believe you do not
make changes to your database in the first place.