From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jorge P. de Morais Neto Newsgroups: gmane.emacs.bugs Subject: bug#38993: 26.3; EBDB saves the database on Emacs exit even when told not to Date: Tue, 07 Jan 2020 08:53:09 -0300 Message-ID: <87ftgr1o0q.fsf@disroot.org> References: <87tv58mo8d.fsf@disroot.org> <87y2ukxt0r.fsf@ericabrahamsen.net> <87v9pofg9b.fsf@disroot.org> <87y2ukw9q4.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="194186"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38993@debbugs.gnu.org To: Eric Abrahamsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 07 14:26:49 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ioosh-000lMa-53 for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Jan 2020 14:26:47 +0100 Original-Received: from localhost ([::1]:48664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioosf-00070C-6v for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Jan 2020 08:26:45 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47212) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ionQx-00069Y-Ga for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2020 06:54:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ionQw-0007xu-4t for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2020 06:54:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41486) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ionQv-0007xf-PP for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2020 06:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ionQv-0000EG-PJ for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2020 06:54:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jorge P. de Morais Neto Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Jan 2020 11:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38993 X-GNU-PR-Package: emacs Original-Received: via spool by 38993-submit@debbugs.gnu.org id=B38993.1578398010827 (code B ref 38993); Tue, 07 Jan 2020 11:54:01 +0000 Original-Received: (at 38993) by debbugs.gnu.org; 7 Jan 2020 11:53:30 +0000 Original-Received: from localhost ([127.0.0.1]:47459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ionQQ-0000DG-9G for submit@debbugs.gnu.org; Tue, 07 Jan 2020 06:53:30 -0500 Original-Received: from knopi.disroot.org ([178.21.23.139]:36676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ionQM-0000D2-Ud for 38993@debbugs.gnu.org; Tue, 07 Jan 2020 06:53:27 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 9C40E212C1; Tue, 7 Jan 2020 12:53:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dPYgNi05ZiTe; Tue, 7 Jan 2020 12:53:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1578398001; bh=9NlSVPlcxUOdw6Ag2vhNX6QdbEc2N79+VlLxzqaoKEU=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=QWzeH5p2lDvzLjMwzKrqfLy/xuzu1yHOB+bvY2XFtoasT1HHrvOik+IIjdjr0oDtb h9a2+hpctMQoF+/CEHh6MHj49XSTz8YyAMDt9Xd58uz6kCZJJRBvZ3IvdWTT9VWCGz cb0JexUj2XSJ1CT4rK/xh4V7OxCaJzpdvb2VZ5gJ5I6ZkNYIpxpqPgiQzZx7p30Q6v j9TxFQFoMP+SO9emQQmMws1xFH32bb+QZCfbsw0sJnkyXkfNJmv4SEGM54y9/+5nW7 IEkh5oqLxrdY8IiBL7hkbaeCk6AWJagvqDwmRRucqKmMet/P9lpcLlJBniDZCOjpLe zEov8y4n/zZ3w== In-Reply-To: <87y2ukw9q4.fsf@ericabrahamsen.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:174298 Archived-At: Em [2020-01-06 seg 13:33:55-0800], Eric Abrahamsen escreveu: > I suppose I could have it do that (prompt for saving) rather than > saving silently. I guess I just assumed that in most cases users > would want the database saved, rather than discarding changes. I > don't have very strong feelings about it, though. In principle I want consistency with the rest of GNU Emacs. IIRC, Emacs generally does not overwrite without asking. There is the auto-save functionality, but it saves to *separate* files. However I should disclaim that I have never studied human-machine interaction and I too do not have strong feelings about this. > This is an error, either in Emacs or EBDB, I'm not sure. I originally > implemented the ability for special-mode buffers to offer themselves > as saveable, but the idea was that, if they saved themselves using > their own function, Emacs wouldn't then *also* save the buffer itself > in a file. > > Either my code in Emacs or my code in EBDB has a bug, I haven't gone > and figured out which. I'll try to do that soon. Yes, by default Emacs should not ask to save the computer-generated "*EBDB*" buffer. Regarding the database, I think that if `ebdb-save-on-exit' is nil then either: 1. Emacs should not ask to save the database on exit; or 2. The EBDB documentation should explicitly mention that Emacs will ask; and the behavior should be altered so that, when the user answers no, then Emacs should not save the database. Oh, and thank you for this great package! Do you have a mechanism for accepting donations? I unfortunately would donate just a little at this moment, but I intend to donate more in the future when my financial situation improves and/or the Brazilian Real gains value against the US dollar. Also, even very small donations may add up. Regards -- - - I am Brazilian. I hope my English is correct and I welcome feedback. - Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z. - Free/libre software for Replicant, LineageOS and Android: https://f-droid.org - [[https://www.gnu.org/philosophy/free-sw.html][What is free software?]]