From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#12507: Have I mentioned how much I hate Debbugs? Date: Tue, 02 Oct 2012 07:31:01 +0200 Organization: Emacs Helm Message-ID: <87r4phqw2y.fsf@gmail.com> References: <87d312hltc.fsf@floss.red-bean.com> <87k3v9dgyc.fsf@kwarm.red-bean.com> <058D07630DCF42C18CA45AB3E07C0BF5@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1349155903 19682 80.91.229.3 (2 Oct 2012 05:31:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Oct 2012 05:31:43 +0000 (UTC) Cc: 'Karl Fogel' , 12507@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 02 07:31:46 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TIv53-0005t6-GT for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Oct 2012 07:31:41 +0200 Original-Received: from localhost ([::1]:35822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIv4y-0003VO-0B for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Oct 2012 01:31:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIv4v-0003V5-6o for bug-gnu-emacs@gnu.org; Tue, 02 Oct 2012 01:31:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TIv4u-0000Db-7y for bug-gnu-emacs@gnu.org; Tue, 02 Oct 2012 01:31:33 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55687) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIv4u-0000DW-4g for bug-gnu-emacs@gnu.org; Tue, 02 Oct 2012 01:31:32 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TIv5N-0008TL-UM for bug-gnu-emacs@gnu.org; Tue, 02 Oct 2012 01:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Oct 2012 05:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12507 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12507-submit@debbugs.gnu.org id=B12507.134915590432545 (code B ref 12507); Tue, 02 Oct 2012 05:32:01 +0000 Original-Received: (at 12507) by debbugs.gnu.org; 2 Oct 2012 05:31:44 +0000 Original-Received: from localhost ([127.0.0.1]:37000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TIv55-0008Ss-Nf for submit@debbugs.gnu.org; Tue, 02 Oct 2012 01:31:43 -0400 Original-Received: from mail-we0-f172.google.com ([74.125.82.172]:39957) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TIv53-0008Sk-0b for 12507@debbugs.gnu.org; Tue, 02 Oct 2012 01:31:42 -0400 Original-Received: by weyu46 with SMTP id u46so3415664wey.3 for <12507@debbugs.gnu.org>; Mon, 01 Oct 2012 22:31:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=JEKXIm87skD+NjF0E/PBkle86cNGATcJdZ26UVShLUc=; b=nPVRo9NVbqugqC4AjJxxsskALPIsu2DKtGz+ILtVVuuix+M6oeDRwVUJ4W2Pv1TbRQ DxYXIuO0eNMa33f3aU2ua6dNr4Se20o7u2AjwdIn4SjUwJt/P69XrabRB9ZN05cXOiHE uQdF/gdcdlzdcRcyiIgOtn0BWL3T1O1aUbtLWcT6ho1qZmYZ4kthx7S+LTtLTNlv0lzj ybqN7FwowMBrqfKjRhGGIzS/ejMicqLy+kohPqRkjr5206vTETfzaBi2ZdQD9SDpwcez u0tSWiln/8ISfEPDsow6dF8VsYCrQy/siRSwlo6QmzoTfZqP5L8mcFBpSv5HeuUrLBbi KcDQ== Original-Received: by 10.180.79.2 with SMTP id f2mr19271804wix.2.1349155869742; Mon, 01 Oct 2012 22:31:09 -0700 (PDT) Original-Received: from dell-14z (lbe83-2-78-243-104-167.fbx.proxad.net. [78.243.104.167]) by mx.google.com with ESMTPS id p4sm488502wix.0.2012.10.01.22.31.07 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 01 Oct 2012 22:31:08 -0700 (PDT) In-Reply-To: <058D07630DCF42C18CA45AB3E07C0BF5@us.oracle.com> (Drew Adams's message of "Mon, 1 Oct 2012 15:00:54 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:65106 Archived-At: "Drew Adams" writes: > > This kind of comes back to Thierry's suggestion that we might want to come up > with a version of `write-region', which does not visit the file it writes to, > that also backs up that file first. Or to do something similar. Just to clarify (I am not sure what mean "come up"): My final proposition is: (with-current-buffer (find-file-no-select FILE) ; [1] ;; 2) erase-buffer ;; 3) write DATA => bookmark-alist ;; 4) let-bound version-control to bookmark-version-control (save-buffer) [5] In [1] I still not understanding what is this paranoia about "visiting file" specially for this file that no body want to edit manually: bookmark save bookmark-alist in file in two different ways: - Immidiately when you bookmark something. - When emacs quit if bookmark-alist have been modified. So the file should never hang in a non--saved state at any point. In [4] if you remove bookmark-version-control, this don't mean the file will not be backed up, hopefully `version-control' will do its job. But it doesn't arm to keep bookmark-version-control. In [5], if you use [1] (i.e find-file-no-select) you don't want to use `write-file' because it use `set-visited-file-name'; you don't need it because find-file-no-select do it, so save-buffer is enough. So I don't understand why there is an interminable discussion on such simple changes. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997