unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Jorge P. de Morais Neto <jorge+list@disroot.org>
Cc: 38993@debbugs.gnu.org
Subject: bug#38993: 26.3; EBDB saves the database on Emacs exit even when told not to
Date: Wed, 08 Jan 2020 10:54:35 -0800	[thread overview]
Message-ID: <871rs9dbis.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87lfqi9ix4.fsf@disroot.org> (Jorge P. de Morais Neto's message of "Wed, 08 Jan 2020 10:28:23 -0300")

Jorge P. de Morais Neto <jorge+list@disroot.org> writes:

[...]

> Oh, and in my quick testing in Spacemacs (this time I didn't start a
> minimally customized instance), setting `ebdb-save-on-exit' to nil
> (either with `setq' or with Customize) has no effect if EBDB is already
> open. I believe it would be better to change this behavior. One reason
> is that it is counter-intuitive. Another is that the user might open
> EBDB, make some changes and then realize she does not want to persist
> them.

Okay, I guess that would work: always add a hook, but only actually do
the save if `ebdb-save-on-exit' is t. So if you have open *EBDB*
buffers, and unsaved changes, but you set `ebdb-save-on-exit' to nil,
then when you kill Emacs you'll still get prompted to save EBDB, but if
you say "no" then nothing further will happen.

Note that you can (I think) also dump unsaved changes by running
`ebdb-reload-database' on the database in question. Come to think of it,
that command should ask for confirmation before reloading, if the
database has unsaved changes.

>> I'm glad it's useful to you! I hadn't really thought about donations,
>> I suppose it makes me a tiny bit uncomfortable. But I see Github has
>> a sponsorship thing, I suppose it wouldn't hurt to sign up!
>
> Good! It would be even better if you had a more free-software-friendly
> mechanism of donation. Maybe Liberapay? By the way, if you could
> entirely move away from GitHub, some of us would be happier.

Oh, Liberapay looks good! I realized GitHub Sponsors only lets you set
up recurring monthly payments, which doesn't seem very likely. Anyway,
I have no real expectations.

I have an account at SourceHut, which is very FOSS-friendly, but so far
haven't put any repos there, maybe I could consider moving.

Eric





  reply	other threads:[~2020-01-08 18:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-06 18:30 bug#38993: 26.3; EBDB saves the database on Emacs exit even when told not to Jorge P. de Morais Neto
2020-01-06 19:51 ` Eric Abrahamsen
2020-01-06 21:04   ` Jorge P. de Morais Neto
2020-01-06 21:33     ` Eric Abrahamsen
2020-01-07 11:53       ` Jorge P. de Morais Neto
2020-01-07 18:42         ` Eric Abrahamsen
2020-01-08 13:28           ` Jorge P. de Morais Neto
2020-01-08 18:54             ` Eric Abrahamsen [this message]
2020-01-11 21:15               ` Jorge P. de Morais Neto
2020-01-12 17:38                 ` Eric Abrahamsen
2020-01-14 14:12                   ` Jorge P. de Morais Neto
2020-01-14 22:53                     ` Eric Abrahamsen
2020-01-18 19:38                       ` Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871rs9dbis.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=38993@debbugs.gnu.org \
    --cc=jorge+list@disroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).